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

  1 karl  1.18 //%2004////////////////////////////////////////////////////////////////////////
  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 mike  1.2  //
 10            // Permission is hereby granted, free of charge, to any person obtaining a copy
 11 sage  1.3  // of this software and associated documentation files (the "Software"), to
 12            // deal in the Software without restriction, including without limitation the
 13            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 14 mike  1.2  // sell copies of the Software, and to permit persons to whom the Software is
 15            // furnished to do so, subject to the following conditions:
 16 kumpf 1.6  // 
 17 sage  1.3  // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 18 mike  1.2  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 19            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 20 sage  1.3  // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 21            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 22            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 23 mike  1.2  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 24            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 25            //
 26            //==============================================================================
 27            //
 28            // Author: Markus Mueller (mmueller@de.ibm.com)
 29            //
 30 kumpf 1.10 // Modified By: Carol Ann Krug Graves, Hewlett-Packard Company
 31            //                (carolann_graves@hp.com)
 32 mike  1.2  //
 33            //%/////////////////////////////////////////////////////////////////////////////
 34            
 35            #ifndef Pegasus_Platform_ZOS_ZSERIES_IBM_h
 36            #define Pegasus_Platform_ZOS_ZSERIES_IBM_h
 37            
 38 marek 1.13 // added for Native ASCII Support
 39            #pragma runopts("FILETAG(AUTOCVT,AUTOTAG)")
 40            
 41 sage  1.3  //#define _XOPEN_SOURCE_EXTENDED 1
 42            //#define _OPEN_SYS 1
 43            #define _MSE_PROTOS
 44            #define _OPEN_SOURCE 3
 45 sage  1.7  // timezone
 46            #define _ALL_SOURCE
 47            // longlong
 48            //#define _LONG_LONG 1
 49            
 50            #include <limits.h>
 51 mike  1.2  
 52 kumpf 1.10 #include <cstddef>
 53            
 54 marek 1.19 #include <stdarg.h>
 55            #include <stdio.h>
 56            
 57 kumpf 1.10 #define PEGASUS_OS_TYPE_UNIX
 58 mike  1.2  
 59            #define PEGASUS_OS_ZOS
 60            
 61            #define PEGASUS_ARCHITECTURE_ZSERIES
 62            
 63            #define PEGASUS_COMPILER_IBM
 64            
 65 marek 1.12 #define PEGASUS_UINT64 unsigned long long int
 66 mike  1.2  
 67 marek 1.12 #define PEGASUS_SINT64 long long int
 68 mike  1.2  
 69 sage  1.3  #define PEGASUS_HAVE_NAMESPACES
 70 mike  1.2  
 71 sage  1.3  #define PEGASUS_HAVE_EXPLICIT
 72 mike  1.2  
 73 sage  1.3  #define PEGASUS_HAVE_MUTABLE
 74 mike  1.2  
 75 sage  1.3  #define PEGASUS_HAVE_FOR_SCOPE
 76 mike  1.2  
 77 sage  1.4  #define PEGASUS_HAVE_TEMPLATE_SPECIALIZATION
 78 mike  1.2  
 79 marek 1.13 // removed as Pegasus will work with Native ASCII support on zOS
 80            // #define PEGASUS_HAVE_EBCDIC
 81 sage  1.4  
 82            #define PEGASUS_STATIC_CDECL __cdecl
 83 marek 1.13 
 84            #define PEGASUS_HAS_SIGNALS
 85 mike  1.2  
 86 marek 1.17 #define PEGASUS_MAXHOSTNAMELEN  256
 87            
 88 marek 1.16 #define PEGASUS_NO_PASSWORDFILE
 89 marek 1.19 
 90            
 91            //#define snprintf(sptr,len,form,data) sprintf(sptr,form,data)
 92            
 93            inline int snprintf(char *sptr, size_t len, const char* form, ...)
 94            {
 95                int returnvalue;
 96                va_list arguments;
 97                va_start(arguments, form);
 98                returnvalue = vsprintf(sptr, form, arguments);
 99                va_end(arguments);
100                return returnvalue;
101            }
102            
103            
104 mike  1.2  #endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2