#ifndef _TOOLKIT_UNIX_HEADER_H_ #define _TOOLKIT_UNIX_HEADER_H_ #ifndef _WIN32 #include #include #include #include #include #include #include #include #include /* MAXHOSTNAMELEN on Solaris */ #include #include #if !defined(__MVS__) #include #include /* MAXHOSTNAMELEN on Linux and the BSDs */ #endif #include #include #ifdef __cplusplus extern "C" { #endif #include #include typedef pthread_key_t toolkit_key_t; typedef pthread_t toolkit_thread_t; typedef pthread_mutex_t toolkit_mutex_t; typedef pthread_once_t toolkit_once_t; typedef pid_t toolkit_pid_t; #define TOOLKIT_ONCE_INIT PTHREAD_ONCE_INIT typedef struct { void* handle; char* errmsg; } toolkit_lib_t; typedef pthread_rwlock_t toolkit_rwlock_t; typedef sem_t toolkit_sem_t; typedef pthread_cond_t toolkit_cond_t; typedef pthread_barrier_t toolkit_barrier_t; #ifdef __cplusplus } // extern "C" { #endif #endif //NOT _WIN32 #endif /** */