getpid.h
00001
00002
00003
00004
00005 #ifndef _LIBU_GETPID_H_
00006 #define _LIBU_GETPID_H_
00007
00008 #include <u/libu_conf.h>
00009
00010 #ifdef HAVE_GETPID
00011 #include <sys/types.h>
00012 #include <unistd.h>
00013 #else
00014
00015 #ifdef OS_WIN
00016 #include <windows.h>
00017 typedef DWORD pid_t;
00018 #else
00019 typedef unsigned int pid_t;
00020 #endif
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026 pid_t getpid(void);
00027
00028 #ifdef __cplusplus
00029 }
00030 #endif
00031
00032 #endif
00033
00034 #endif