00001 /* 00002 * Copyright (c) 2005, 2006 by KoanLogic s.r.l. - All rights reserved. 00003 */ 00004 #ifndef _LIBU_DAEMON_H_ 00005 #define _LIBU_DAEMON_H_ 00006 #include "libu_conf.h" 00007 00008 #ifdef HAVE_DAEMON 00009 #ifdef HAVE_STDLIB 00010 #include <stdlib.h> 00011 #endif 00012 00013 #ifdef HAVE_UNISTD 00014 #include <unistd.h> 00015 #endif 00016 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 00030 00031 #endif