Re: [PATCH] Allow syslogd to accept multiple configuration files

看板FB_current作者時間14年前 (2011/11/10 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
On Wed, Nov 9, 2011 at 11:01 AM, Brooks Davis <brooks@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). _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1Ekh_ZOO (FB_current)
文章代碼(AID): #1Ekh_ZOO (FB_current)