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


Keyword substitution: kv
Default branch: MAIN


Revision 1.147: download - view: text, markup, annotated - select for diffs
Sat Nov 9 16:31:31 2024 UTC (4 months, 1 week ago) by jschauma
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +3 -3 lines
use the correct variable - thanks, autobuild!

Revision 1.146: download - view: text, markup, annotated - select for diffs
Sat Nov 9 15:56:35 2024 UTC (4 months, 1 week ago) by jschauma
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +30 -2 lines
If '-u' or '-g' is given, create the pidfile prior to changing e[ug]id

The subsequent call to pidfile(3) after we daemonize will correctly take
over the pidfile.

Note: this will likely leave the truncated pidfile in place upon exit,
since the effective user is unlikely to have write permissions on
_PATH_VARRUN.  This isn't a problem, since pidfile(3) does the right
thing at startup again, and the the pidfile being truncated will not
lead to erroneous diagnosis.

This fixes bin/27309, which I filed a little over 20 years ago.

Revision 1.145: download - view: text, markup, annotated - select for diffs
Fri Nov 8 02:23:54 2024 UTC (4 months, 1 week ago) by jschauma
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +5 -5 lines
Terminate full sentence comments with a period / capitalize correctly.
(No functional changes.)

Revision 1.144: download - view: text, markup, annotated - select for diffs
Wed Aug 21 17:13:24 2024 UTC (7 months ago) by gutteridge
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +10 -6 lines
syslogd.8 & syslogd.c: add -k option

Provide a means of disabling the translation of (remote) messages
received with facility kern to facility user. Feature equivalent to
what FreeBSD added years ago, though the code is slightly different
(a bit easier to follow expressively). Patches from RVP, provided in
PR lib/57172 (with very minor tweaks by me).

Revision 1.143: download - view: text, markup, annotated - select for diffs
Wed Aug 21 16:30:27 2024 UTC (7 months ago) by gutteridge
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
syslog.h & syslogd.c: avoid incorrect facility double-shifting

As discussed in PR lib/57172, don't double-shift facility values when
calculating logging contexts. Patch suggested by RVP, an approach also
consistent with what OpenBSD did, which is to simply remove LOG_MAKEPRI
and adjust the only place it's used in the tree. (This has the benefit
of exposing any third-party software that may have also been using the
incorrect value all this time.)

Revision 1.142: download - view: text, markup, annotated - select for diffs
Sat Aug 3 02:43:37 2024 UTC (7 months, 2 weeks ago) by gutteridge
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3 lines
syslogd.c: avoid use of undefined macro (NFCI)

SIGN_NUM_PRIVALS isn't defined anywhere; fix the block, though it's not
actually applicable in NetBSD builds. Issue noted by and patch from RVP
as a peripheral item in PR lib/57172.

Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Oct 11 23:22:13 2023 UTC (17 months, 1 week ago) by uwe
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +3 -3 lines
syslogd.c: fix a typo in a comment

Revision 1.140: download - view: text, markup, annotated - select for diffs
Tue Nov 8 01:43:09 2022 UTC (2 years, 4 months ago) by uwe
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, 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
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +86 -6 lines
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 - view: text, markup, annotated - select for diffs
Fri May 20 19:34:23 2022 UTC (2 years, 10 months ago) by andvar
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3 lines
s/auxillary/auxiliary/ in comments.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Sat Nov 27 22:30:26 2021 UTC (3 years, 3 months ago) by rillig
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 13 20:19:14 2021 UTC (3 years, 7 months ago) by andvar
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +3 -3 lines
s/bacause/because/

Revision 1.136: download - view: text, markup, annotated - select for diffs
Sun Nov 8 01:12:46 2020 UTC (4 years, 4 months ago) by dholland
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +3 -6 lines
syslogd: in die(), don't call die() again recursively.

Particularly not for something as immaterial as close failing.

PR 55795

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat Nov 7 17:46:56 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3 lines
make the buffer fit any 32 bit number.

Revision 1.134: download - view: text, markup, annotated - select for diffs
Sat Nov 7 16:16:33 2020 UTC (4 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +6 -6 lines
PR/55794: Jan Schaumann: Eliminate unchecked malloc

Revision 1.133: download - view: text, markup, annotated - select for diffs
Tue Sep 29 14:08:43 2020 UTC (4 years, 5 months ago) by gson
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +3 -3 lines
When reporting an error before daemonizing, prefix the error message
with the program name.

Revision 1.125.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:23 2020 UTC (4 years, 11 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.125.2.1: preferred, colored; branchpoint 1.125: preferred, colored; next MAIN 1.126: preferred, colored
Changes since revision 1.125.2.1: +3 -3 lines
Merge changes from current as of 20200406

Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Dec 26 04:53:12 2019 UTC (5 years, 2 months ago) by msaitoh
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +3 -3 lines
s/lenght/length/

Revision 1.125.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:10:43 2019 UTC (5 years, 9 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +31 -11 lines
Sync with HEAD

Revision 1.131: download - view: text, markup, annotated - select for diffs
Sun Feb 3 03:19:31 2019 UTC (6 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-4-RELEASE, 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
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -2 lines
- 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 - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:59 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.124.2.1: preferred, colored; branchpoint 1.124: preferred, colored; next MAIN 1.125: preferred, colored
Changes since revision 1.124.2.1: +30 -11 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.130: download - view: text, markup, annotated - select for diffs
Mon Nov 5 10:27:06 2018 UTC (6 years, 4 months ago) by martin
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +2 -21 lines
Revert previous - local merge mishap

Revision 1.129: download - view: text, markup, annotated - select for diffs
Mon Nov 5 09:22:30 2018 UTC (6 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -3 lines
Sort options.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Mon Nov 5 08:34:20 2018 UTC (6 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +21 -2 lines
Make it compilable with gcc

Revision 1.127: download - view: text, markup, annotated - select for diffs
Sun Nov 4 20:45:21 2018 UTC (6 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +19 -7 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 4 20:23:08 2018 UTC (6 years, 4 months ago) by roy
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +15 -8 lines
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 - view: text, markup, annotated - select for diffs
Mon May 21 04:36:20 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +24 -2 lines
Sync with HEAD

Revision 1.125: download - view: text, markup, annotated - select for diffs
Sun May 6 19:16:36 2018 UTC (6 years, 10 months ago) by christos
Branches: 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
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +24 -2 lines
grow AF_UNIX receive buffer size

Revision 1.119.4.3: download - view: text, markup, annotated - select for diffs
Mon Oct 23 18:52:08 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-7
CVS tags: netbsd-7-2-RELEASE
Diff to: previous 1.119.4.2: preferred, colored; branchpoint 1.119: preferred, colored; next MAIN 1.120: preferred, colored
Changes since revision 1.119.4.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Oct 13 07:57:51 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-6
Diff to: previous 1.105.4.2: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.4.2: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Sep 23 17:20:13 2017 UTC (7 years, 5 months ago) by snj
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, 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
Diff to: previous 1.123: preferred, colored; next MAIN 1.124: preferred, colored
Changes since revision 1.123: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 10 17:01:07 2017 UTC (7 years, 6 months ago) by ginsbach
Branches: 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
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Sep 4 06:30:38 2017 UTC (7 years, 6 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.119.4.1: preferred, colored; branchpoint 1.119: preferred, colored
Changes since revision 1.119.4.1: +9 -8 lines
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 - view: text, markup, annotated - select for diffs
Thu Aug 31 15:10:29 2017 UTC (7 years, 6 months ago) by martin
Branches: netbsd-6
Diff to: previous 1.105.4.1: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.4.1: +9 -8 lines
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 - view: text, markup, annotated - select for diffs
Sat Jun 11 16:55:10 2016 UTC (8 years, 9 months ago) by christos
Branches: 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
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +9 -8 lines
PR/51234: Onno van der Linden: syslogd sometimes incorrectly handles iso to
bsd time conversion

Revision 1.122: download - view: text, markup, annotated - select for diffs
Sat Sep 5 20:19:43 2015 UTC (9 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +7 -5 lines
tidy/fix printing of paths from sockaddr_un

Revision 1.119.4.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:19:19 2015 UTC (9 years, 10 months ago) by snj
Branches: 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
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +13 -12 lines
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 - view: text, markup, annotated - select for diffs
Tue Feb 10 20:38:15 2015 UTC (10 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +59 -39 lines
- 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 - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:18 2014 UTC (10 years, 7 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.112.2.2: preferred, colored; branchpoint 1.112: preferred, colored; next MAIN 1.113: preferred, colored
Changes since revision 1.112.2.2: +88 -14 lines
Rebase to HEAD as of a few days ago.

Revision 1.120: download - view: text, markup, annotated - select for diffs
Mon Aug 18 05:21:16 2014 UTC (10 years, 7 months ago) by jnemeth
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +13 -12 lines
- 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 - view: text, markup, annotated - select for diffs
Thu May 22 11:43:10 2014 UTC (10 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.105.2.4: preferred, colored; branchpoint 1.105: preferred, colored; next MAIN 1.106: preferred, colored
Changes since revision 1.105.2.4: +93 -16 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 27 20:48:28 2013 UTC (11 years, 3 months ago) by christos
Branches: 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
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +8 -6 lines
CID 1132759: Abort on dehumanize_number error on constant built-in string.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Nov 11 16:39:21 2013 UTC (11 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +10 -11 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 9 19:00:18 2013 UTC (11 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +79 -6 lines
add support for outputting to FIFO's (Anthony Mallet)

Revision 1.116: download - view: text, markup, annotated - select for diffs
Sat Nov 9 18:58:22 2013 UTC (11 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +8 -8 lines
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 - view: text, markup, annotated - select for diffs
Sun Jun 23 06:29:06 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.112.2.1: preferred, colored; branchpoint 1.112: preferred, colored
Changes since revision 1.112.2.1: +5 -2 lines
resync from head

Revision 1.105.4.1: download - view: text, markup, annotated - select for diffs
Thu Jun 13 07:11:11 2013 UTC (11 years, 9 months ago) by msaitoh
Branches: netbsd-6
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon May 27 23:15:51 2013 UTC (11 years, 9 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +5 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:49 2013 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +10 -2 lines
resync with head

Revision 1.105.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:45 2013 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.105.2.3: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.2.3: +10 -2 lines
sync with head

Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Jan 17 18:54:28 2013 UTC (12 years, 2 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base8, agc-symver-base, agc-symver
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +6 -4 lines
ut_line does not have /dev in front of it. Add it, from dholland@

Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue Jan 15 22:37:04 2013 UTC (12 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +8 -2 lines
PR/47449: David Holland: Don't log to terminals with mesg n, unless it is a
wall message.

Revision 1.105.2.3: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:53 2012 UTC (12 years, 4 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.105.2.2: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.2.2: +59 -11 lines
sync with head

Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Jun 20 01:39:34 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +4 -4 lines
remove dup O_NDELAY.

Revision 1.111: download - view: text, markup, annotated - select for diffs
Tue Jun 19 13:44:35 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +11 -8 lines
- fix writev1() to pre-decrement count.
- always open ttys with O_NDELAY.

Revision 1.110: download - view: text, markup, annotated - select for diffs
Mon Jun 18 19:17:42 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +12 -12 lines
don't call isatty() to the fd before opening it.

Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Jun 6 00:33:45 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +4 -4 lines
WARNS=4

Revision 1.108: download - view: text, markup, annotated - select for diffs
Tue Jun 5 19:33:17 2012 UTC (12 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +58 -13 lines
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 - view: text, markup, annotated - select for diffs
Wed May 23 10:08:30 2012 UTC (12 years, 10 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.105.2.1: preferred, colored; branchpoint 1.105: preferred, colored
Changes since revision 1.105.2.1: +17 -15 lines
sync with head.

Revision 1.107: download - view: text, markup, annotated - select for diffs
Tue May 15 01:22:50 2012 UTC (12 years, 10 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base5
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +17 -15 lines
improve error handling.

Revision 1.105.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:09:53 2012 UTC (12 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -4 lines
sync with head

Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Mar 28 17:39:33 2012 UTC (12 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base4
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +5 -4 lines
add aliases for the protocol format

Revision 1.105: download - view: text, markup, annotated - select for diffs
Wed Aug 31 16:25:00 2011 UTC (13 years, 6 months ago) by plunky
Branches: 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
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -3 lines
NULL does not need a cast

Revision 1.102.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 23 14:20:50 2011 UTC (13 years, 9 months ago) by cherry
Branches: cherry-xenmp
Diff to: previous 1.102: preferred, colored; next MAIN 1.103: preferred, colored
Changes since revision 1.102: +21 -9 lines
Catchup with rmind-uvmplock merge.

Revision 1.104: download - view: text, markup, annotated - select for diffs
Mon Jun 20 08:27:15 2011 UTC (13 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +18 -12 lines
Now need to use own buffer for klog read due to previous change.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Mon Jun 20 00:42:11 2011 UTC (13 years, 9 months ago) by enami
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +11 -5 lines
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 - view: text, markup, annotated - select for diffs
Tue May 24 13:26:04 2011 UTC (13 years, 10 months ago) by joerg
Branches: MAIN
CVS tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3 lines
Explicitly mark a NEWREF as unused

Revision 1.101: download - view: text, markup, annotated - select for diffs
Tue May 24 13:25:25 2011 UTC (13 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +16 -16 lines
Properly use format strings

Revision 1.100: download - view: text, markup, annotated - select for diffs
Wed Jun 9 21:55:42 2010 UTC (14 years, 9 months ago) by riz
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +11 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 6 21:09:46 2009 UTC (16 years, 1 month ago) by mschuett
Branches: MAIN
CVS tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +8 -7 lines
PR/40563: Takahiro Hayashi: syslogd(8) refers freed pointer on exiting

Revision 1.98: download - view: text, markup, annotated - select for diffs
Thu Jan 22 21:10:52 2009 UTC (16 years, 2 months ago) by mschuett
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +8 -3 lines
PR/40438: Takahiro Hayashi: syslogd(8) refers freed area

Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Jan 22 10:45:35 2009 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +4 -4 lines
sign-compare fixes for amd64

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sun Jan 18 10:35:26 2009 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +13 -12 lines
fix -Wsign-compare issues

Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Dec 29 03:45:23 2008 UTC (16 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +3 -3 lines
fix suseconds_t format.

Revision 1.94: download - view: text, markup, annotated - select for diffs
Thu Nov 27 20:37:21 2008 UTC (16 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +36 -19 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 7 15:42:01 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +13 -4 lines
PR/39874: Geoff C. Wing: For compatibility trim hostname domains in bsd
output format when matching host lines.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Fri Nov 7 07:36:38 2008 UTC (16 years, 4 months ago) by minskim
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +128 -128 lines
Remove trailing whitespace.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Tue Nov 4 18:52:25 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +6 -6 lines
use localtime_r

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Nov 4 10:01:56 2008 UTC (16 years, 4 months ago) by blymn
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +3 -2 lines
Call tzset() to init TZ information for localtime().

Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Nov 3 22:59:51 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +6 -2 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 3 02:44:01 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -5 lines
PR/39857: Bernd Ernesti: Fix broken output caused by a wrong offset. From
Martin Schuette.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Fri Oct 31 16:12:19 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +3058 -796 lines
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 - view: text, markup, annotated - select for diffs
Thu Sep 18 04:30:15 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.84: preferred, colored; next MAIN 1.85: preferred, colored
Changes since revision 1.84: +4 -9 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Jul 21 13:36:59 2008 UTC (16 years, 8 months ago) by lukem
Branches: 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
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -4 lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Jul 13 20:07:49 2008 UTC (16 years, 8 months ago) by dholland
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 13 20:24:00 2006 UTC (18 years, 4 months ago) by christos
Branches: 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
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +8 -3 lines
PR/34979: Scott Ellis: Detect 0 length name and skip it instead of infinite
loop.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Sat Oct 21 09:42:26 2006 UTC (18 years, 5 months ago) by yamt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +10 -4 lines
matches_spec: fix a bug so that "+host111,host1" actually matches to host1.
add a simple sanity check.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Sep 16 17:05:32 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +11 -5 lines
PR/30879: Jukka Salmi: syslogd(8) doesn't parse `@' hostname specification
correctly

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sat Sep 16 16:57:27 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +27 -5 lines
PR/28753: Martin J. Laubach: syslogd disables remote logging on non-fatal errors

Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Sep 16 06:34:55 2006 UTC (18 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +6 -5 lines
Sync usage with man page (-b).

Revision 1.79: download - view: text, markup, annotated - select for diffs
Fri Sep 15 20:32:59 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +11 -7 lines
PR/14563: Brian A. Seklecki: syslogd binds udp sockets on all interfaces
Add -b option to pass a bind address.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Apr 24 19:00:30 2006 UTC (18 years, 11 months ago) by snj
Branches: MAIN
CVS tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +3 -3 lines
It's "its."

Revision 1.77: download - view: text, markup, annotated - select for diffs
Wed Apr 19 21:18:50 2006 UTC (18 years, 11 months ago) by pavel
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +14 -9 lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 2 09:42:57 2005 UTC (19 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +3 -2 lines
appease gcc -Wuninitialized

Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 19 01:57:16 2005 UTC (20 years ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.2: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 30 13:29:26 2005 UTC (20 years, 1 month ago) by he
Branches: 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
Diff to: previous 1.65: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 9 00:07:27 2005 UTC (20 years, 2 months ago) by christos
Branches: 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
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +25 -20 lines
Abolish the magic 7, and count iovectors explicitly.

Revision 1.74: download - view: text, markup, annotated - select for diffs
Thu Dec 9 00:56:47 2004 UTC (20 years, 3 months ago) by matt
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +16 -4 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 23 14:19:57 2004 UTC (20 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -3 lines
Fix typo that caused priories to compare incorrectly.  PR bin/28376 and
bin/28380.  Fix from Geoff Wing.

Revision 1.72: download - view: text, markup, annotated - select for diffs
Fri Nov 19 18:48:18 2004 UTC (20 years, 4 months ago) by wiz
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +3 -3 lines
-u changed to -U when porting from FreeBSD; update comment.

Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Nov 19 02:51:18 2004 UTC (20 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +9 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 19 02:18:11 2004 UTC (20 years, 4 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +978 -273 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 23:10:29 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.38: preferred, colored; branchpoint 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69.2.38: +13 -13 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 23:01:31 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.37: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.37: +22 -13 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 21:23:17 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.36: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.36: +16 -9 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 21:07:28 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.35: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.35: +4 -4 lines
Adjust iovecs in the FORW case for previous change.

Revision 1.69.2.35: download - view: text, markup, annotated - select for diffs
Thu Nov 18 20:51:40 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.34: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.34: +104 -13 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 16:11:04 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.33: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.33: +35 -4 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 15:55:34 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.32: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.32: +3 -3 lines
"Got a message" -> "Got an event", since more than just messages are
being processed there.

Revision 1.69.2.32: download - view: text, markup, annotated - select for diffs
Thu Nov 18 15:52:01 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.31: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.31: +9 -32 lines
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 - view: text, markup, annotated - select for diffs
Thu Nov 18 15:36:30 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.30: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.30: +4 -3 lines
cfline(): Use strlcpy() when copying the command name.

Revision 1.69.2.30: download - view: text, markup, annotated - select for diffs
Thu Nov 18 15:33:28 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.29: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.29: +5 -5 lines
A couple of minor style nits.

Revision 1.69.2.29: download - view: text, markup, annotated - select for diffs
Thu Nov 18 15:30:55 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.28: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.28: +3 -2 lines
cfline(): In the "log facility or log target missing", don't continue
to try and parse the line.

Revision 1.69.2.28: download - view: text, markup, annotated - select for diffs
Thu Nov 18 06:21:46 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.27: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.27: +71 -64 lines
Shuffle main() a little to compensate for the fact that kqueue()
descriptors are not inherited across a fork.

Revision 1.69.2.27: download - view: text, markup, annotated - select for diffs
Thu Nov 18 05:02:49 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.26: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.26: +27 -33 lines
Convert the rest of the signal handlers to kevents.  No more unsafe
signal handlers!

Revision 1.69.2.26: download - view: text, markup, annotated - select for diffs
Thu Nov 18 01:45:42 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.25: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.25: +56 -67 lines
Use kevents for SIGTERM, SIGINT, SIGQUIT, and SIGHUP.

Revision 1.69.2.25: download - view: text, markup, annotated - select for diffs
Thu Nov 18 01:13:25 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.24: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.24: +184 -102 lines
Convert syslogd from using poll(2) to kqueue(2)/kevent(2) -- Just the
communication channels for now.

Revision 1.69.2.24: download - view: text, markup, annotated - select for diffs
Wed Nov 17 15:35:42 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.23: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.23: +3 -3 lines
Change the default priority for kernel messages to LOG_NOTICE.

Revision 1.69.2.23: download - view: text, markup, annotated - select for diffs
Wed Nov 17 07:11:10 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.22: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.22: +27 -11 lines
Record hostame change if we detect such after receiving SIGHUP.
Slightly modified from FreeBSD.

Revision 1.69.2.22: download - view: text, markup, annotated - select for diffs
Wed Nov 17 06:45:12 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.21: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.21: +10 -10 lines
Remove from unnecessary work from printsys().  From FreeBSD.

Revision 1.69.2.21: download - view: text, markup, annotated - select for diffs
Wed Nov 17 06:24:03 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.20: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.20: +16 -10 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 17 03:23:09 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.19: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.19: +14 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 17 03:08:14 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.18: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.18: +8 -4 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 17 03:02:14 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.17: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.17: +9 -7 lines
Use strtol() to parse the priority/facility in printline(), too.
From FreeBSD.

Revision 1.69.2.17: download - view: text, markup, annotated - select for diffs
Wed Nov 17 02:57:45 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.16: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.16: +13 -9 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 17 02:18:58 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.15: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.15: +9 -3 lines
If an error occurs while trying to log an error that has already occurred,
avoid recursion.

Revision 1.69.2.15: download - view: text, markup, annotated - select for diffs
Wed Nov 17 02:15:50 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.14: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.14: +3 -2 lines
Make sure f_lasttime gets updated on the consfile, too.
From FreeBSD.

Revision 1.69.2.14: download - view: text, markup, annotated - select for diffs
Wed Nov 17 02:11:28 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.13: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.13: +25 -6 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 17 01:29:48 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.12: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.12: +3 -3 lines
Oops, need to allow commas in the hostname specifications for last change.

Revision 1.69.2.12: download - view: text, markup, annotated - select for diffs
Wed Nov 17 01:27:26 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.11: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.11: +37 -8 lines
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 - view: text, markup, annotated - select for diffs
Tue Nov 16 22:20:56 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.10: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.10: +18 -4 lines
Extend the !prog syntax to allow !+prog and !-prog, similar to the +hostname
and -hostname functionality.

From FreeBSD.

Revision 1.69.2.10: download - view: text, markup, annotated - select for diffs
Tue Nov 16 22:08:59 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.9: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.9: +4 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 15 17:34:18 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.8: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.8: +7 -7 lines
Use case-insensitive comparisons for host names and domain names.

Revision 1.69.2.8: download - view: text, markup, annotated - select for diffs
Mon Nov 15 17:26:03 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.7: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.7: +7 -7 lines
MAXHOSTNAMELEN includes the NUL.  From FreeBSD.

Revision 1.69.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 15 17:16:10 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.6: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.6: +53 -9 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 15 06:32:38 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.5: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.5: +4 -4 lines
Yet another fix from FreeBSD for the pipe-to-filter code: Set SA_RESTART on
SIGHUP and SIGCHLD.

Revision 1.69.2.5: download - view: text, markup, annotated - select for diffs
Mon Nov 15 06:30:25 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.4: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.4: +100 -49 lines
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 - view: text, markup, annotated - select for diffs
Mon Nov 15 06:06:47 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.3: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.3: +3 -3 lines
Accept !* as a wild-card program name as documented.

Revision 1.69.2.3: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:21:41 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.2: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.2: +10 -6 lines
Suppress logging of SIGCHLDs while shutting down a little differently.

Revision 1.69.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 15 00:17:00 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69.2.1: preferred, colored; branchpoint 1.69: preferred, colored
Changes since revision 1.69.2.1: +255 -7 lines
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 - view: text, markup, annotated - select for diffs
Sun Nov 14 23:04:18 2004 UTC (20 years, 4 months ago) by thorpej
Branches: thorpej-syslogd-hack-branch
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +67 -10 lines
Extend the syntax of syslog.conf to allow selections of log destinations
by program name.

From FreeBSD.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Oct 30 15:53:25 2004 UTC (20 years, 4 months ago) by dsl
Branches: MAIN
CVS tags: thorpej-syslogd-hack-base
Branch point for: thorpej-syslogd-hack-branch
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +9 -9 lines
Add (unsigned char) cast to ctype functions

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Oct 28 20:04:24 2004 UTC (20 years, 4 months ago) by heas
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +5 -3 lines
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 - view: text, markup, annotated - select for diffs
Sun Oct 10 09:43:02 2004 UTC (20 years, 5 months ago) by wiz
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
Add -S to usage.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Oct 8 17:25:52 2004 UTC (20 years, 5 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +10 -4 lines
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 - view: text, markup, annotated - select for diffs
Mon Jun 7 08:57:41 2004 UTC (20 years, 9 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +19 -7 lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 6 20:29:25 2004 UTC (21 years ago) by itojun
Branches: 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
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
use "volatile sig_atomic_t" for gothup; Havard Eidnes

Revision 1.64: download - view: text, markup, annotated - select for diffs
Sat Mar 6 14:41:59 2004 UTC (21 years ago) by itojun
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +19 -6 lines
make SIGHUP handler very small, and call init() from the main poll() loop.
should fix PR bin/24682.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Fri Oct 17 01:39:25 2003 UTC (21 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +10 -5 lines
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 - view: text, markup, annotated - select for diffs
Thu Oct 16 06:22:09 2003 UTC (21 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +10 -6 lines
safer use of realloc

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Sep 19 08:24:48 2003 UTC (21 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -3 lines
no need for explicit '?'; openbsd

Revision 1.60: download - view: text, markup, annotated - select for diffs
Thu Aug 7 11:25:44 2003 UTC (21 years, 7 months ago) by agc
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed May 14 23:58:23 2003 UTC (21 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3 lines
whitespace fix

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed May 14 23:53:09 2003 UTC (21 years, 10 months ago) by itojun
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +11 -8 lines
strlcpy audit

Revision 1.57: download - view: text, markup, annotated - select for diffs
Sat Nov 16 03:59:36 2002 UTC (22 years, 4 months ago) by itojun
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +23 -7 lines
die if out-of-range uid/gid is specified.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Tue Sep 24 13:53:54 2002 UTC (22 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +13 -4 lines
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 - view: text, markup, annotated - select for diffs
Fri Aug 2 02:23:49 2002 UTC (22 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +16 -21 lines
add utmpx support;

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Jun 9 19:59:55 2002 UTC (22 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -6 lines
no need for KAME_SCOPEID any longer

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Sat May 25 17:44:49 2002 UTC (22 years, 10 months ago) by perry
Branches: 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
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat May 25 14:46:01 2002 UTC (22 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +77 -115 lines
ANSIfy, and some KNF. Sort options in getopt-switch. Drop some unneeded
include files.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat May 25 14:21:02 2002 UTC (22 years, 10 months ago) by wiz
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu May 2 13:53:10 2002 UTC (22 years, 10 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -3 lines
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 - view: text, markup, annotated - select for diffs
Fri Jan 18 10:27:50 2002 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +8 -5 lines
logpath_add(): store pointer to strdup(3)ed copy of path provided.
fixes -P /some/file.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Tue Nov 6 05:39:27 2001 UTC (23 years, 4 months ago) by kim
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Thu Jul 19 00:15:32 2001 UTC (23 years, 8 months ago) by taca
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +5 -6 lines
Put pidfile after daemonize.  This would fix newsyslog(8) error.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Mon Jul 16 05:04:47 2001 UTC (23 years, 8 months ago) by manu
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +220 -78 lines
- 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 - view: text, markup, annotated - select for diffs
Sun Jul 1 16:23:42 2001 UTC (23 years, 8 months ago) by itojun
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +33 -6 lines
-DLIBWRAP will enable libwrap-based filtering on UDP socket messages.
PR 13348

Revision 1.45: download - view: text, markup, annotated - select for diffs
Fri Jun 8 04:16:28 2001 UTC (23 years, 9 months ago) by mrg
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +10 -3 lines
new `-n' switch to avoid looking up hostnames.

Revision 1.34.4.4: download - view: text, markup, annotated - select for diffs
Thu Mar 22 02:48:58 2001 UTC (24 years ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Diff to: previous 1.34.4.3: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.3: +6 -2 lines
Pull up revision 1.44 (requested by itojun):
  Plug memory leak.  Fixes PR#12444.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Mar 21 17:02:43 2001 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -2 lines
plug memory leak.  PR 12444.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Feb 19 23:22:48 2001 UTC (24 years, 1 month ago) by cgd
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -4 lines
convert to use getprogname()

Revision 1.42: download - view: text, markup, annotated - select for diffs
Mon Sep 18 13:04:53 2000 UTC (24 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +6 -4 lines
Don't prematurely terminate log message on a 0x80 character

Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Sep 13 21:20:21 2000 UTC (24 years, 6 months ago) by tron
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -2 lines
Use setlocale(3) to activate support for international characters.
This should fix PR bin/11007 by Bill Sommerfeld.

Revision 1.34.4.3: download - view: text, markup, annotated - select for diffs
Wed Sep 13 15:57:02 2000 UTC (24 years, 6 months ago) by sommerfeld
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.34.4.2: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.2: +3 -3 lines
Pull up 1.40: range check in printline() correctly.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Sep 13 15:46:32 2000 UTC (24 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3 lines
prevent one byte overrun in printline()

Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Sun Jul 2 02:18:10 2000 UTC (24 years, 8 months ago) by jwise
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.4.1: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Jul 2 02:15:34 2000 UTC (24 years, 8 months ago) by jwise
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -2 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 30 22:35:30 2000 UTC (24 years, 8 months ago) by jwise
Branches: netbsd-1-5
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +40 -23 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 30 18:45:04 2000 UTC (24 years, 8 months ago) by jwise
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +30 -16 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 30 18:22:54 2000 UTC (24 years, 8 months ago) by jwise
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Improve behavior of `syslogd -s'.

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

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Jun 30 18:03:50 2000 UTC (24 years, 8 months ago) by jwise
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +8 -12 lines
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 - view: text, markup, annotated - select for diffs
Fri Jun 30 17:32:43 2000 UTC (24 years, 8 months ago) by jwise
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +13 -6 lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 18 09:44:46 2000 UTC (25 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +47 -28 lines
* 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 - view: text, markup, annotated - select for diffs
Mon Dec 27 18:38:11 1999 UTC (25 years, 3 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +149 -82 lines
Pull up to last week's -current.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Dec 13 04:25:08 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -4 lines
use sizeof(foo) instead of hardcoded value, to help synchronizing
variable def and function parameter.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Dec 7 11:30:28 1999 UTC (25 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -1 lines
RCSID police.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Dec 6 01:26:26 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +79 -82 lines
be more friendly with non-IPv6 kernel.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Dec 2 16:17:30 1999 UTC (25 years, 3 months ago) by itojun
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +129 -63 lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 27 14:51:49 1999 UTC (25 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -1 lines
add some debug messages.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Jun 7 15:34:07 1999 UTC (25 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +9 -1 lines
save/restore errno as necessary (printf() et al might have modified it...)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jun 6 01:55:58 1999 UTC (25 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +3 -10 lines
Use pidfile(3).

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Feb 28 11:46:26 1999 UTC (26 years ago) by tron
Branches: 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
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +10 -13 lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 28 11:30:18 1999 UTC (26 years ago) by pk
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -2 lines
Correct precedence in calculation of storage for pollfds.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Feb 28 11:16:18 1999 UTC (26 years ago) by tron
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +5 -9 lines
- 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 - view: text, markup, annotated - select for diffs
Sun Feb 28 11:03:35 1999 UTC (26 years ago) by tron
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +5 -5 lines
Use correct expression "sizeof(char *)" instead of "sizeof(char **)"
to calculate memory size.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sun Feb 21 13:30:15 1999 UTC (26 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +161 -41 lines
- 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 - view: text, markup, annotated - select for diffs
Thu Jul 30 23:29:29 1998 UTC (26 years, 7 months ago) by tron
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +12 -3 lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 18 05:04:40 1998 UTC (26 years, 8 months ago) by lukem
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
use AF_LOCAL instead of AF_UNIX

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 6 06:58:44 1998 UTC (26 years, 8 months ago) by mrg
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -1 lines
- 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 - view: text, markup, annotated - select for diffs
Fri May 8 19:03:41 1998 UTC (26 years, 10 months ago) by kleink
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
Fix arithmetics lossage on typeless pointers.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Oct 24 01:41:47 1997 UTC (27 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +9 -9 lines
prefer snprintf() to sprintf()

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Oct 17 13:49:37 1997 UTC (27 years, 5 months ago) by lukem
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -2 lines
getopt returns -1 not EOF

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Sep 19 19:24:24 1997 UTC (27 years, 6 months ago) by leo
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +34 -4 lines
Commit userland part of pr-1891.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Mon Sep 15 03:25:42 1997 UTC (27 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -3 lines
If f->f_type is F_FORW, don't close f->file.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Sep 13 07:53:10 1997 UTC (27 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -2 lines
Store constant `F_UNUSED' into the right place f->f_type
rather than f->f_file.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jul 18 22:48:31 1997 UTC (27 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Cast time_t's to long, and use %ld format, when printing.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Jun 29 18:57:45 1997 UTC (27 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +10 -6 lines
- Fix warnings
- Use ttymsg from libutil.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat May 17 20:31:15 1997 UTC (27 years, 10 months ago) by pk
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
NULL => 0 (Arne Juul; PR#3629)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Apr 26 05:12:32 1997 UTC (27 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2 lines
add 0 and 0x prefixes for octal and hex numbers, in debug messages (based on pr#2964).

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Apr 26 05:08:29 1997 UTC (27 years, 11 months ago) by mrg
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +8 -6 lines
do not write pid file in debug mode.  (pr#2825)

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Feb 5 02:30:26 1996 UTC (29 years, 1 month ago) by perry
Branches: MAIN
CVS tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +16 -6 lines
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 - view: text, markup, annotated - select for diffs
Wed Jan 24 15:49:52 1996 UTC (29 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Tue Jan 2 17:48:41 1996 UTC (29 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +177 -163 lines
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 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Dec 28 16:58:25 1995 UTC (29 years, 3 months ago) by perry
Branches: WFJ-920714, CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +175 -166 lines
imported from 44lite2

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jun 11 20:22:58 1995 UTC (29 years, 9 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -5 lines
Use hstrerror(), not h_errlist[].

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun May 14 04:18:45 1995 UTC (29 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2 lines
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 - view: text, markup, annotated - select for diffs
Sun Aug 1 17:55:38 1993 UTC (31 years, 7 months ago) by mycroft
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1 lines
Add RCS identifiers.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: 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
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>