summaryrefslogtreecommitdiffstats
path: root/libdaemon/dexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdaemon/dexec.h')
-rw-r--r--libdaemon/dexec.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/libdaemon/dexec.h b/libdaemon/dexec.h
index 1f7f7e8..9b34240 100644
--- a/libdaemon/dexec.h
+++ b/libdaemon/dexec.h
@@ -33,13 +33,15 @@ extern "C" {
* STDERR redirected to syslog
*/
-/** This variable is defined to 1 iff daemon_exec() is supported.*/
+/** This variable is defined to 1 iff daemon_exec() is supported.
+ * @since 0.4
+ * @see daemon_exec() */
#define DAEMON_EXEC_AVAILABLE 1
#if defined(__GNUC__) && ! defined(DAEMON_GCC_SENTINEL)
-/** A macro for making use of GCCs printf compilation warnings */
#define DAEMON_GCC_SENTINEL __attribute__ ((sentinel))
#else
+/** A macro for making use of GCCs printf compilation warnings */
#define DAEMON_GCC_SENTINEL
#endif
@@ -55,13 +57,19 @@ extern "C" {
* @param prog The path to the executable
* @param ... The arguments to be passed to the program, followed by a (char *) NULL
* @return Nonzero on failure, zero on success
+ * @since 0.4
+ * @see DAEMON_EXEC_AVAILABLE
*/
int daemon_exec(const char *dir, int *ret, const char *prog, ...) DAEMON_GCC_SENTINEL;
-/** This variable is defined to 1 iff daemon_execv() is supported.*/
+/** This variable is defined to 1 iff daemon_execv() is supported.
+ * @since 0.11
+ * @see daemon_execv() */
#define DAEMON_EXECV_AVAILABLE 1
-/** The same as daemon_exec, but without variadic arguments */
+/** The same as daemon_exec, but without variadic arguments
+ * @since 0.11
+ * @see DAEMON_EXECV_AVAILABLE */
int daemon_execv(const char *dir, int *ret, const char *prog, va_list ap);
#ifdef __cplusplus