aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/syslogd.c
AgeCommit message (Collapse)Author
2018-01-01Cleanup logger.c, and move the facilitynames/prioritynames SYSLOG_NAMESRob Landley
stuff syslog.h does into lib.c and portability.h
2017-05-26Be more consistent about periods in help text.Elliott Hughes
2016-02-08Add xpipe() to lib.Rob Landley
2015-03-15I added error handling code in write_rotate().Hyejin Kim
I think that it is better to check tf->logfd before doing truncate()/write() and getting error.
2014-07-17Use libc daemon() instead of pending daemonize.Rob Landley
2014-04-23usage: is lower case (the help generator looks for that, might as well be ↵Rob Landley
consistent).
2014-01-16Rename xmsprintf() to just xmprintf().Rob Landley
Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
2013-11-02Merge toynet.h into toys.h: musl supports it and micromanaging uClibc config ↵Rob Landley
options isn't very interesting anymore.
2013-09-03Remove itoa/utoa, let libc do this with sprintf.Rob Landley
2013-08-26syslogd: cleanupFelix Janda
- fix bugs introduced in the cleanups - inline addrfds() and open_unix_socks() and simplify them - use xpidfile() - remove isNetwork from struct logfile - invert the meaning of facility and level in struct logfile so that they are automatically correctly initialized - fix memory leak regarding the filenames of logfiles - TT.sd was unused
2013-08-24syslogd: cleanupFelix Janda
- fix bugs in previous cleanups - remove config from struct logfile - simplify parse_config()
2013-08-23syslogd: stop abusing arg_listFelix Janda
2013-08-23syslogd: cleanupFelix Janda
- simplify resolveconfig() -> now logger_lookup is also used in syslogd.c - inline addrfds - small cosmetical changes in parse_config_file()
2013-08-21syslogd: cleanupFelix Janda
- remove flag macros - remove some unecessary gotos - inline open_udp_socks() and getport() - simplify resulting open_logfiles() Now in the syslog.conf the port numbers for remote hosts are no longer allowed to be hexadecimal. If there is need for hexadecimal port numbers, one can as well accept octal ones and use base 0 in strtoul.
2013-08-20syslogd: cleanupFelix Janda
- Remove structure fd_pair so that sigfd can go into GLOBALS - Remove struct typedefs - Inline setup_signal() - Small fix in Usage message
2013-08-19In logger and syslogd remove duplicated definitions of facilities and prioritiesFelix Janda
In syslogd.c get the definitions from <syslog.h>. For logger.c we can't do this as well since it causes multiply defined symbols. Instead we define a non-static lookup function in syslog.c for logger.
2013-08-11Ashwini Sharma said that Kyungwan Han should be in the contact info for the ↵Rob Landley
commands he sent recently.
2013-08-10Add daemonize function to lib for klogd and syslogdFelix Janda
2013-07-25syslogd by Madhur Verma.Rob Landley