version 1.25.2.1, 2006/07/27 23:11:52
|
version 1.29, 2006/10/27 22:08:22
|
|
|
// 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 |
|
|
|
|
|
#define _UNIX03_SOURCE |
|
|
|
//#include <limits.h> |
|
| |
#ifdef __cplusplus | #ifdef __cplusplus |
#include <cstddef> | #include <cstddef> |
#endif | #endif |
| |
#include <stdarg.h> | #include <stdarg.h> |
|
|
#define _ISOC99_SOURCE |
|
#include <stdio.h> | #include <stdio.h> |
|
// usleep() function in Threads.h |
|
#include <unistd.h> |
| |
#define PEGASUS_OS_TYPE_UNIX | #define PEGASUS_OS_TYPE_UNIX |
| |
|
|
// removed as Pegasus will work with Native ASCII support on zOS | // removed as Pegasus will work with Native ASCII support on zOS |
// #define PEGASUS_HAVE_EBCDIC | // #define PEGASUS_HAVE_EBCDIC |
| |
#define PEGASUS_STATIC_CDECL __cdecl |
|
|
|
#define PEGASUS_HAS_SIGNALS | #define PEGASUS_HAS_SIGNALS |
| |
#define PEGASUS_MAXHOSTNAMELEN 256 | #define PEGASUS_MAXHOSTNAMELEN 256 |
|
|
| |
#define PEGASUS_HAVE_PTHREADS | #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); |
|
|
|
#ifndef _REMOTE_CMPI_REMOTE_H |
|
// use my own snprintf implementation using sprintf mapping |
|
// until the Java SDK is fixed to work with _ISOC99_SOURCE |
|
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; |
|
} |
|
#endif |
|
|
#endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */ | #endif /* Pegasus_Platform_ZOS_ZSERIES_IBM_h */ |