Main Page | Modules | Data Structures | File List | Data Fields

getpid.h

00001 /* 
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. - All rights reserved.  
00003  */
00004 #ifndef _LIBU_GETPID_H_
00005 #define _LIBU_GETPID_H_
00006 #include "libu_conf.h"
00007 
00008 #ifdef HAVE_GETPID
00009 #include <sys/types.h>
00010 #include <unistd.h>
00011 #else /* !HAVE_GETPID */
00012 
00013 #ifdef OS_WIN
00014     #include <windows.h>
00015     typedef DWORD pid_t;
00016 #else /* !OS_WIN */
00017     typedef unsigned int pid_t;
00018 #endif
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 pid_t getpid(void);
00025 
00026 #ifdef __cplusplus
00027 }
00028 #endif
00029 
00030 #endif
00031 
00032 #endif

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