summaryrefslogtreecommitdiffstats
path: root/syslog.h
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-09-28 21:01:20 +0200
committerJohn Crispin <blogic@openwrt.org>2013-09-28 21:47:43 +0200
commitb5e17105b163442a030559b7b2c2454b82b3fd4c (patch)
treecd7eb3d97307f17703a62360f65938172e360576 /syslog.h
parentf51f9cc5738d340423e44e678829402b367cf866 (diff)
downloadunitd-b5e17105b163442a030559b7b2c2454b82b3fd4c.tar
unitd-b5e17105b163442a030559b7b2c2454b82b3fd4c.zip
syslog() is a blocking call on eglibc. as procd provides the actual syslog, weneed to make sure that we do not run into a deadlock.
Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi>
Diffstat (limited to 'syslog.h')
-rw-r--r--syslog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/syslog.h b/syslog.h
index b2471eb..fd78363 100644
--- a/syslog.h
+++ b/syslog.h
@@ -18,6 +18,7 @@
enum {
SOURCE_KLOG = 0,
SOURCE_SYSLOG = 1,
+ SOURCE_INTERNAL = 2,
SOURCE_ANY = 0xff,
};
@@ -37,5 +38,6 @@ typedef void (*log_list_cb)(struct log_head *h);
struct log_head* log_list(int count, struct log_head *h);
int log_buffer_init(int size);
void log_add(char *buf, int size, int source);
+void log_printf(char *fmt, ...);
#endif