diff options
Diffstat (limited to 'libdaemon/dfork.h')
-rw-r--r-- | libdaemon/dfork.h | 39 |
1 files changed, 30 insertions, 9 deletions
diff --git a/libdaemon/dfork.h b/libdaemon/dfork.h index 566844f..4a9c43e 100644 --- a/libdaemon/dfork.h +++ b/libdaemon/dfork.h @@ -99,37 +99,58 @@ int daemon_retval_wait(int timeout); */ int daemon_retval_send(int s); -/** This variable is defined to 1 iff daemon_close_all() and daemon_close_allv() are supported.*/ +/** This variable is defined to 1 iff daemon_close_all() and + * daemon_close_allv() are supported. + * @since 0.11 + * @see daemon_close_all(), daemon_close_allv() */ #define DAEMON_CLOSE_ALL_AVAILABLE 1 /** Close all file descriptors except those passed. List needs to be - * terminated by -1. FDs 0, 1, 2 will be kept open anyway. */ + * terminated by -1. FDs 0, 1, 2 will be kept open anyway. + * @since 0.11 + * @see DAEMON_CLOSE_ALL_AVAILABLE */ int daemon_close_all(int except_fd, ...); /** Same as daemon_close_all but takes an array of fds, terminated by - * -1 */ + * -1 + * @since 0.11 + * @see DAEMON_CLOSE_ALL_AVAILABLE */ int daemon_close_allv(const int except_fds[]); -/** This variable is defined to 1 iff daemon_unblock_sigs() and daemon_unblock_sigsv() are supported.*/ +/** This variable is defined to 1 iff daemon_unblock_sigs() and + * daemon_unblock_sigsv() are supported. + * @since 0.13 + * @see daemon_unblock_sigs(), daemon_unblock_sigsv()*/ #define DAEMON_UNBLOCK_SIGS_AVAILABLE 1 /** Unblock all signals except those passed. List needs to be - * terminated by -1. */ + * terminated by -1. + * @since 0.13 + * @see DAEMON_UNBLOCK_SIGS_AVAILABLE */ int daemon_unblock_sigs(int except, ...); /** Same as daemon_unblock_sigs() but takes an array of signals, - * terminated by -1 */ + * terminated by -1 + * @since 0.13 + * @see DAEMON_UNBLOCK_SIGS_AVAILABLE */ int daemon_unblock_sigsv(const int except[]); -/** This variable is defined to 1 iff daemon_reset_sigs() and daemon_reset_sigsv() are supported.*/ +/** This variable is defined to 1 iff daemon_reset_sigs() and + * daemon_reset_sigsv() are supported. + * @since 0.13 + * @see daemon_reset_sigs(), daemon_reset_sigsv() */ #define DAEMON_RESET_SIGS_AVAILABLE 1 /** Reset all signal handlers except those passed. List needs to be - * terminated by -1. */ + * terminated by -1. + * @since 0.13 + * @see DAEMON_RESET_SIGS_AVAILABLE */ int daemon_reset_sigs(int except, ...); /** Same as daemon_reset_sigs() but takes an array of signals, - * terminated by -1 */ + * terminated by -1 + * @since 0.13 + * @see DAEMON_RESET_SIGS_AVAILABLE */ int daemon_reset_sigsv(const int except[]); #ifdef __cplusplus |