[PATCH] Allow syslogd to accept multiple configuration files

Julian Elischer julian at freebsd.org
Wed Nov 9 17:52:22 UTC 2011

On 11/9/11 8:21 AM, Ryan Stone wrote:
> On Wed, Nov 9, 2011 at 11:01 AM, Brooks Davis<brooks at freebsd.org>  wrote:
>> Do you happen to know why the code calloc's the struct filed's with 1's?
>> I didn't do any investigation but that's seems like an odd pattern.
> calloc(1, sizeof(*f)) returns an array of 1 element of size sizeof(*f)
> that is pre-zeroed.  It's the userland equivalent of
> malloc(sizeof(*f), ..., M_ZERO).

I once did similar but changed the parser to have INCLUDE files.

so you could insert new parts in between other entries

it was about 15 years ago so I can't remember the syntax I used.

More information about the freebsd-current mailing list