daemon.h

00001 /* 
00002  * Copyright (c) 2005-2012 by KoanLogic s.r.l. - All rights reserved.  
00003  */
00004 
00005 #ifndef _LIBU_DAEMON_H_
00006 #define _LIBU_DAEMON_H_
00007 
00008 #include <u/libu_conf.h>
00009 
00010 #ifdef HAVE_DAEMON
00011   #ifdef HAVE_STDLIB
00012     #include <stdlib.h>
00013   #endif
00014   #ifdef HAVE_UNISTD
00015     #include <unistd.h>
00016   #endif
00017 #else   /* !HAVE_DAEMON */
00018 
00019 #ifdef __cplusplus
00020 extern "C" {
00021 #endif
00022 
00023 int daemon(int nochdir, int noclose);
00024 
00025 #ifdef __cplusplus
00026 }
00027 #endif
00028 
00029 #endif  /* HAVE_DAEMON */
00030 
00031 #endif  /* !_LIBU_DAEMON_H_ */

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