00001 //%2005//////////////////////////////////////////////////////////////////////// 00002 // 00003 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development 00004 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. 00005 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; 00006 // IBM Corp.; EMC Corporation, The Open Group. 00007 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; 00008 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. 00009 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; 00010 // EMC Corporation; VERITAS Software Corporation; The Open Group. 00011 // 00012 // Permission is hereby granted, free of charge, to any person obtaining a copy 00013 // of this software and associated documentation files (the "Software"), to 00014 // deal in the Software without restriction, including without limitation the 00015 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 00016 // sell copies of the Software, and to permit persons to whom the Software is 00017 // furnished to do so, subject to the following conditions: 00018 // 00019 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN 00020 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED 00021 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 00022 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR 00023 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00024 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00025 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 00026 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00027 // 00028 //============================================================================== 00029 // 00030 // Author: Adrian Schuur, schuur@de.ibm.com 00031 // 00032 // Modified By: 00033 // Marek Szermutzky, IBM (mszermutzky@de.ibm.com) 00034 // 00035 //%///////////////////////////////////////////////////////////////////////////// 00036 00037 #ifndef _CMPIOS_H_ 00038 #define _CMPIOS_H_ 00039 00040 #include "OW_config.h" 00041 00042 #define CMPI_THREAD_RETURN void* 00043 #define CMPI_THREAD_TYPE void* 00044 #define CMPI_MUTEX_TYPE void* 00045 #define CMPI_COND_TYPE void* 00046 00047 #if defined(CMPI_PLATFORM_WIN32_IX86_MSVC) 00048 #define CMPI_THREAD_CDECL __stdcall 00049 #define CMPI_THREAD_KEY_TYPE unsigned long int 00050 00051 struct timespec { 00052 long tv_sec; 00053 long tv_nsec; 00054 }; 00055 00056 #elif defined( PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) 00057 00058 #ifndef __cplusplus 00059 #define CMPI_THREAD_CDECL 00060 #else 00061 #define CMPI_THREAD_CDECL __cdecl 00062 #endif 00063 00064 #define CMPI_THREAD_KEY_TYPE pthread_key_t 00065 #else 00066 #define CMPI_THREAD_CDECL 00067 #define CMPI_THREAD_KEY_TYPE unsigned long int 00068 #endif 00069 00070 00071 #endif