freebsd-skq/usr.sbin
Ed Schouten b484e3fee4 Push RFC 5424 message format from logmsg() into fprintlog().
Now that all of parsemsg() parses both RFC 3164 and 5424 messages and
hands them to logmsg(), alter the latter to properly forward all RFC
5424 message attributes to fprintlog(). While there, make some minor
cleanups to this code:

- Instead of extending the existing code that compares hostnames and
  message bodies for deduplication, print all of the relevant message
  fields into a single string that we can compare ('saved').

- No longer let the behaviour of fprintflog() depend on whether
  'msg == NULL' to print repetition messages, Simply decompose this
  function into fprintlog_first() and fprintlog_successive(). This
  makes the interpretation of function arguments less magical and also
  allows us to get consistent behaviour across RFC 3164 and 5424 when
  adding support for the RFC 5424 output format.

- As RFC 5424 syslog messages have a dedicated application name field,
  alter the repetition messages to be printed on behalf of syslogd on
  the current system. Change these messages to use the local hostname,
  so that it's obvious which syslogd instance detected the repetition.
  Remove f_prevhost, as it has now become unnecessary.

- Remove a useless strdup(). Deconsting the message string is safe in
  this specific case.
2018-04-06 17:16:50 +00:00
..
ac various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
accton General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
acpi MFV: r329072 2018-02-09 21:49:38 +00:00
adduser various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
amd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ancontrol spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
apm DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
apmd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
arp Remove infrastructure for token-ring networks. 2018-03-28 23:33:26 +00:00
asf various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
audit DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
auditd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
auditdistd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
auditreduce DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
authpf DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
autofs Add SPDX tags for automount(8) et al. 2018-01-24 16:39:02 +00:00
bhyve various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
bhyvectl Add CR2 get/set support. 2018-03-11 08:27:11 +00:00
bhyveload De-const to match changes in userboot.h 2017-12-06 05:18:52 +00:00
binmiscctl Don't leak resources on duplicate -m or -M arguments. Last one wins. 2017-12-28 05:32:59 +00:00
blacklistctl DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
blacklistd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
bluetooth various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
boot0cfg various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
bootparamd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
bsdconfig Use full month in dpv(3), figpar(3), and bsdconfig(8) manuals 2018-03-14 19:09:06 +00:00
bsdinstall Add the ThinkPad X1 (sandybridge) to the bsdinstall blacklist 2018-02-04 12:16:36 +00:00
bsnmpd SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
btxld Explicitly ignore return value from remove. We wouldn't do anything 2017-12-28 05:33:19 +00:00
camdd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
cdcontrol DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
chkgrp various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
chown General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
chroot General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ckdist various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
clear_locks various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
config General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
cpucontrol Make it possible to re-evaluate cpu_features. 2018-01-05 21:06:19 +00:00
crashinfo General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
cron DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
crunch various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ctladm various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ctld minor work smithing... 2018-03-24 04:21:22 +00:00
ctm SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
cxgbetool cxgbetool(8): Add the ability to decode hardware TCBs. 2018-03-14 00:04:58 +00:00
daemon o A command line flag for the syslog_facility fixed in the SYNOPSIS. 2018-01-26 08:52:28 +00:00
dconschat spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
devctl DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
devinfo When -v is specified with -p dev, print the same verbose output as 2017-12-21 19:19:43 +00:00
diskinfo Sanity check media size and sector counts to ensure that we don't 2018-01-06 12:34:03 +00:00
dumpcis Fix typo & build 2018-01-05 08:29:32 +00:00
editmap DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
edquota General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
eeprom various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
efibootmgr Make not getting BootOrder a warning, not a fatal error when printing. 2018-03-16 18:16:31 +00:00
efidp Set dp to NULL when we free it, and tree a NULL dp as an error 2018-01-05 07:09:24 +00:00
efivar Iniailize str so ucs2_to_utf8 won't free stack garbage. 2017-12-12 19:26:28 +00:00
etcupdate various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
extattr various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
extattrctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fdcontrol Tag 'a' case as one we're intentionally falling through to 2018-01-05 07:28:48 +00:00
fdformat fdformat is a sysadmin command and thus its man page should be in 2017-12-05 05:02:46 +00:00
fdread various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fdwrite SPDX: use the Beerware identifier. 2017-11-30 20:33:45 +00:00
fifolog various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
flowctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fmtree DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
freebsd-update various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
fstyp Refactoring of reading and writing of the UFS/FFS superblock. 2018-01-26 00:58:32 +00:00
ftp-proxy DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
fwcontrol Don't close fd twice. This line should have been deleted in r327279. 2018-01-05 05:34:20 +00:00
getfmac various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
getpmac various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
gpioctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
gssd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
gstat various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
hyperv DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
i2c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifmcstat bits is never null when we call ot. Add an assert to that effect and 2018-01-05 07:28:58 +00:00
inetd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
iostat General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
iovctl DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ip6addrctl General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
ipfwpcap DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
iscsid Add missing SPDX identifier in iscsid(8). 2018-01-24 16:34:37 +00:00
jail various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
jexec various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
jls various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kbdcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kbdmap various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
keyserv DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
kgmon Free zbuf when kflag is true too. 2017-12-28 05:34:04 +00:00
kgzip various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
kldxref Fixup minor nits in the PNP_INFO protocol. 2018-02-17 06:57:03 +00:00
lastlogin various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
lmcconfig DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
lpr Fix the resource leak of a 'FILE *' which could happen in routine 2018-03-12 01:41:16 +00:00
lptcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mailstats DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mailwrapper Revert r326844 2018-01-02 16:50:57 +00:00
makefs Synchronise with NetBSD's version of EFI handling for El Torito images. 2018-03-31 15:04:41 +00:00
makemap DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
manctl spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
memcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mergemaster Update several more URLs 2017-10-29 08:17:03 +00:00
mfiutil various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mixer DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mld6query General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
mlx5tool Check that the address is specified in mlx5tool(8). 2018-03-08 15:28:13 +00:00
mlxcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mount_smbfs DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mountd mountd: Return proper errno values in a few error paths 2018-02-21 00:19:02 +00:00
moused various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mpsutil Add a new 'debug' command tree and 'dump_reqs' command to grab and parse 2018-03-12 05:03:32 +00:00
mptable various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
mptutil Delete copypasta 2018-02-23 17:20:53 +00:00
mtest various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
nandsim various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
nandtool nandtool: Add missing mode for open() with O_CREAT 2017-12-26 16:20:38 +00:00
ndiscvt Don't leak outfile. Free it before we return from bincvt. 2017-12-28 05:34:14 +00:00
ndp General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
newsyslog newsyslog: fix typeo for 'zstd' 2018-02-03 20:53:21 +00:00
nfscbd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nfsd userland: Fix several typos and minor errors 2017-12-27 03:23:01 +00:00
nfsdumpstate DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nfsrevoke DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nfsuserd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ngctl DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nghook DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nmtree DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nologin DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
nscd DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
ntp MFV r330102: ntp 4.2.8p11 2018-02-28 07:59:55 +00:00
nvram
ofwdump DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pc-sysinstall share and pc-sysinstall: adoption of SPDX licensing ID tags. 2017-11-27 15:28:26 +00:00
pciconf Remove dead code (comma is either 0 or 1 for sure, no need to test). 2018-01-05 07:29:02 +00:00
periodic periodic: fix exit status for nonexistent arguments 2017-11-20 23:51:51 +00:00
pkg various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcannotate various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmccontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
pmcstat Only call flush in pipe mode. 2018-01-17 16:55:35 +00:00
pmcstudy DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pnpinfo DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
portsnap various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
powerd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ppp ppp(8): fix code producing debugging logs 2018-02-10 17:09:51 +00:00
pppctl pppctl88) Avoid strcpy() copies on overlapping string. 2018-01-29 14:23:44 +00:00
praliases DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
praudit DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
prometheus_sysctl_exporter DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
pstat General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
pw Allow the "@" and "!" characters in passwd file GECOS fields. 2018-03-01 17:47:28 +00:00
pwd_mkdb General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
quot Revert r313780 (UFS_ prefix) 2018-03-17 12:59:55 +00:00
quotaon General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rarpd SPDX: mostly fixes to previous changes. 2017-12-13 16:13:17 +00:00
repquota General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rip6query General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rmt General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
route6d General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rpc.lockd userland: Fix several typos and minor errors 2017-12-27 03:23:01 +00:00
rpc.statd spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
rpc.umntall various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
rpc.yppasswdd spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
rpc.ypupdated spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
rpc.ypxfrd spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
rpcbind Plug a possible memory leak. 2018-03-19 05:49:26 +00:00
rrenumd General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rtadvctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
rtadvd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
rtprio various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
rtsold General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
rwhod General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
sa various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
sendmail DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
service usr.sbin/service: Fix -j to not be order dependant 2018-01-22 03:38:10 +00:00
services_mkdb various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
sesutil DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
setfib General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
setfmac various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
setpmac various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
smbmsg various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
snapinfo various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
spkrtest various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
spray spray: fix the spelling in an output string 2018-03-05 16:13:29 +00:00
syslogd Push RFC 5424 message format from logmsg() into fprintlog(). 2018-04-06 17:16:50 +00:00
sysrc Change my given name from "Garrett" to "Ngie" 2016-06-13 10:30:49 +00:00
tcpdchk DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tcpdmatch DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tcpdrop DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tcpdump DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
tests Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
timed timed: slave is an infinite loop, mark it as such 2018-01-13 20:35:32 +00:00
traceroute various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
traceroute6 When using SCTP for sending probe packets, use INIT chunks for payloads 2018-01-27 19:23:42 +00:00
trpt trpt(8): Clean up build hack to detect ancient compiler 2018-02-16 20:46:44 +00:00
tzsetup DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
uathload various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
uefisign Add SPDX identifiers for uefisign(8) sources. 2018-01-24 16:33:33 +00:00
ugidfw various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
uhsoctl various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
unbound various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
usbconfig Add "usbconfig dump_all_desc", a subcommand to dump all device and config 2018-03-13 19:49:06 +00:00
usbdump various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
utx various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
vidcontrol various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
vigr
vipw General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
wake various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
watch Revert r327005 - SPDX tags for license similar to BSD-2-Clause. 2017-12-20 20:25:28 +00:00
watchdogd various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
wlandebug libifconfig: multiple feature additions 2018-02-23 03:11:43 +00:00
wpa wpa_supplicant.conf.5: Document minimal eduroam configuration 2018-03-26 22:10:20 +00:00
yp_mkdb spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ypbind various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ypldap DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
yppoll various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
yppush spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
ypserv su_data: correct macro expansion. 2018-02-08 14:53:34 +00:00
ypset various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
zic DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
zonectl DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
zzz
Makefile Add kernel and userspace code to dump the firmware state of supported 2018-03-08 15:21:56 +00:00
Makefile.amd64 Remove the si(4) driver and sicontrol(8) for Specialix serial cards. 2016-08-19 21:14:27 +00:00
Makefile.arm
Makefile.arm64
Makefile.i386 Remove pc98 support completely. 2017-01-28 02:22:15 +00:00
Makefile.inc
Makefile.mips
Makefile.powerpc Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
Makefile.sparc64