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
00025 #include <stdarg.h>
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00038 #define DAEMON_EXEC_AVAILABLE 1
00039
00040 #if defined(__GNUC__) && ! defined(DAEMON_GCC_SENTINEL)
00041
00042 #define DAEMON_GCC_SENTINEL __attribute__ ((sentinel))
00043 #else
00044 #define DAEMON_GCC_SENTINEL
00045 #endif
00046
00060 int daemon_exec(const char *dir, int *ret, const char *prog, ...) DAEMON_GCC_SENTINEL;
00061
00063 #define DAEMON_EXECV_AVAILABLE 1
00064
00066 int daemon_execv(const char *dir, int *ret, const char *prog, va_list ap);
00067
00068 #ifdef __cplusplus
00069 }
00070 #endif
00071
00072 #endif