HomeFreeBSD

libc: Some enhancements to syslog(3)

Description

libc: Some enhancements to syslog(3)

  • Defined MAXLINE constant (8192 octets by default instead 2048) for centralized limit setting up. It sets maximum number of characters of the syslog message. RFC5424 doesn't limit maximum size of the message. Named after MAXLINE in syslogd(8).
  • Fixed size of fmt_cpy buffer up to MAXLINE for rendering formatted (%m) messages.
  • Introduced autoexpansion of sending socket buffer up to MAXLINE.

MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D27205

Details

Provenance
dmitry.wagin_ya.ruAuthored on Mar 23 2021, 4:01 PM
markjCommitted on Mar 23 2021, 4:49 PM
Differential Revision
D27205: libc: Some enhancements to syslog(3)
Parents
rG6bcba8dac9a4: arm64: Only check for freebsd,dts-version if we are booted in FDT mode.
Branches
Unknown
Tags
Unknown