Re: [Toybox] Put syslogd and logger into the same file?

2013-08-20 Thread Felix Janda
Rob Landley wrote: On 08/18/2013 11:55:22 AM, Felix Janda wrote: Rob Landley wrote: On 08/10/2013 04:22:58 PM, Felix Janda wrote: Right now syslogd.c contains code from sys/syslog.h declaring the arrays prioritynames and facilitynames, which map human readable strings to

Re: [Toybox] Put syslogd and logger into the same file?

2013-08-20 Thread Rob Landley
On 08/19/2013 03:15:25 PM, Felix Janda wrote: Felix Janda wrote: [...] So how about the following hack? Keep them in separate files. Have one common config symbol, tear everything out of logger.c but logger_main, declare SYSLOG_NAMES in syslogd.c, put something like the current lookup()

Re: [Toybox] Put syslogd and logger into the same file?

2013-08-10 Thread Rob Landley
On 08/10/2013 04:22:58 PM, Felix Janda wrote: Right now syslogd.c contains code from sys/syslog.h declaring the arrays prioritynames and facilitynames, which map human readable strings to numerical ids. logger.c contains very similar array definitions. sys/syslog.h declares these arrays only