[Toybox] (no subject)
Ashwini Sharma
ak.ashwini at gmail.com
Thu Jul 25 18:32:40 PDT 2013
On Fri, Jul 26, 2013 at 4:11 AM, Rob Landley <rob at landley.net> wrote:
> On 07/19/2013 05:02:40 AM, Ashwini Sharma wrote:
>
>> Hi Rob,
>>
>> Attached is the syslogd patch. Features supported are
>>
>> usage: syslogd [-a socket] [-p socket] [-O logfile] [-f config file] [-m
>> interval]
>> [-p socket] [-s SIZE] [-b N] [-R HOST] [-l N] [-nSLKD]
>>
>> In this implementation, __/dev/log__ is used as the default input source
>> and __/var/log/messages__ as the default
>> output destination.
>>
>
> The second one is in accordance with <strike>the prophecy</strike>
> Filesystem Hirearchy Standard 2.3:
>
> http://refspecs.linuxbase.org/**FHS_2.3/fhs-2.3.html#**
> VARLOGLOGFILESANDDIRECTORIES<http://refspecs.linuxbase.org/FHS_2.3/fhs-2.3.html#VARLOGLOGFILESANDDIRECTORIES>
>
> The first one isn't in FHS, and devtmpfs with Aboriginal's kernel config
> isn't providing "log". (It's providing "kmsg", but I dunno if that's the
> same thing.) Where does this data source come from and how would I set it
> up in my own system? (I'm not objecting, I'd just like to document how to
> use it.)
/dev/kmsg is used to read/write to the kernel printk ring buffer, which is
read by dmesg or klogd utilities.
/dev/log is an UNIX sockt created by sysogd, when invoked, and listens for
any incoming messgaes on this. The messages are written into it by the
system's syslog functionality.
Syslogd can listen on additional sockets provided through __ -a__ option.
>
> Please review and apply the patch to hg, and let me know for any comments.
>>
>
> I applied this and the other two commands to the pending directory. I
> didn't apply the previous batch's libc or makefile changes yet.
>
> For libc I mentioned that the ordering was used for fatal vs non-fatal
> signals, and restricted itself to the signals specified by POSIX-2008. This
> is adding realtime support (not in posix that I recall), and I need to work
> out how to do that cleanly and test it against glibc, uClibc, musl, and (if
> I can get a fourth test environment set up) bionic.
>
> As for the makefile changes: it's filtering out space during flag
> generation. Easier thing to do would be to filter out space in getflags, by
> adding a space character to the sed invocation:
>
> --- a/scripts/make.sh Thu Jul 25 13:32:06 2013 -0500
> +++ b/scripts/make.sh Thu Jul 25 13:41:00 2013 -0500
> @@ -64,7 +64,7 @@
> sed -n -e "s/.*TOY($FLX"',[ \t]*"\([^"]*\)"[ \t]*,.*)/\1/' \
> -e 't keep;d;:keep' -e 's/^[<>=][0-9]//' -e 's/[?&^]//' \
> -e 't keep' -e 's/[><=][0-9][0-9]*//g' -e 's/+.//g' \
> - -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@*]//g' "$@" -e 'p'
> + -e 's/\[[^]]*\]//g' -e 's/[-?^:&#|@* ]//g' "$@" -e 'p'
> }
>
> Let's see: grep NEWTOY toys/*/*.c | grep '"[^" ]* [^" ]*"'
>
> I see that kill and timeout are both affected by this. Flags look right
> now, and I _really_ need to fill out the test suite to catch this sort of
> thing... Anyway, commiting the smaller fix.
>
> regards,
>> Ashwini
>>
>
> Thanks,
>
> Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130726/fc8d65a7/attachment-0006.htm>
More information about the Toybox
mailing list