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 #include <sys/types.h>
00025
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029
00037 typedef const char* (*daemon_pid_file_proc_t)(void);
00038
00044 extern const char *daemon_pid_file_ident;
00045
00050 extern daemon_pid_file_proc_t daemon_pid_file_proc;
00051
00056 const char *daemon_pid_file_proc_default(void);
00057
00061 int daemon_pid_file_create(void);
00062
00066 int daemon_pid_file_remove(void);
00067
00071 pid_t daemon_pid_file_is_running(void);
00072
00077 int daemon_pid_file_kill(int s);
00078
00080 #define DAEMON_PID_FILE_KILL_WAIT_AVAILABLE 1
00081
00091 int daemon_pid_file_kill_wait(int s, int m);
00092
00093 #ifdef __cplusplus
00094 }
00095 #endif
00096
00097 #endif