The NetBSD Project

CVS log for src/usr.sbin/syslogd/syslogd.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / syslogd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.141 / (download) - annotate - [select for diffs], Wed Oct 11 23:22:13 2023 UTC (5 months, 2 weeks ago) by uwe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.140: +3 -3 lines
Diff to previous 1.140 (colored) to selected 1.69.2.23 (colored)

syslogd.c: fix a typo in a comment

Revision 1.140 / (download) - annotate - [select for diffs], Tue Nov 8 01:43:09 2022 UTC (16 months, 2 weeks ago) by uwe
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.139: +86 -6 lines
Diff to previous 1.139 (colored) to selected 1.69.2.23 (colored)

syslogd: make -d accept an optional argument

Make it possible to specify the debug message categories with an
optional numeric argument.  You'll have to read the fine source to
find out what they are.  The number can be specified as the usual
decimal, hex (0x), or octal (0) literal with an optional ~negation.

Since syslogd uses getopt(3), not getopt_long(3), do a bit of
gymnastics so that both -d42 and -d 42 are accepted (I'm not inventing
long names for all the existing options just to support an optional
argument to -d).

-d without an argument still uses the old D_DEFAULT selection just in
case someone really relies on that.  You can disable all debug
messages with -d0 but still get syslogd not daemonized.

Revision 1.139 / (download) - annotate - [select for diffs], Fri May 20 19:34:23 2022 UTC (22 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.138: +3 -3 lines
Diff to previous 1.138 (colored) to selected 1.69.2.23 (colored)

s/auxillary/auxiliary/ in comments.

Revision 1.138 / (download) - annotate - [select for diffs], Sat Nov 27 22:30:26 2021 UTC (2 years, 4 months ago) by rillig
Branch: MAIN
Changes since 1.137: +3 -3 lines
Diff to previous 1.137 (colored) to selected 1.69.2.23 (colored)

usr.sbin: remove unnecessary CONSTCOND, lint no longer needs it

Since 2021-01-31, lint no longer requires a CONSTCOND comment in a
do-while-0 statement since this is a common code pattern, especially in
statement-like macros.

sed -i -E 's,} while \(/\* ?CONSTCOND ?\*/ ?0\),} while (0),' */*.[ch]

Revision 1.137 / (download) - annotate - [select for diffs], Fri Aug 13 20:19:14 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.69.2.23 (colored)

s/bacause/because/

Revision 1.136 / (download) - annotate - [select for diffs], Sun Nov 8 01:12:46 2020 UTC (3 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.135: +3 -6 lines
Diff to previous 1.135 (colored) to selected 1.69.2.23 (colored)

syslogd: in die(), don't call die() again recursively.

Particularly not for something as immaterial as close failing.

PR 55795

Revision 1.135 / (download) - annotate - [select for diffs], Sat Nov 7 17:46:56 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored) to selected 1.69.2.23 (colored)

make the buffer fit any 32 bit number.

Revision 1.134 / (download) - annotate - [select for diffs], Sat Nov 7 16:16:33 2020 UTC (3 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.133: +6 -6 lines
Diff to previous 1.133 (colored) to selected 1.69.2.23 (colored)

PR/55794: Jan Schaumann: Eliminate unchecked malloc

Revision 1.133 / (download) - annotate - [select for diffs], Tue Sep 29 14:08:43 2020 UTC (3 years, 5 months ago) by gson
Branch: MAIN
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored) to selected 1.69.2.23 (colored)

When reporting an error before daemonizing, prefix the error message
with the program name.

Revision 1.125.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:23 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.125.2.1: +3 -3 lines
Diff to previous 1.125.2.1 (colored) to branchpoint 1.125 (colored) next main 1.126 (colored) to selected 1.69.2.23 (colored)

Merge changes from current as of 20200406

Revision 1.132 / (download) - annotate - [select for diffs], Thu Dec 26 04:53:12 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.131: +3 -3 lines
Diff to previous 1.131 (colored) to selected 1.69.2.23 (colored)

s/lenght/length/

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:43 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.125: +31 -11 lines
Diff to previous 1.125 (colored) to selected 1.69.2.23 (colored)

Sync with HEAD

Revision 1.131 / (download) - annotate - [select for diffs], Sun Feb 3 03:19:31 2019 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.130: +3 -2 lines
Diff to previous 1.130 (colored) to selected 1.69.2.23 (colored)

- add or adjust /* FALLTHROUGH */ where appropriate
- add __unreachable() after functions that can return but won't in
  this case, and thus can't be marked __dead easily

Revision 1.124.2.2 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:59 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.124.2.1: +30 -11 lines
Diff to previous 1.124.2.1 (colored) to branchpoint 1.124 (colored) next main 1.125 (colored) to selected 1.69.2.23 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.130 / (download) - annotate - [select for diffs], Mon Nov 5 10:27:06 2018 UTC (5 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.129: +2 -21 lines
Diff to previous 1.129 (colored) to selected 1.69.2.23 (colored)

Revert previous - local merge mishap

Revision 1.129 / (download) - annotate - [select for diffs], Mon Nov 5 09:22:30 2018 UTC (5 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.128: +3 -3 lines
Diff to previous 1.128 (colored) to selected 1.69.2.23 (colored)

Sort options.

Revision 1.128 / (download) - annotate - [select for diffs], Mon Nov 5 08:34:20 2018 UTC (5 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.127: +21 -2 lines
Diff to previous 1.127 (colored) to selected 1.69.2.23 (colored)

Make it compilable with gcc

Revision 1.127 / (download) - annotate - [select for diffs], Sun Nov 4 20:45:21 2018 UTC (5 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.126: +19 -7 lines
Diff to previous 1.126 (colored) to selected 1.69.2.23 (colored)

syslogd: allow the reporting of buffer overflows to be disabled.

This generally isn't a good thing, nothing should be discard silently.
However, for systems that don't want big syslogd buffers or are too slow
to log effectively this reporting can now be disabled.

Revision 1.126 / (download) - annotate - [select for diffs], Sun Nov 4 20:23:08 2018 UTC (5 years, 4 months ago) by roy
Branch: MAIN
Changes since 1.125: +15 -8 lines
Diff to previous 1.125 (colored) to selected 1.69.2.23 (colored)

syslogd: allow the receiving buffer size to be set.

This allows the admin to try and avoid buffer overflow when a log of
logging appears in bursts.

Revision 1.124.2.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:20 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.124: +24 -2 lines
Diff to previous 1.124 (colored) to selected 1.69.2.23 (colored)

Sync with HEAD

Revision 1.125 / (download) - annotate - [select for diffs], Sun May 6 19:16:36 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.124: +24 -2 lines
Diff to previous 1.124 (colored) to selected 1.69.2.23 (colored)

grow AF_UNIX receive buffer size

Revision 1.119.4.3 / (download) - annotate - [select for diffs], Mon Oct 23 18:52:08 2017 UTC (6 years, 5 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-2-RELEASE
Changes since 1.119.4.2: +3 -3 lines
Diff to previous 1.119.4.2 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #1510):
	usr.sbin/syslogd/syslogd.c: revision 1.124
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

Revision 1.105.4.3 / (download) - annotate - [select for diffs], Fri Oct 13 07:57:51 2017 UTC (6 years, 5 months ago) by snj
Branch: netbsd-6
Changes since 1.105.4.2: +3 -3 lines
Diff to previous 1.105.4.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #1504):
	usr.sbin/syslogd/syslogd.c: revision 1.124
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

Revision 1.123.8.1 / (download) - annotate - [select for diffs], Sat Sep 23 17:20:13 2017 UTC (6 years, 6 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #280):
	usr.sbin/syslogd/syslogd.c: revision 1.124
Use looked up remote host for remote message without a hostname
An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Sep 10 17:01:07 2017 UTC (6 years, 6 months ago) by ginsbach
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) to selected 1.69.2.23 (colored)

Use looked up remote host for remote message without a hostname

An incoming remote message may not necessarily have a hostname
between the timestamp and the message. The the source of the remote
sender is already looked up so use that hostname/IP address rather
than the local hostname.

XXX: pullup-8
XXX: pullup-7
XXX: pullup-6

Revision 1.119.4.2 / (download) - annotate - [select for diffs], Mon Sep 4 06:30:38 2017 UTC (6 years, 6 months ago) by snj
Branch: netbsd-7
Changes since 1.119.4.1: +9 -8 lines
Diff to previous 1.119.4.1 (colored) to branchpoint 1.119 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #1496):
	usr.sbin/syslogd/syslogd.c: revision 1.123
PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to
bsd time conversion

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Thu Aug 31 15:10:29 2017 UTC (6 years, 6 months ago) by martin
Branch: netbsd-6
Changes since 1.105.4.1: +9 -8 lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by ginsbach in ticket #1496):
	usr.sbin/syslogd/syslogd.c: revision 1.123
PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to
bsd time conversion

Revision 1.123 / (download) - annotate - [select for diffs], Sat Jun 11 16:55:10 2016 UTC (7 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.122: +9 -8 lines
Diff to previous 1.122 (colored) to selected 1.69.2.23 (colored)

PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to
bsd time conversion

Revision 1.122 / (download) - annotate - [select for diffs], Sat Sep 5 20:19:43 2015 UTC (8 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.121: +7 -5 lines
Diff to previous 1.121 (colored) to selected 1.69.2.23 (colored)

tidy/fix printing of paths from sockaddr_un

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:19 2015 UTC (8 years, 10 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.119: +13 -12 lines
Diff to previous 1.119 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by jnemeth in ticket #760):
	usr.sbin/syslogd/syslogd.c: revision 1.120
- when checking hostname of incoming remote messages, fallback to checking
  remote host if the message doesn't contain a hostname
- don't truncate IP addresses when reading syslogd.conf

Revision 1.121 / (download) - annotate - [select for diffs], Tue Feb 10 20:38:15 2015 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.120: +59 -39 lines
Diff to previous 1.120 (colored) to selected 1.69.2.23 (colored)

- always set *to_buf to a timestamp, even if there was none reported/parseable
  (Frank Kardel).
- merge the timestamp copying code to one place.
- factor out the debugging printf function.

Revision 1.112.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:18 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.112.2.2: +88 -14 lines
Diff to previous 1.112.2.2 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.69.2.23 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.120 / (download) - annotate - [select for diffs], Mon Aug 18 05:21:16 2014 UTC (9 years, 7 months ago) by jnemeth
Branch: MAIN
Changes since 1.119: +13 -12 lines
Diff to previous 1.119 (colored) to selected 1.69.2.23 (colored)

- when checking hostname of incoming remote messages, fallback to checking
  remote host if the message doesn't contain a hostname
- don't truncate IP addresses when reading syslogd.conf

Revision 1.105.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:43:10 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.105.2.4: +93 -16 lines
Diff to previous 1.105.2.4 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored) to selected 1.69.2.23 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.119 / (download) - annotate - [select for diffs], Wed Nov 27 20:48:28 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.118: +8 -6 lines
Diff to previous 1.118 (colored) to selected 1.69.2.23 (colored)

CID 1132759: Abort on dehumanize_number error on constant built-in string.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Nov 11 16:39:21 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.117: +10 -11 lines
Diff to previous 1.117 (colored) to selected 1.69.2.23 (colored)

CID 1128379: Fix TOCTOU, always open the file first with non-blocking I/O,
do that stat later and leave the file as non-blocking because it does not
make a difference for plain files.

Revision 1.117 / (download) - annotate - [select for diffs], Sat Nov 9 19:00:18 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.116: +79 -6 lines
Diff to previous 1.116 (colored) to selected 1.69.2.23 (colored)

add support for outputting to FIFO's (Anthony Mallet)

Revision 1.116 / (download) - annotate - [select for diffs], Sat Nov 9 18:58:22 2013 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.115: +8 -8 lines
Diff to previous 1.115 (colored) to selected 1.69.2.23 (colored)

fix two bugs related to queues (Anthony Mallet)
- the default values are in humanized number form so strtol does not work
- fix reversed size tests

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:29:06 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.112.2.1: +5 -2 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) to selected 1.69.2.23 (colored)

resync from head

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Thu Jun 13 07:11:11 2013 UTC (10 years, 9 months ago) by msaitoh
Branch: netbsd-6
Changes since 1.105: +5 -2 lines
Diff to previous 1.105 (colored) to selected 1.69.2.23 (colored)

Pull up following revision(s) (requested by pettai in ticket #897):
	usr.sbin/syslogd/tls.c: revision 1.11
	usr.sbin/syslogd/syslogd.h: revision 1.4
	usr.sbin/syslogd/syslogd.c: revision 1.115
PR/47861: Fredrik Pettai: keep track of the address family for each socket
opened and don't send the a message to the wrong family type.

Revision 1.115 / (download) - annotate - [select for diffs], Mon May 27 23:15:51 2013 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Changes since 1.114: +5 -2 lines
Diff to previous 1.114 (colored) to selected 1.69.2.23 (colored)

PR/47861: Fredrik Pettai: keep track of the address family for each socket
opened and don't send the a message to the wrong family type.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:30:49 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.112: +10 -2 lines
Diff to previous 1.112 (colored) to selected 1.69.2.23 (colored)

resync with head

Revision 1.105.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:45 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.105.2.3: +10 -2 lines
Diff to previous 1.105.2.3 (colored) to branchpoint 1.105 (colored) to selected 1.69.2.23 (colored)

sync with head

Revision 1.114 / (download) - annotate - [select for diffs], Thu Jan 17 18:54:28 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Changes since 1.113: +6 -4 lines
Diff to previous 1.113 (colored) to selected 1.69.2.23 (colored)

ut_line does not have /dev in front of it. Add it, from dholland@

Revision 1.113 / (download) - annotate - [select for diffs], Tue Jan 15 22:37:04 2013 UTC (11 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.112: +8 -2 lines
Diff to previous 1.112 (colored) to selected 1.69.2.23 (colored)

PR/47449: David Holland: Don't log to terminals with mesg n, unless it is a
wall message.

Revision 1.105.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:53 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.105.2.2: +59 -11 lines
Diff to previous 1.105.2.2 (colored) to branchpoint 1.105 (colored) to selected 1.69.2.23 (colored)

sync with head

Revision 1.112 / (download) - annotate - [select for diffs], Wed Jun 20 01:39:34 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.111: +4 -4 lines
Diff to previous 1.111 (colored) to selected 1.69.2.23 (colored)

remove dup O_NDELAY.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Jun 19 13:44:35 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.110: +11 -8 lines
Diff to previous 1.110 (colored) to selected 1.69.2.23 (colored)

- fix writev1() to pre-decrement count.
- always open ttys with O_NDELAY.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jun 18 19:17:42 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.109: +12 -12 lines
Diff to previous 1.109 (colored) to selected 1.69.2.23 (colored)

don't call isatty() to the fd before opening it.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Jun 6 00:33:45 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.108: +4 -4 lines
Diff to previous 1.108 (colored) to selected 1.69.2.23 (colored)

WARNS=4

Revision 1.108 / (download) - annotate - [select for diffs], Tue Jun 5 19:33:17 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.107: +58 -13 lines
Diff to previous 1.107 (colored) to selected 1.69.2.23 (colored)

Open and write to ttys using non-blocking I/O to prevent DoS when hardware
or software flow control prevents tty writes or when the tty line is too
slow to respond.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Wed May 23 10:08:30 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.105.2.1: +17 -15 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) to selected 1.69.2.23 (colored)

sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Tue May 15 01:22:50 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5
Changes since 1.106: +17 -15 lines
Diff to previous 1.106 (colored) to selected 1.69.2.23 (colored)

improve error handling.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:09:53 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.105: +5 -4 lines
Diff to previous 1.105 (colored) to selected 1.69.2.23 (colored)

sync with head

Revision 1.106 / (download) - annotate - [select for diffs], Wed Mar 28 17:39:33 2012 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base4
Changes since 1.105: +5 -4 lines
Diff to previous 1.105 (colored) to selected 1.69.2.23 (colored)

add aliases for the protocol format

Revision 1.105 / (download) - annotate - [select for diffs], Wed Aug 31 16:25:00 2011 UTC (12 years, 7 months ago) by plunky
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.104: +3 -3 lines
Diff to previous 1.104 (colored) to selected 1.69.2.23 (colored)

NULL does not need a cast

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:50 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.102: +21 -9 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.69.2.23 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.104 / (download) - annotate - [select for diffs], Mon Jun 20 08:27:15 2011 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.103: +18 -12 lines
Diff to previous 1.103 (colored) to selected 1.69.2.23 (colored)

Now need to use own buffer for klog read due to previous change.

Revision 1.103 / (download) - annotate - [select for diffs], Mon Jun 20 00:42:11 2011 UTC (12 years, 9 months ago) by enami
Branch: MAIN
Changes since 1.102: +11 -5 lines
Diff to previous 1.102 (colored) to selected 1.69.2.23 (colored)

Defer the processing of incomplete line at the end of buffer so that
kernel printf messages logged to /var/log/messages become always
easier to read.

Revision 1.102 / (download) - annotate - [select for diffs], Tue May 24 13:26:04 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.69.2.23 (colored)

Explicitly mark a NEWREF as unused

Revision 1.101 / (download) - annotate - [select for diffs], Tue May 24 13:25:25 2011 UTC (12 years, 10 months ago) by joerg
Branch: MAIN
Changes since 1.100: +16 -16 lines
Diff to previous 1.100 (colored) to selected 1.69.2.23 (colored)

Properly use format strings

Revision 1.100 / (download) - annotate - [select for diffs], Wed Jun 9 21:55:42 2010 UTC (13 years, 9 months ago) by riz
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.99: +11 -4 lines
Diff to previous 1.99 (colored) to selected 1.69.2.23 (colored)

Allow syslogd to compile when MKCRYPTO=no.  No promises as to whether
it works or not, as this has been broken since late 2008, when the
"encrypted connections" support was added to syslogd.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Feb 6 21:09:46 2009 UTC (15 years, 1 month ago) by mschuett
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.98: +8 -7 lines
Diff to previous 1.98 (colored) to selected 1.69.2.23 (colored)

PR/40563: Takahiro Hayashi: syslogd(8) refers freed pointer on exiting

Revision 1.98 / (download) - annotate - [select for diffs], Thu Jan 22 21:10:52 2009 UTC (15 years, 2 months ago) by mschuett
Branch: MAIN
Changes since 1.97: +8 -3 lines
Diff to previous 1.97 (colored) to selected 1.69.2.23 (colored)

PR/40438: Takahiro Hayashi: syslogd(8) refers freed area

Revision 1.97 / (download) - annotate - [select for diffs], Thu Jan 22 10:45:35 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored) to selected 1.69.2.23 (colored)

sign-compare fixes for amd64

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jan 18 10:35:26 2009 UTC (15 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.95: +13 -12 lines
Diff to previous 1.95 (colored) to selected 1.69.2.23 (colored)

fix -Wsign-compare issues

Revision 1.95 / (download) - annotate - [select for diffs], Mon Dec 29 03:45:23 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.94: +3 -3 lines
Diff to previous 1.94 (colored) to selected 1.69.2.23 (colored)

fix suseconds_t format.

Revision 1.94 / (download) - annotate - [select for diffs], Thu Nov 27 20:37:21 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.93: +36 -19 lines
Diff to previous 1.93 (colored) to selected 1.69.2.23 (colored)

PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies
Syslogd does not properly handle:

1) the ADDDATE flag which is set with -T invocation and when messages
   come from the kernel.  Other cases where it is set it is ignored
   as timestamping is always done (e.g. logmsg_async())

2) the variable found_ts in check_timestamp().  It would determine
   whether or not the message had a (possibly valid) timestamp, set
   found_ts to true, then ignore that in most cases.  If we can't find
   a timestamp return.

3) messages without a parsable timestamp should get one when outputting
   the BSD syslog format so that a syslog-protocol timestamp isn't
   injected (chopped off with BSD syslog length) giving something like:
    "2008-11-27T15:0 cisco -: 1790:"
     ^ time might have been 2008-11-27T15:02:35.296497+11:00

4) syslog protocol version checking only checked for a leading numeral
   one (1) then skipped two places (presuming a space).  Messages sent
   from some sources (e.g. my cisco) may be
     "1795: Nov 27 04:12:52: %LINEPROTO-5-..."
   which would be chopped to
       "95: Nov 27 04:12:52: %LINEPROTO-5-..."

Revision 1.93 / (download) - annotate - [select for diffs], Fri Nov 7 15:42:01 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.92: +13 -4 lines
Diff to previous 1.92 (colored) to selected 1.69.2.23 (colored)

PR/39874: Geoff C. Wing: For compatibility trim hostname domains in bsd
output format when matching host lines.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Nov 7 07:36:38 2008 UTC (15 years, 4 months ago) by minskim
Branch: MAIN
Changes since 1.91: +128 -128 lines
Diff to previous 1.91 (colored) to selected 1.69.2.23 (colored)

Remove trailing whitespace.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Nov 4 18:52:25 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.90: +6 -6 lines
Diff to previous 1.90 (colored) to selected 1.69.2.23 (colored)

use localtime_r

Revision 1.90 / (download) - annotate - [select for diffs], Tue Nov 4 10:01:56 2008 UTC (15 years, 4 months ago) by blymn
Branch: MAIN
Changes since 1.89: +3 -2 lines
Diff to previous 1.89 (colored) to selected 1.69.2.23 (colored)

Call tzset() to init TZ information for localtime().

Revision 1.89 / (download) - annotate - [select for diffs], Mon Nov 3 22:59:51 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.88: +6 -2 lines
Diff to previous 1.88 (colored) to selected 1.69.2.23 (colored)

make sure that we memset the struct tm we pass to mktime and set isdst to -1
so that it will figure out if daylight savings is to be applied or not. From
Anon Ymous

Revision 1.88 / (download) - annotate - [select for diffs], Mon Nov 3 02:44:01 2008 UTC (15 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.87: +5 -5 lines
Diff to previous 1.87 (colored) to selected 1.69.2.23 (colored)

PR/39857: Bernd Ernesti: Fix broken output caused by a wrong offset. From
Martin Schuette.

Revision 1.87 / (download) - annotate - [select for diffs], Fri Oct 31 16:12:19 2008 UTC (15 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.86: +3058 -796 lines
Diff to previous 1.86 (colored) to selected 1.69.2.23 (colored)

Import syslogd SoC project by Martin Schuette:
	- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections

Revision 1.84.18.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:30:15 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.84: +4 -9 lines
Diff to previous 1.84 (colored) next main 1.85 (colored) to selected 1.69.2.23 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 21 13:36:59 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored) to selected 1.69.2.23 (colored)

Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.85 / (download) - annotate - [select for diffs], Sun Jul 13 20:07:49 2008 UTC (15 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.84: +2 -7 lines
Diff to previous 1.84 (colored) to selected 1.69.2.23 (colored)

Clarify how one is supposed to use the pointers returned by getutentries()
(the utmpentry.c code), specifically with respect to who owns them and
when to free them. Now they're owned by utmpentry.c, only. Abolish the
freeutentries() function, which was the wrong abstraction; add instead
endutentries(), which flushes out the internally managed memory.

Update callers as necessary. Some (e.g. talkd) had been leaking memory;
others (e.g. syslogd) had been accidentally freeing and reloading utmp
more often than necessary. There are a couple untidy bits in users and
rwhod that someone should look after sometime, maybe.

Fixes PR bin/35131, which was about talkd's memory leak.

Revision 1.84 / (download) - annotate - [select for diffs], Mon Nov 13 20:24:00 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: wrstuden-revivesa
Changes since 1.83: +8 -3 lines
Diff to previous 1.83 (colored) to selected 1.69.2.23 (colored)

PR/34979: Scott Ellis: Detect 0 length name and skip it instead of infinite
loop.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Oct 21 09:42:26 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.82: +10 -4 lines
Diff to previous 1.82 (colored) to selected 1.69.2.23 (colored)

matches_spec: fix a bug so that "+host111,host1" actually matches to host1.
add a simple sanity check.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Sep 16 17:05:32 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.81: +11 -5 lines
Diff to previous 1.81 (colored) to selected 1.69.2.23 (colored)

PR/30879: Jukka Salmi: syslogd(8) doesn't parse `@' hostname specification
correctly

Revision 1.81 / (download) - annotate - [select for diffs], Sat Sep 16 16:57:27 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.80: +27 -5 lines
Diff to previous 1.80 (colored) to selected 1.69.2.23 (colored)

PR/28753: Martin J. Laubach: syslogd disables remote logging on non-fatal errors

Revision 1.80 / (download) - annotate - [select for diffs], Sat Sep 16 06:34:55 2006 UTC (17 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.79: +6 -5 lines
Diff to previous 1.79 (colored) to selected 1.69.2.23 (colored)

Sync usage with man page (-b).

Revision 1.79 / (download) - annotate - [select for diffs], Fri Sep 15 20:32:59 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.78: +11 -7 lines
Diff to previous 1.78 (colored) to selected 1.69.2.23 (colored)

PR/14563: Brian A. Seklecki: syslogd binds udp sockets on all interfaces
Add -b option to pass a bind address.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 24 19:00:30 2006 UTC (17 years, 11 months ago) by snj
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.69.2.23 (colored)

It's "its."

Revision 1.77 / (download) - annotate - [select for diffs], Wed Apr 19 21:18:50 2006 UTC (17 years, 11 months ago) by pavel
Branch: MAIN
Changes since 1.76: +14 -9 lines
Diff to previous 1.76 (colored) to selected 1.69.2.23 (colored)

PR 32579: Add a -T flag to syslogd, which causes it to use local time for
messages received from the network. Useful for collecting logs from
devices which do not have correct time.

Add it to usage.

Document it, also document that syslogd adds a timestamp with the local
time if it does not recognize the original timestamp field. Bump date.

Approved by wrstuden@.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Jun 2 09:42:57 2005 UTC (18 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.75: +3 -2 lines
Diff to previous 1.75 (colored) to selected 1.69.2.23 (colored)

appease gcc -Wuninitialized

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Sat Mar 19 01:57:16 2005 UTC (19 years ago) by tron
Branch: netbsd-1-6
Changes since 1.51.2.2: +5 -3 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.69.2.23 (colored)

Pull up revision 1.68 (requested by heas in ticket #1773):
Postpone initial setting of the alarm timer until after the call to daemon(),
as the timer would be cleared by daemon's fork().

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sun Jan 30 13:29:26 2005 UTC (19 years, 2 months ago) by he
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.65: +5 -3 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.69.2.23 (colored)

Pull up revision 1.68 (requested by heas in ticket #958):
  Postpone initial setting of the alarm timer until after
  the call to daemon(), as the timer would be cleared by
  deamon's fork().  Fixes PR#19558.

Revision 1.75 / (download) - annotate - [select for diffs], Sun Jan 9 00:07:27 2005 UTC (19 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.74: +25 -20 lines
Diff to previous 1.74 (colored) to selected 1.69.2.23 (colored)

Abolish the magic 7, and count iovectors explicitly.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Dec 9 00:56:47 2004 UTC (19 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.73: +16 -4 lines
Diff to previous 1.73 (colored) to selected 1.69.2.23 (colored)

Make syslogd automatically recover from full disks by noticing that the
write error was ENOSPC and either wait for a successfull write or a
different errno.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Nov 23 14:19:57 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.72: +3 -3 lines
Diff to previous 1.72 (colored) to selected 1.69.2.23 (colored)

Fix typo that caused priories to compare incorrectly.  PR bin/28376 and
bin/28380.  Fix from Geoff Wing.

Revision 1.72 / (download) - annotate - [select for diffs], Fri Nov 19 18:48:18 2004 UTC (19 years, 4 months ago) by wiz
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.69.2.23 (colored)

-u changed to -U when porting from FreeBSD; update comment.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Nov 19 02:51:18 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.70: +9 -4 lines
Diff to previous 1.70 (colored) to selected 1.69.2.23 (colored)

We have to read the config file the first time after we allocate the
kqueue descriptor, because we set up events after we parse the file.

Unfortuntately, this means that we also have to do the chroot before
we read the config file.  But this is OK -- the config file has to be
in the chroot environment anyway, because it has to be able to get to
it after SIGHUP.

Grrr, all because stupid kqueue descriptors are not inherited across
a fork.  LAME.

Revision 1.70 / (download) - annotate - [select for diffs], Fri Nov 19 02:18:11 2004 UTC (19 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +978 -273 lines
Diff to previous 1.69 (colored) to selected 1.69.2.23 (colored)

Merge the thorpej-syslogd-hack-branch down to the trunk.  Enhancements
include:

- Extend the syntax of syslog.conf to allow selections of log destinations
  by comma-separated lists of program name (including kernel-generated
  messages) and originating host name.
- Ability to pipe selected messages through arbitrary filter commands.
- Ability to specify priority comparison operations.
- Improvements to domain name handling.
- Conversion to use kqueue for communication and signal events, eliminating
  all unsafe signal handlers.
- Allow spaces as well as tabs in syslog.conf.
- Log kernel printfs at LOG_NOTICE instad of LOG_CRIT.
- Ability to log facility/priority with a log message.
- Reliability improvements.

Revision 1.69.2.39 / (download) - annotate - [select for diffs], Thu Nov 18 23:10:29 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.38: +13 -13 lines
Diff to previous 1.69.2.38 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.69.2.23 (colored)

Setup kevents for finet[] in socksetup().  We close the finet[] descriptors
in init(), which causes the registered events to disappear, which caused
forwards receiving to stop working after a SIGHUP.

Note: This was also broken for the old code that used poll(2), since the
readfds[] array was never updated to account for new finet[] descriptors.

Revision 1.69.2.38 / (download) - annotate - [select for diffs], Thu Nov 18 23:01:31 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.37: +22 -13 lines
Diff to previous 1.69.2.37 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Try to be more careful about using using the file descriptor f_file.
Syslogd should ensure that f_file is a valid file descriptor when
f_type is FILE, CONSOLE, TTY and for a PIPE where f_pid > 0. If the
descriptor is closed/invalid then the type should be set to UNUSED
or the pid should be set to 0.

To this end:
1) Don't close PIPE file descriptors if they are invalid.
2) If the call to p_open fails, don't set the pid.

From FeeBSD.

Revision 1.69.2.37 / (download) - annotate - [select for diffs], Thu Nov 18 21:23:17 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.36: +16 -9 lines
Diff to previous 1.69.2.36 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Make the -U option treat "*" as "all levels" by explcitiy setting
comparison flags for it internally.  Also extend the syntax to allow
"!level" or "!=level", similar to Linux's syslogd.

From FreeBSD.

Revision 1.69.2.36 / (download) - annotate - [select for diffs], Thu Nov 18 21:07:28 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.35: +4 -4 lines
Diff to previous 1.69.2.35 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Adjust iovecs in the FORW case for previous change.

Revision 1.69.2.35 / (download) - annotate - [select for diffs], Thu Nov 18 20:51:40 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.34: +104 -13 lines
Diff to previous 1.69.2.34 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Add the ability to specify how the priority should be compared in
syslog.conf, e.g.:

*.<notice
*.=err
*.>=debug

Add a -U option that changes the default comparison from ">=" to "=".

Add a -v option that causes the facility and priority to be logged with
the message.  One -v logs it numerically, a second -v logs it by name.

From FreeBSD, with the exception of changing the unique priority option
to -U (we already have a -u).

Revision 1.69.2.34 / (download) - annotate - [select for diffs], Thu Nov 18 16:11:04 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.33: +35 -4 lines
Diff to previous 1.69.2.33 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Fix a race condition between syslogd and logging sub-processes:

When sending a message to a pipe, if the command exits after e.g. a single
line of input, we might try to send it another message line before we get
the SIGCHLD event and reap the sub-process, meaning that we'll have stale
state and get an EPIPE.

So, if we get an EPIPE, attempt to re-open the pipe and send the message
line again.

Revision 1.69.2.33 / (download) - annotate - [select for diffs], Thu Nov 18 15:55:34 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.32: +3 -3 lines
Diff to previous 1.69.2.32 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

"Got a message" -> "Got an event", since more than just messages are
being processed there.

Revision 1.69.2.32 / (download) - annotate - [select for diffs], Thu Nov 18 15:52:01 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.31: +9 -32 lines
Diff to previous 1.69.2.31 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Allow spaces as well as tabs between the selector and action fields.
Inspired by FreeBSD (which also allows spaces), and also fixes a problem
with warnings due to spaces in a pipe action field.

Revision 1.69.2.31 / (download) - annotate - [select for diffs], Thu Nov 18 15:36:30 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.30: +4 -3 lines
Diff to previous 1.69.2.30 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

cfline(): Use strlcpy() when copying the command name.

Revision 1.69.2.30 / (download) - annotate - [select for diffs], Thu Nov 18 15:33:28 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.29: +5 -5 lines
Diff to previous 1.69.2.29 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

A couple of minor style nits.

Revision 1.69.2.29 / (download) - annotate - [select for diffs], Thu Nov 18 15:30:55 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.28: +3 -2 lines
Diff to previous 1.69.2.28 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

cfline(): In the "log facility or log target missing", don't continue
to try and parse the line.

Revision 1.69.2.28 / (download) - annotate - [select for diffs], Thu Nov 18 06:21:46 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.27: +71 -64 lines
Diff to previous 1.69.2.27 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Shuffle main() a little to compensate for the fact that kqueue()
descriptors are not inherited across a fork.

Revision 1.69.2.27 / (download) - annotate - [select for diffs], Thu Nov 18 05:02:49 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.26: +27 -33 lines
Diff to previous 1.69.2.26 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Convert the rest of the signal handlers to kevents.  No more unsafe
signal handlers!

Revision 1.69.2.26 / (download) - annotate - [select for diffs], Thu Nov 18 01:45:42 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.25: +56 -67 lines
Diff to previous 1.69.2.25 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Use kevents for SIGTERM, SIGINT, SIGQUIT, and SIGHUP.

Revision 1.69.2.25 / (download) - annotate - [select for diffs], Thu Nov 18 01:13:25 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.24: +184 -102 lines
Diff to previous 1.69.2.24 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Convert syslogd from using poll(2) to kqueue(2)/kevent(2) -- Just the
communication channels for now.

Revision 1.69.2.24 / (download) - annotate - [select for diffs], Wed Nov 17 15:35:42 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.23: +3 -3 lines
Diff to previous 1.69.2.23 (colored) to branchpoint 1.69 (colored)

Change the default priority for kernel messages to LOG_NOTICE.

Revision 1.69.2.23 / (download) - annotate - [selected], Wed Nov 17 07:11:10 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.22: +27 -11 lines
Diff to previous 1.69.2.22 (colored) to branchpoint 1.69 (colored)

Record hostame change if we detect such after receiving SIGHUP.
Slightly modified from FreeBSD.

Revision 1.69.2.22 / (download) - annotate - [select for diffs], Wed Nov 17 06:45:12 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.21: +10 -10 lines
Diff to previous 1.69.2.21 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Remove from unnecessary work from printsys().  From FreeBSD.

Revision 1.69.2.21 / (download) - annotate - [select for diffs], Wed Nov 17 06:24:03 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.20: +16 -10 lines
Diff to previous 1.69.2.20 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Allow !prog specifications to apply to kernel messages.  For example,
if you wanted to match messages of the form:

raid0: disk exploded into tiny pieces

you could use:

!raid0
kern.err			/var/log/raid0-errors

From FreeBSD.

Revision 1.69.2.20 / (download) - annotate - [select for diffs], Wed Nov 17 03:23:09 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.19: +14 -4 lines
Diff to previous 1.69.2.19 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

If a log file name is prefixed with a - (e.g. "-/var/log/somefile"),
don't sync it after writing kernel log messages to it.  Syntax compatible
with Linux syslogd.

From FreeBSD.

Revision 1.69.2.19 / (download) - annotate - [select for diffs], Wed Nov 17 03:08:14 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.18: +8 -4 lines
Diff to previous 1.69.2.18 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Fix an error in printline(): LOG_FAC() generates an index into the
facilities name array, and is not suitable for comparing to an
actual facility value; mask with LOG_FACMASK instead.  Also make a
note that since LOG_KERN is 0, the check for this will also match
log messages that have no specified facility.

From FreeBSD.

Revision 1.69.2.18 / (download) - annotate - [select for diffs], Wed Nov 17 03:02:14 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.17: +9 -7 lines
Diff to previous 1.69.2.17 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Use strtol() to parse the priority/facility in printline(), too.
From FreeBSD.

Revision 1.69.2.17 / (download) - annotate - [select for diffs], Wed Nov 17 02:57:45 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.16: +13 -9 lines
Diff to previous 1.69.2.16 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Make the parsing of kernel syslog messages more careful so that they
match only "<%d>message goes here".  Avoids problems with kernel printfs
that begin with "<" but are not actually kernel syslog messages.

From FreeBSD.

Revision 1.69.2.16 / (download) - annotate - [select for diffs], Wed Nov 17 02:18:58 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.15: +9 -3 lines
Diff to previous 1.69.2.15 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

If an error occurs while trying to log an error that has already occurred,
avoid recursion.

Revision 1.69.2.15 / (download) - annotate - [select for diffs], Wed Nov 17 02:15:50 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.14: +3 -2 lines
Diff to previous 1.69.2.14 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Make sure f_lasttime gets updated on the consfile, too.
From FreeBSD.

Revision 1.69.2.14 / (download) - annotate - [select for diffs], Wed Nov 17 02:11:28 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.13: +25 -6 lines
Diff to previous 1.69.2.13 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Improve the handling of the local domain name in hostname matching.
Inspired by a similar change in FreeBSD, but implemented slightly
differently.

Revision 1.69.2.13 / (download) - annotate - [select for diffs], Wed Nov 17 01:29:48 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.12: +3 -3 lines
Diff to previous 1.69.2.12 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Oops, need to allow commas in the hostname specifications for last change.

Revision 1.69.2.12 / (download) - annotate - [select for diffs], Wed Nov 17 01:27:26 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.11: +37 -8 lines
Diff to previous 1.69.2.11 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Extend the program and hostname specification syntax to allow comma-separated
lists of programs and hostnames.

Inspired by a similar change in FreeBSD, but implemented differently.

Revision 1.69.2.11 / (download) - annotate - [select for diffs], Tue Nov 16 22:20:56 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.10: +18 -4 lines
Diff to previous 1.69.2.10 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Extend the !prog syntax to allow !+prog and !-prog, similar to the +hostname
and -hostname functionality.

From FreeBSD.

Revision 1.69.2.10 / (download) - annotate - [select for diffs], Tue Nov 16 22:08:59 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.9: +4 -3 lines
Diff to previous 1.69.2.9 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

When parsing the program name from the incoming log message,
accept all printable characters except ':' and '[' as being
part of the program name.

From FreeBSD.

Revision 1.69.2.9 / (download) - annotate - [select for diffs], Mon Nov 15 17:34:18 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.8: +7 -7 lines
Diff to previous 1.69.2.8 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Use case-insensitive comparisons for host names and domain names.

Revision 1.69.2.8 / (download) - annotate - [select for diffs], Mon Nov 15 17:26:03 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.7: +7 -7 lines
Diff to previous 1.69.2.7 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

MAXHOSTNAMELEN includes the NUL.  From FreeBSD.

Revision 1.69.2.7 / (download) - annotate - [select for diffs], Mon Nov 15 17:16:10 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.6: +53 -9 lines
Diff to previous 1.69.2.6 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Extend the syslog.conf syntax to allow selecting messages based on
the originating host.  "+hostname" selects messages from the specified
host, and "-hostname" selects messages from hosts other than the specified
host.

From FreeBSD.

Revision 1.69.2.6 / (download) - annotate - [select for diffs], Mon Nov 15 06:32:38 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.5: +4 -4 lines
Diff to previous 1.69.2.5 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Yet another fix from FreeBSD for the pipe-to-filter code: Set SA_RESTART on
SIGHUP and SIGCHLD.

Revision 1.69.2.5 / (download) - annotate - [select for diffs], Mon Nov 15 06:30:25 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.4: +100 -49 lines
Diff to previous 1.69.2.4 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Update to the pipe-to-filter code from FreeBSD: Fix a race condition
between the SIGHUP handler and the SIGCHLD handler that could lead to
random processes on the system being killed by mistake.

Revision 1.69.2.4 / (download) - annotate - [select for diffs], Mon Nov 15 06:06:47 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.3: +3 -3 lines
Diff to previous 1.69.2.3 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Accept !* as a wild-card program name as documented.

Revision 1.69.2.3 / (download) - annotate - [select for diffs], Mon Nov 15 00:21:41 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.2: +10 -6 lines
Diff to previous 1.69.2.2 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Suppress logging of SIGCHLDs while shutting down a little differently.

Revision 1.69.2.2 / (download) - annotate - [select for diffs], Mon Nov 15 00:17:00 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69.2.1: +255 -7 lines
Diff to previous 1.69.2.1 (colored) to branchpoint 1.69 (colored) to selected 1.69.2.23 (colored)

Add the ability to pipe selected messages through an arbitrary filtering
command.

From FreeBSD, who in turn took the idea from IRIX.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Sun Nov 14 23:04:18 2004 UTC (19 years, 4 months ago) by thorpej
Branch: thorpej-syslogd-hack-branch
Changes since 1.69: +67 -10 lines
Diff to previous 1.69 (colored) to selected 1.69.2.23 (colored)

Extend the syntax of syslog.conf to allow selections of log destinations
by program name.

From FreeBSD.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 30 15:53:25 2004 UTC (19 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: thorpej-syslogd-hack-base
Branch point for: thorpej-syslogd-hack-branch
Changes since 1.68: +9 -9 lines
Diff to previous 1.68 (colored) to selected 1.69.2.23 (colored)

Add (unsigned char) cast to ctype functions

Revision 1.68 / (download) - annotate - [select for diffs], Thu Oct 28 20:04:24 2004 UTC (19 years, 5 months ago) by heas
Branch: MAIN
Changes since 1.67: +5 -3 lines
Diff to previous 1.67 (colored) to selected 1.69.2.23 (colored)

Postpone initial setting of the alarm timer until after the call to daemon(),
as the timer would be cleared by daemon's fork().

Revision 1.67 / (download) - annotate - [select for diffs], Sun Oct 10 09:43:02 2004 UTC (19 years, 5 months ago) by wiz
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.69.2.23 (colored)

Add -S to usage.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Oct 8 17:25:52 2004 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +10 -4 lines
Diff to previous 1.65 (colored) to selected 1.69.2.23 (colored)

Don't fsync() kernel messages by default -- enable it with the "-S" flag.
This avoids some seriously gratuitous disk hosage in various cases.

XXX It would probably be better to allow this to be specified in the config
file somehow.

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Mon Jun 7 08:57:41 2004 UTC (19 years, 9 months ago) by tron
Branch: netbsd-1-6
Changes since 1.51.2.1: +19 -7 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored) to selected 1.69.2.23 (colored)

Pull up revisions 1.64-1.65 via patch (requested by he in ticket #1707):
Avoid crashes in syslogd(8) which could happen if it reloaded the
configuration at the wrong moment. Fixes PR bin/24682.

Revision 1.65 / (download) - annotate - [select for diffs], Sat Mar 6 20:29:25 2004 UTC (20 years ago) by itojun
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (colored) to selected 1.69.2.23 (colored)

use "volatile sig_atomic_t" for gothup; Havard Eidnes

Revision 1.64 / (download) - annotate - [select for diffs], Sat Mar 6 14:41:59 2004 UTC (20 years ago) by itojun
Branch: MAIN
Changes since 1.63: +19 -6 lines
Diff to previous 1.63 (colored) to selected 1.69.2.23 (colored)

make SIGHUP handler very small, and call init() from the main poll() loop.
should fix PR bin/24682.

Revision 1.63 / (download) - annotate - [select for diffs], Fri Oct 17 01:39:25 2003 UTC (20 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.62: +10 -5 lines
Diff to previous 1.62 (colored) to selected 1.69.2.23 (colored)

Implement -r, which prevents syslogd from compressing multiple messages with
the same string into "last message repeated N times", and instead forces
syslogd to write out every message.

Based on '-c' in FreeBSD's syslogd, although a different option letter was
chosen because their syslogd requires '-c -c' to get this functionality,
and we don't have the support for logging to pipes which is what FreeBSD's
syslogd with a single '-c' is related to.

Revision 1.62 / (download) - annotate - [select for diffs], Thu Oct 16 06:22:09 2003 UTC (20 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.61: +10 -6 lines
Diff to previous 1.61 (colored) to selected 1.69.2.23 (colored)

safer use of realloc

Revision 1.61 / (download) - annotate - [select for diffs], Fri Sep 19 08:24:48 2003 UTC (20 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.60: +2 -3 lines
Diff to previous 1.60 (colored) to selected 1.69.2.23 (colored)

no need for explicit '?'; openbsd

Revision 1.60 / (download) - annotate - [select for diffs], Thu Aug 7 11:25:44 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.59: +3 -7 lines
Diff to previous 1.59 (colored) to selected 1.69.2.23 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22366, verified by myself.

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 14 23:58:23 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.69.2.23 (colored)

whitespace fix

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 14 23:53:09 2003 UTC (20 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.57: +11 -8 lines
Diff to previous 1.57 (colored) to selected 1.69.2.23 (colored)

strlcpy audit

Revision 1.57 / (download) - annotate - [select for diffs], Sat Nov 16 03:59:36 2002 UTC (21 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.56: +23 -7 lines
Diff to previous 1.56 (colored) to selected 1.69.2.23 (colored)

die if out-of-range uid/gid is specified.

Revision 1.56 / (download) - annotate - [select for diffs], Tue Sep 24 13:53:54 2002 UTC (21 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.55: +13 -4 lines
Diff to previous 1.55 (colored) to selected 1.69.2.23 (colored)

set IPV6_V6ONLY to 1 to avoid complicated access control issue
(libwrap takes care of it, but just to be sure)

Revision 1.55 / (download) - annotate - [select for diffs], Fri Aug 2 02:23:49 2002 UTC (21 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.54: +16 -21 lines
Diff to previous 1.54 (colored) to selected 1.69.2.23 (colored)

add utmpx support;

Revision 1.54 / (download) - annotate - [select for diffs], Sun Jun 9 19:59:55 2002 UTC (21 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.53: +2 -6 lines
Diff to previous 1.53 (colored) to selected 1.69.2.23 (colored)

no need for KAME_SCOPEID any longer

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Sat May 25 17:44:49 2002 UTC (21 years, 10 months ago) by perry
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.69.2.23 (colored)

resolve 1.6 pullup ticket #23 from wiz
pulls up revision 1.52
Original commit message:

> Sync usage() with man page.

Revision 1.53 / (download) - annotate - [select for diffs], Sat May 25 14:46:01 2002 UTC (21 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.52: +77 -115 lines
Diff to previous 1.52 (colored) to selected 1.69.2.23 (colored)

ANSIfy, and some KNF. Sort options in getopt-switch. Drop some unneeded
include files.

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 25 14:21:02 2002 UTC (21 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.69.2.23 (colored)

Sort options in man page, don't mention non-existing '-S' option,
use some more markup and improve existing one.
Sync usage() with man page.

Revision 1.51 / (download) - annotate - [select for diffs], Thu May 2 13:53:10 2002 UTC (21 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.50: +2 -3 lines
Diff to previous 1.50 (colored) to selected 1.69.2.23 (colored)

remove commented out debug printf() accidentally committed in the last rev.
noted by YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp> in private email.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jan 18 10:27:50 2002 UTC (22 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.49: +8 -5 lines
Diff to previous 1.49 (colored) to selected 1.69.2.23 (colored)

logpath_add(): store pointer to strdup(3)ed copy of path provided.
fixes -P /some/file.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Nov 6 05:39:27 2001 UTC (22 years, 4 months ago) by kim
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.69.2.23 (colored)

None of the other calls to logerror() include a newline at the end of the
message, and it causes an unnecessary empty line in the syslog output.

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jul 19 00:15:32 2001 UTC (22 years, 8 months ago) by taca
Branch: MAIN
Changes since 1.47: +5 -6 lines
Diff to previous 1.47 (colored) to selected 1.69.2.23 (colored)

Put pidfile after daemonize.  This would fix newsyslog(8) error.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Jul 16 05:04:47 2001 UTC (22 years, 8 months ago) by manu
Branch: MAIN
Changes since 1.46: +220 -78 lines
Diff to previous 1.46 (colored) to selected 1.69.2.23 (colored)

- No more lost error messages during syslogd startup, they now all appear on
stdout before syslogd becomes a daemon.
- Flags for setuid/setgid/chroot syslogd after initialization is completed
- Warning instead of silent ignoring for malformed lines (with spaces instead
of tags)
Approved by Christos

Revision 1.46 / (download) - annotate - [select for diffs], Sun Jul 1 16:23:42 2001 UTC (22 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.45: +33 -6 lines
Diff to previous 1.45 (colored) to selected 1.69.2.23 (colored)

-DLIBWRAP will enable libwrap-based filtering on UDP socket messages.
PR 13348

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 8 04:16:28 2001 UTC (22 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.44: +10 -3 lines
Diff to previous 1.44 (colored) to selected 1.69.2.23 (colored)

new `-n' switch to avoid looking up hostnames.

Revision 1.34.4.4 / (download) - annotate - [select for diffs], Thu Mar 22 02:48:58 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.34.4.3: +6 -2 lines
Diff to previous 1.34.4.3 (colored) to branchpoint 1.34 (colored) next main 1.35 (colored) to selected 1.69.2.23 (colored)

Pull up revision 1.44 (requested by itojun):
  Plug memory leak.  Fixes PR#12444.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Mar 21 17:02:43 2001 UTC (23 years ago) by itojun
Branch: MAIN
Changes since 1.43: +6 -2 lines
Diff to previous 1.43 (colored) to selected 1.69.2.23 (colored)

plug memory leak.  PR 12444.

Revision 1.43 / (download) - annotate - [select for diffs], Mon Feb 19 23:22:48 2001 UTC (23 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.42: +3 -4 lines
Diff to previous 1.42 (colored) to selected 1.69.2.23 (colored)

convert to use getprogname()

Revision 1.42 / (download) - annotate - [select for diffs], Mon Sep 18 13:04:53 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.41: +6 -4 lines
Diff to previous 1.41 (colored) to selected 1.69.2.23 (colored)

Don't prematurely terminate log message on a 0x80 character

Revision 1.41 / (download) - annotate - [select for diffs], Wed Sep 13 21:20:21 2000 UTC (23 years, 6 months ago) by tron
Branch: MAIN
Changes since 1.40: +5 -2 lines
Diff to previous 1.40 (colored) to selected 1.69.2.23 (colored)

Use setlocale(3) to activate support for international characters.
This should fix PR bin/11007 by Bill Sommerfeld.

Revision 1.34.4.3 / (download) - annotate - [select for diffs], Wed Sep 13 15:57:02 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.34.4.2: +3 -3 lines
Diff to previous 1.34.4.2 (colored) to branchpoint 1.34 (colored) to selected 1.69.2.23 (colored)

Pull up 1.40: range check in printline() correctly.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Sep 13 15:46:32 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.69.2.23 (colored)

prevent one byte overrun in printline()

Revision 1.34.4.2 / (download) - annotate - [select for diffs], Sun Jul 2 02:18:10 2000 UTC (23 years, 9 months ago) by jwise
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.34.4.1: +8 -2 lines
Diff to previous 1.34.4.1 (colored) to branchpoint 1.34 (colored) to selected 1.69.2.23 (colored)

Pull up syslogd.c 1.38 -> 1.39:

Make sure to shut and keep shut all sockets when in -s mode we receive
a HUP and the last forwarding rule has been removed from /etc/syslogd.conf

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 2 02:15:34 2000 UTC (23 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.38: +8 -2 lines
Diff to previous 1.38 (colored) to selected 1.69.2.23 (colored)

Fix minor thinko in previous.  Make sure we close and keep closed all
sockets in the situation where all of the following are true:

	* /etc/syslogd.conf contained forwarding actions when we were
	  started up or when we last received a HUP

	* /etc/syslogd.conf has had all forwarding actions removed

	* we are running with -s

and we receive a HUP.

Revision 1.34.4.1 / (download) - annotate - [select for diffs], Fri Jun 30 22:35:30 2000 UTC (23 years, 9 months ago) by jwise
Branch: netbsd-1-5
Changes since 1.34: +40 -23 lines
Diff to previous 1.34 (colored) to selected 1.69.2.23 (colored)

Pullup revs syslogd.8 1.15->1.18 and syslogd.c 1.34->1.38:

Make -s work as advertised.  (Not only not listen on udp/514, but don't
bind the socket, and don't create the socket if it is not needed for
forwarding actions).

Pullup approved by Jason Thorpe (thorpej@netbsd.org)

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jun 30 18:45:04 2000 UTC (23 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.37: +30 -16 lines
Diff to previous 1.37 (colored) to selected 1.69.2.23 (colored)

Fix opening/closing of sockets when receiving a HUP, and /etc/syslog.conf
has been changed from having forwarding actions to having none, or vice versa.

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jun 30 18:22:54 2000 UTC (23 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.69.2.23 (colored)

Improve behavior of `syslogd -s'.

Even if we are forwarding, don't bind to udp/514 if running with `-s'.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Jun 30 18:03:50 2000 UTC (23 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.35: +8 -12 lines
Diff to previous 1.35 (colored) to selected 1.69.2.23 (colored)

Back out and redo previous at Bill Sommerfeld's <sommerfeld@netbsd.org>
request:

	instead of the -S flag, fix the -s flag to not open a socket
	if there are no forwarding rules in /etc/syslog.conf

The behavior of syslogd when -s is specified and there are forwarding rules
should still be made cleaner.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 30 17:32:43 2000 UTC (23 years, 9 months ago) by jwise
Branch: MAIN
Changes since 1.34: +13 -6 lines
Diff to previous 1.34 (colored) to selected 1.69.2.23 (colored)

1.) bring usage text up to date, and clarify description of `-s' option
    in man page and comments -- for some time it has no longer prevents
    an inet socket from being opened, just caused it to be ignored

2.) Fix this problem with `-s' -- syslogd always opens an inet socket, even if
    -s is specified and it has nowhere to send to.  This socket is then
    shutdown(), but there is no way to not have this socket open.

    Users setting up paranoid installations can now specify `-S' which
    prevents any non-unix-domain sockets from being opened, even if
    forwarding is specified in /etc/syslogd.conf.

    As per the previous fix, this is not made the default for `-s', as it
    also prevents syslogd from forwarding log messages.

3.) document the above in the man page and usage.

Justification:  in light of the possibility of future DoS attacks, or the
desire to set up a machine which is relatively uninformative in the face
of port scans, users may quite legitimately want to control what sockets
are open on their machine.  Telling such users that they cannot run
syslogd is non-ideal.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Feb 18 09:44:46 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.33: +47 -28 lines
Diff to previous 1.33 (colored) to selected 1.69.2.23 (colored)

* in secure mode (-s), still open the inet sockets but do a shutdown(,SHUT_RD)
  on each of them, and don't bother listening on them. this allows messages
  to be forwarded even with -s enabled.

  XXX: not 100% sure if this is susceptable to a DoS, e.g someone filling
  up kernel buffers with a backlog of packets not being read, but shutdown(2)
  should prevent that even if it possibly doesn't at this time.

* minor KNF

Revision 1.28.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:38:11 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.28: +149 -82 lines
Diff to previous 1.28 (colored) next main 1.29 (colored) to selected 1.69.2.23 (colored)

Pull up to last week's -current.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Dec 13 04:25:08 1999 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.69.2.23 (colored)

use sizeof(foo) instead of hardcoded value, to help synchronizing
variable def and function parameter.

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 7 11:30:28 1999 UTC (24 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.31: +3 -1 lines
Diff to previous 1.31 (colored) to selected 1.69.2.23 (colored)

RCSID police.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Dec 6 01:26:26 1999 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.30: +79 -82 lines
Diff to previous 1.30 (colored) to selected 1.69.2.23 (colored)

be more friendly with non-IPv6 kernel.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 2 16:17:30 1999 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.29: +129 -63 lines
Diff to previous 1.29 (colored) to selected 1.69.2.23 (colored)

IPv6 support in syslogd.  actually we need library update as well.
NetBSD PR #8934 from Feico Dillema <dillema@acm.org> (with memory leak fix).

Revision 1.29 / (download) - annotate - [select for diffs], Sat Nov 27 14:51:49 1999 UTC (24 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored) to selected 1.69.2.23 (colored)

add some debug messages.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 7 15:34:07 1999 UTC (24 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.27: +9 -1 lines
Diff to previous 1.27 (colored) to selected 1.69.2.23 (colored)

save/restore errno as necessary (printf() et al might have modified it...)

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jun 6 01:55:58 1999 UTC (24 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +3 -10 lines
Diff to previous 1.26 (colored) to selected 1.69.2.23 (colored)

Use pidfile(3).

Revision 1.26 / (download) - annotate - [select for diffs], Sun Feb 28 11:46:26 1999 UTC (25 years, 1 month ago) by tron
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.25: +10 -13 lines
Diff to previous 1.25 (colored) to selected 1.69.2.23 (colored)

Because the old bound check is used at several places we need to make
sure that the array is really NULL terminated. Fixes PR bin/7062.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Feb 28 11:30:18 1999 UTC (25 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored) to selected 1.69.2.23 (colored)

Correct precedence in calculation of storage for pollfds.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Feb 28 11:16:18 1999 UTC (25 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.23: +5 -9 lines
Diff to previous 1.23 (colored) to selected 1.69.2.23 (colored)

- Don't use static array hack if neither "-p" nor "-P" are used.
- Because the logsocket array is not NULL terminated use the entry number
  for bound checks.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Feb 28 11:03:35 1999 UTC (25 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.22: +5 -5 lines
Diff to previous 1.22 (colored) to selected 1.69.2.23 (colored)

Use correct expression "sizeof(char *)" instead of "sizeof(char **)"
to calculate memory size.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Feb 21 13:30:15 1999 UTC (25 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.21: +161 -41 lines
Diff to previous 1.21 (colored) to selected 1.69.2.23 (colored)

- allow -p /log/socket to appear more than once (and work as expected
  if given this).  this is extremely useful for chrooted daemons that
  still want to create log entries via a local mechanism.

- create a new -P option that takes a filename of log sockets (equiv.
  of calling syslogd which -p <each line of file>.  this is useful
  for the case of many chroot areas and keeping this information in
  one place rather than having to remember it all.

if no -p options are given, the default (_PATH_LOG) is used as normal.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jul 30 23:29:29 1998 UTC (25 years, 8 months ago) by tron
Branch: MAIN
Changes since 1.20: +12 -3 lines
Diff to previous 1.20 (colored) to selected 1.69.2.23 (colored)

Use "[host]: " as prefix for forwarded messages to distinguish them
from message originated by the forwarding host, fixes PR bin/5860 by
Greg A. Woods.

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 18 05:04:40 1998 UTC (25 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored) to selected 1.69.2.23 (colored)

use AF_LOCAL instead of AF_UNIX

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 6 06:58:44 1998 UTC (25 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored) to selected 1.69.2.23 (colored)

- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames

Revision 1.18 / (download) - annotate - [select for diffs], Fri May 8 19:03:41 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored) to selected 1.69.2.23 (colored)

Fix arithmetics lossage on typeless pointers.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Oct 24 01:41:47 1997 UTC (26 years, 5 months ago) by mrg
Branch: MAIN
Changes since 1.16: +9 -9 lines
Diff to previous 1.16 (colored) to selected 1.69.2.23 (colored)

prefer snprintf() to sprintf()

Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 17 13:49:37 1997 UTC (26 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.69.2.23 (colored)

getopt returns -1 not EOF

Revision 1.15 / (download) - annotate - [select for diffs], Fri Sep 19 19:24:24 1997 UTC (26 years, 6 months ago) by leo
Branch: MAIN
Changes since 1.14: +34 -4 lines
Diff to previous 1.14 (colored) to selected 1.69.2.23 (colored)

Commit userland part of pr-1891.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Sep 15 03:25:42 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.13: +1 -3 lines
Diff to previous 1.13 (colored) to selected 1.69.2.23 (colored)

If f->f_type is F_FORW, don't close f->file.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 13 07:53:10 1997 UTC (26 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.69.2.23 (colored)

Store constant `F_UNUSED' into the right place f->f_type
rather than f->f_file.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Jul 18 22:48:31 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.69.2.23 (colored)

Cast time_t's to long, and use %ld format, when printing.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 29 18:57:45 1997 UTC (26 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.10: +10 -6 lines
Diff to previous 1.10 (colored) to selected 1.69.2.23 (colored)

- Fix warnings
- Use ttymsg from libutil.

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 17 20:31:15 1997 UTC (26 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored) to selected 1.69.2.23 (colored)

NULL => 0 (Arne Juul; PR#3629)

Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 26 05:12:32 1997 UTC (26 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.69.2.23 (colored)

add 0 and 0x prefixes for octal and hex numbers, in debug messages (based on pr#2964).

Revision 1.8 / (download) - annotate - [select for diffs], Sat Apr 26 05:08:29 1997 UTC (26 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.7: +8 -6 lines
Diff to previous 1.7 (colored) to selected 1.69.2.23 (colored)

do not write pid file in debug mode.  (pr#2825)

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 5 02:30:26 1996 UTC (28 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.6: +16 -6 lines
Diff to previous 1.6 (colored) to selected 1.69.2.23 (colored)

Added code to implement mode in which syslogd listens only to unix
domain socket (triggered by -s option) and documentation for
same. This closes pr 1761, although the code is slightly different.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 24 15:49:52 1996 UTC (28 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored) to selected 1.69.2.23 (colored)

cast return value of hstrerror() as this changes with the incoming bind
distribution to be const char *, and, causes a warning.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Jan 2 17:48:41 1996 UTC (28 years, 3 months ago) by perry
Branch: MAIN
Changes since 1.4: +177 -163 lines
Diff to previous 1.4 (colored) to selected 1.69.2.23 (colored)

Merge/Sync with 4.4lite2. This is the 4.4lite2 version with NetBSD bug
fixes thrown in (and an apparent pre-NetBSD fix to a hardcoded
"vmunix"). I also set the ttymsg timeout to one second (as per our
previous version), rather than the five minutes set in lite2, and made
the timeout set by a #define.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Thu Dec 28 16:58:25 1995 UTC (28 years, 3 months ago) by perry
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +175 -166 lines
Diff to previous 1.1.1.1 (colored) to selected 1.69.2.23 (colored)

imported from 44lite2

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 11 20:22:58 1995 UTC (28 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.3: +3 -5 lines
Diff to previous 1.3 (colored) to selected 1.69.2.23 (colored)

Use hstrerror(), not h_errlist[].

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 14 04:18:45 1995 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.69.2.23 (colored)

fix priority mangling when sending to remote syslogds.  (pr 1039, by
Jarle Greipsland.)  Fix not exactly the same as the one in the PR, but close.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 1 17:55:38 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored) to selected 1.69.2.23 (colored)

Add RCS identifiers.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.69.2.23 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.69.2.23 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>