Main Page | File List | Globals | Examples

dexec.h

Go to the documentation of this file.
00001 #ifndef foodexechfoo
00002 #define foodexechfoo
00003 
00004 /* $Id: exec.h 4 2003-08-10 19:56:53Z lennart $ */
00005 
00006 /*
00007  * This file is part of libdaemon.
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
00012  * the 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, write to the Free Software
00021  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00022  * 02110-1301 USA
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

Generated on Sat Jul 21 18:48:54 2007 for libdaemon by  doxygen 1.4.2