(file) Return to Platform_ZOS_ZSERIES_IBM.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.23 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.2  //
  3 karl  1.18 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.14 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.18 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.20 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.23 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.2  //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 sage  1.3  // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.2  // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20 r.kieninger 1.29 //
 21 sage        1.3  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike        1.2  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23                  // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 sage        1.3  // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25                  // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26                  // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike        1.2  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28                  // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29                  //
 30                  //==============================================================================
 31                  //
 32                  //%/////////////////////////////////////////////////////////////////////////////
 33                  
 34                  #ifndef Pegasus_Platform_ZOS_ZSERIES_IBM_h
 35                  #define Pegasus_Platform_ZOS_ZSERIES_IBM_h
 36                  
 37 marek       1.13 // added for Native ASCII Support
 38                  #pragma runopts("FILETAG(AUTOCVT,AUTOTAG)")
 39                  
 40 mike        1.26 #include <sched.h>
 41                  // include here to avoid redefinition from below
 42                  #include <pthread.h>
 43 marek       1.25 
 44                  #ifdef __cplusplus
 45 kumpf       1.10 #include <cstddef>
 46 marek       1.25 #endif
 47 kumpf       1.10 
 48 marek       1.19 #include <stdarg.h>
 49                  #include <stdio.h>
 50 mike        1.26 // usleep() function in Threads.h
 51                  #include <unistd.h>
 52 marek       1.19 
 53 kumpf       1.10 #define PEGASUS_OS_TYPE_UNIX
 54 mike        1.2  
 55                  #define PEGASUS_OS_ZOS
 56                  
 57                  #define PEGASUS_ARCHITECTURE_ZSERIES
 58                  
 59                  #define PEGASUS_COMPILER_IBM
 60                  
 61 marek       1.12 #define PEGASUS_UINT64 unsigned long long int
 62 mike        1.2  
 63 marek       1.12 #define PEGASUS_SINT64 long long int
 64 mike        1.2  
 65 sage        1.3  #define PEGASUS_HAVE_NAMESPACES
 66 mike        1.2  
 67 sage        1.3  #define PEGASUS_HAVE_FOR_SCOPE
 68 mike        1.2  
 69 sage        1.4  #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 70 mike        1.2  
 71 marek       1.21 #define PEGASUS_HAVE_INTERNAL_INLINES
 72                  
 73 marek       1.13 // removed as Pegasus will work with Native ASCII support on zOS
 74                  // #define PEGASUS_HAVE_EBCDIC
 75 sage        1.4  
 76 marek       1.13 #define PEGASUS_HAS_SIGNALS
 77 mike        1.2  
 78 marek       1.17 #define PEGASUS_MAXHOSTNAMELEN  256
 79                  
 80 marek       1.16 #define PEGASUS_NO_PASSWORDFILE
 81 marek       1.19 
 82                  
 83                  //#define snprintf(sptr,len,form,data) sprintf(sptr,form,data)
 84                  
 85 marek       1.21 #define ZOS_SECURITY_NAME "CIMServer Security"
 86 marek       1.19 
 87 marek       1.21 #define ZOS_DEFAULT_PEGASUS_REPOSITORY "/var/wbem"
 88 marek       1.19 
 89 marek       1.25 #define PEGASUS_HAVE_BROKEN_GLOBAL_CONSTRUCTION
 90                  
 91 mike        1.26 #define PEGASUS_HAVE_PTHREADS
 92                  
 93                  // use the NON-POSIX conform interface version if required
 94                  // to avoid lots of ifdefs for z/OS
 95                  #define pthread_getspecific(x) pthread_getspecific_d8_np(x);
 96                  
 97 r.kieninger 1.29 #ifndef _REMOTE_CMPI_REMOTE_H
 98 marek       1.27 // use my own snprintf implementation using sprintf mapping
 99                  // until the Java SDK is fixed to work with _ISOC99_SOURCE
100                  inline int snprintf(char *sptr, size_t len, const char* form, ...)
101                  {
102                      int returnvalue;
103                      va_list arguments;
104                      va_start(arguments, form);
105                      returnvalue = vsprintf(sptr, form, arguments);
106                      va_end(arguments);
107                      return returnvalue;
108                  }
109 r.kieninger 1.29 #endif
110 marek       1.27 
111 mike        1.2  #endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2