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
00037 #define DAEMON_EXEC_AVAILABLE 1
00038
00039 #if defined(__GNUC__) && ! defined(DAEMON_GCC_SENTINEL)
00040
00041 #define DAEMON_GCC_SENTINEL __attribute__ ((sentinel))
00042 #else
00043 #define DAEMON_GCC_SENTINEL
00044 #endif
00045
00059 int daemon_exec(const char *dir, int *ret, const char *prog, ...) DAEMON_GCC_SENTINEL;
00060
00062 #define DAEMON_EXECV_AVAILABLE 1
00063
00065 int daemon_execv(const char *dir, int *ret, const char *prog, va_list ap);
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif