• Main Page
  • Files
  • Examples
  • File List
  • Globals

dpid.h

Go to the documentation of this file.
00001 #ifndef foodaemonpidhfoo
00002 #define foodaemonpidhfoo
00003 
00004 /***
00005   This file is part of libdaemon.
00006 
00007   Copyright 2003-2008 Lennart Poettering
00008 
00009   libdaemon is free software; you can redistribute it and/or modify
00010   it under the terms of the GNU Lesser General Public License as
00011   published by the Free Software Foundation, either version 2.1 of the
00012   License, or (at your option) any later version.
00013 
00014   libdaemon is distributed in the hope that it will be useful, but
00015   WITHOUT ANY WARRANTY; without even the implied warranty of
00016   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00017   Lesser General Public License for more details.
00018 
00019   You should have received a copy of the GNU Lesser General Public
00020   License along with libdaemon. If not, see
00021   <http://www.gnu.org/licenses/>.
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 
00082 #define DAEMON_PID_FILE_KILL_WAIT_AVAILABLE 1
00083 
00095 int daemon_pid_file_kill_wait(int s, int m);
00096 
00097 #ifdef __cplusplus
00098 }
00099 #endif
00100 
00101 #endif

Generated on Sun Feb 17 2013 00:56:33 for libdaemon by  doxygen 1.7.1