getpid.h

00001 /* 
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved.  
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 /* !HAVE_GETPID */
00014 
00015 #ifdef OS_WIN
00016     #include <windows.h>
00017     typedef DWORD pid_t;
00018 #else /* !OS_WIN */
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  /* HAVE_GETPID */
00033 
00034 #endif  /* !_LIBU_GETPID_H_ */

←Products
© 2005-2012 - KoanLogic S.r.l. - All rights reserved