00001 #ifndef foodaemonpidhfoo
00002 #define foodaemonpidhfoo
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <sys/types.h>
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00038 typedef const char* (*daemon_pid_file_proc_t)(void);
00039
00045 extern const char *daemon_pid_file_ident;
00046
00051 extern daemon_pid_file_proc_t daemon_pid_file_proc;
00052
00057 const char *daemon_pid_file_proc_default(void);
00058
00062 int daemon_pid_file_create(void);
00063
00067 int daemon_pid_file_remove(void);
00068
00072 pid_t daemon_pid_file_is_running(void);
00073
00078 int daemon_pid_file_kill(int s);
00079
00081 #define DAEMON_PID_FILE_KILL_WAIT_AVAILABLE 1
00082
00092 int daemon_pid_file_kill_wait(int s, int m);
00093
00094 #ifdef __cplusplus
00095 }
00096 #endif
00097
00098 #endif