version 1.22.2.1, 2006/02/10 16:09:38
|
version 1.25.2.2, 2006/08/02 07:26:35
|
|
|
// added for Native ASCII Support | // added for Native ASCII Support |
#pragma runopts("FILETAG(AUTOCVT,AUTOTAG)") | #pragma runopts("FILETAG(AUTOCVT,AUTOTAG)") |
| |
//#define _XOPEN_SOURCE_EXTENDED 1 |
#include <sched.h> |
//#define _OPEN_SYS 1 |
// include here to avoid redefinition from below |
#define _MSE_PROTOS |
#include <pthread.h> |
#define _OPEN_SOURCE 3 |
|
// timezone |
|
#define _ALL_SOURCE |
|
// longlong |
|
//#define _LONG_LONG 1 |
|
|
|
#include <limits.h> |
|
| |
|
#ifdef __cplusplus |
#include <cstddef> | #include <cstddef> |
|
#endif |
| |
#include <stdarg.h> | #include <stdarg.h> |
#include <stdio.h> | #include <stdio.h> |
|
// usleep() function in Threads.h |
|
#include <unistd.h> |
| |
#define PEGASUS_OS_TYPE_UNIX | #define PEGASUS_OS_TYPE_UNIX |
| |
|
|
//#define snprintf(sptr,len,form,data) sprintf(sptr,form,data) | //#define snprintf(sptr,len,form,data) sprintf(sptr,form,data) |
| |
#define ZOS_SECURITY_NAME "CIMServer Security" | #define ZOS_SECURITY_NAME "CIMServer Security" |
inline int snprintf(char *sptr, size_t len, const char* form, ...) |
|
{ |
|
int returnvalue; |
|
va_list arguments; |
|
va_start(arguments, form); |
|
returnvalue = vsprintf(sptr, form, arguments); |
|
va_end(arguments); |
|
return returnvalue; |
|
} |
|
| |
#define ZOS_DEFAULT_PEGASUS_REPOSITORY "/var/wbem" | #define ZOS_DEFAULT_PEGASUS_REPOSITORY "/var/wbem" |
| |
#define PEGASUS_SOCKLEN_T size_t |
#define PEGASUS_HAVE_BROKEN_GLOBAL_CONSTRUCTION |
|
|
|
#define PEGASUS_HAVE_PTHREADS |
|
|
|
// use the NON-POSIX conform interface version if required |
|
// to avoid lots of ifdefs for z/OS |
|
#define pthread_getspecific(x) pthread_getspecific_d8_np(x); |
| |
#endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */ | #endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */ |