(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 kumpf 1.6  // 
 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            // Author: Markus Mueller (mmueller@de.ibm.com)
 33            //
 34 kumpf 1.10 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 35            //                (carolann_graves@hp.com)
 36 mike  1.2  //
 37            //%/////////////////////////////////////////////////////////////////////////////
 38            
 39            #ifndef Pegasus_Platform_ZOS_ZSERIES_IBM_h
 40            #define Pegasus_Platform_ZOS_ZSERIES_IBM_h
 41            
 42 marek 1.13 // added for Native ASCII Support
 43            #pragma runopts("FILETAG(AUTOCVT,AUTOTAG)")
 44            
 45 mike  1.26 #include <sched.h>
 46            // include here to avoid redefinition from below
 47            #include <pthread.h>
 48 marek 1.25 
 49            #ifdef __cplusplus
 50 kumpf 1.10 #include <cstddef>
 51 marek 1.25 #endif
 52 kumpf 1.10 
 53 marek 1.19 #include <stdarg.h>
 54            #include <stdio.h>
 55 mike  1.26 // usleep() function in Threads.h
 56            #include <unistd.h>
 57 marek 1.19 
 58 kumpf 1.10 #define PEGASUS_OS_TYPE_UNIX
 59 mike  1.2  
 60            #define PEGASUS_OS_ZOS
 61            
 62            #define PEGASUS_ARCHITECTURE_ZSERIES
 63            
 64            #define PEGASUS_COMPILER_IBM
 65            
 66 marek 1.12 #define PEGASUS_UINT64 unsigned long long int
 67 mike  1.2  
 68 marek 1.12 #define PEGASUS_SINT64 long long int
 69 mike  1.2  
 70 sage  1.3  #define PEGASUS_HAVE_NAMESPACES
 71 mike  1.2  
 72 sage  1.3  #define PEGASUS_HAVE_EXPLICIT
 73 mike  1.2  
 74 sage  1.3  #define PEGASUS_HAVE_MUTABLE
 75 mike  1.2  
 76 sage  1.3  #define PEGASUS_HAVE_FOR_SCOPE
 77 mike  1.2  
 78 sage  1.4  #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 79 mike  1.2  
 80 marek 1.21 #define PEGASUS_HAVE_INTERNAL_INLINES
 81            
 82 marek 1.13 // removed as Pegasus will work with Native ASCII support on zOS
 83            // #define PEGASUS_HAVE_EBCDIC
 84 sage  1.4  
 85            #define PEGASUS_STATIC_CDECL __cdecl
 86 marek 1.13 
 87            #define PEGASUS_HAS_SIGNALS
 88 mike  1.2  
 89 marek 1.17 #define PEGASUS_MAXHOSTNAMELEN  256
 90            
 91 marek 1.16 #define PEGASUS_NO_PASSWORDFILE
 92 marek 1.19 
 93            
 94            //#define snprintf(sptr,len,form,data) sprintf(sptr,form,data)
 95            
 96 marek 1.21 #define ZOS_SECURITY_NAME "CIMServer Security"
 97 marek 1.19 
 98 marek 1.21 #define ZOS_DEFAULT_PEGASUS_REPOSITORY "/var/wbem"
 99 marek 1.19 
100 marek 1.25 #define PEGASUS_HAVE_BROKEN_GLOBAL_CONSTRUCTION
101            
102 mike  1.26 #define PEGASUS_HAVE_PTHREADS
103            
104            // use the NON-POSIX conform interface version if required
105            // to avoid lots of ifdefs for z/OS
106            #define pthread_getspecific(x) pthread_getspecific_d8_np(x);
107            
108 marek 1.27 // use my own snprintf implementation using sprintf mapping
109            // until the Java SDK is fixed to work with _ISOC99_SOURCE
110            inline int snprintf(char *sptr, size_t len, const char* form, ...)
111            {
112                int returnvalue;
113                va_list arguments;
114                va_start(arguments, form);
115                returnvalue = vsprintf(sptr, form, arguments);
116                va_end(arguments);
117                return returnvalue;
118            }
119            
120 mike  1.2  #endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2