Commit 95edd20b authored by Niels Möller's avatar Niels Möller

Updated prototypes. Deleted C++ guard.

Rev: src/daemon.h:1.5
parent 7b1212f6
......@@ -29,23 +29,29 @@
#include "lsh.h"
#ifdef __cplusplus
extern "C" {
#endif
#define DAEMON_NORMAL 1
#define DAEMON_INIT 2
#define DAEMON_INETD 3
int daemon_started_by_init(void);
int daemon_started_by_inetd(void);
int daemon_disable_core(void);
int daemon_pidfile(const char *name);
int daemon_init(void);
int daemon_close(const char *name);
enum daemon_mode
{
DAEMON_NORMAL = 1,
DAEMON_INIT,
DAEMON_INETD
};
enum daemon_mode
daemon_detect(void);
int
daemon_dup_null(int fd);
#ifdef __cplusplus
}
#endif
void
daemon_close_fds(void);
int
daemon_disable_core(void);
int
daemon_pidfile(const char *name);
int
daemon_init(enum daemon_mode);
int daemon_close(const char *name);
#endif /* LSH_DAEMON_H_INCLUDED */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment