00001 #ifndef foodexechfoo
00002 #define foodexechfoo
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <stdarg.h>
00025
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029
00039 #define DAEMON_EXEC_AVAILABLE 1
00040
00041 #if defined(__GNUC__) && ! defined(DAEMON_GCC_SENTINEL)
00042 #define DAEMON_GCC_SENTINEL __attribute__ ((sentinel))
00043 #else
00044
00045 #define DAEMON_GCC_SENTINEL
00046 #endif
00047
00063 int daemon_exec(const char *dir, int *ret, const char *prog, ...) DAEMON_GCC_SENTINEL;
00064
00068 #define DAEMON_EXECV_AVAILABLE 1
00069
00073 int daemon_execv(const char *dir, int *ret, const char *prog, va_list ap);
00074
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078
00079 #endif