History log of /openbsd-current/usr.sbin/syslogc/syslogc.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.19 15-Nov-2021 millert

No need to declare optind, optarg or opterr; unistd.h does this for us.
From Jan Stary. OK deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.18 13-Oct-2015 deraadt

After the socket is open, the remainder is just io operations.
Use pledge "stdio".


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.17 26-Nov-2014 millert

Prefer setvbuf() to setlinebuf() for portability; ok deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 12-Jul-2011 sthen

Allow syslogc -n XX to display less than the whole file, and -n XX -f to
display more/less than the default of 10. ok mpf@ jmc@


# 1.15 04-Jul-2011 mpf

Make stdout line buffered.
# syslogc -f foobuf | grep bar
is now usable.
OK mikeb, djm, markus


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.14 10-Sep-2008 sobrado

sync synopsis and usage; documentation tweaks.

ok jmc@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.13 10-Jan-2007 jmc

sync usage() somewhat;


# 1.12 03-Jan-2007 mpf

Support for continuous reading of syslog memory buffers.
Works like ``tail -f'' on a log file.
OK markus@, djm@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.11 28-Sep-2005 stevesk

err()->errx() and KNF; ok djm@


# 1.10 19-Sep-2005 djm

zap unused header and #defines, mostly from stevesk@


Revision tags: OPENBSD_3_8_BASE
# 1.9 03-Apr-2005 djm

kill redundant warning - getopt does it for us; from andrushock AT korovino.net


Revision tags: OPENBSD_3_7_BASE
# 1.8 14-Sep-2004 deraadt

remove unused variables


Revision tags: OPENBSD_3_6_BASE
# 1.7 15-Jul-2004 mpf

add -o to usage() ok markus@


# 1.6 25-Jun-2004 djm

support new syslogd control protocol and add new -o option to detect memory
buffer overflow; idea & ok markus@

NB if you are using memory buffered logging make sure you update both syslogd
and syslogc _and_ restart syslogd because the protocol has changed


# 1.5 13-Apr-2004 djm

Sort getopt list and tidy error checks. From andrushock@korovino.net;
ok deraadt@


Revision tags: OPENBSD_3_5_BASE
# 1.4 15-Mar-2004 djm

zero struct sockaddr_un before use, from andrushock AT korovino.net; ok deraadt@


# 1.3 12-Jan-2004 djm

remove redundant string termination; report from nimadeus@pandora.be


# 1.2 05-Jan-2004 deraadt

excessively detailed error messages are not unix


# 1.1 04-Jan-2004 djm

syslogc - client to read memory buffered logs from syslogd;
manpage nits jmc@, fixes jose@; ok deraadt@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 13-Oct-2015 deraadt

After the socket is open, the remainder is just io operations.
Use pledge "stdio".


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.17 26-Nov-2014 millert

Prefer setvbuf() to setlinebuf() for portability; ok deraadt@


Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.16 12-Jul-2011 sthen

Allow syslogc -n XX to display less than the whole file, and -n XX -f to
display more/less than the default of 10. ok mpf@ jmc@


# 1.15 04-Jul-2011 mpf

Make stdout line buffered.
# syslogc -f foobuf | grep bar
is now usable.
OK mikeb, djm, markus


Revision tags: OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.14 10-Sep-2008 sobrado

sync synopsis and usage; documentation tweaks.

ok jmc@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE
# 1.13 10-Jan-2007 jmc

sync usage() somewhat;


# 1.12 03-Jan-2007 mpf

Support for continuous reading of syslog memory buffers.
Works like ``tail -f'' on a log file.
OK markus@, djm@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.11 28-Sep-2005 stevesk

err()->errx() and KNF; ok djm@


# 1.10 19-Sep-2005 djm

zap unused header and #defines, mostly from stevesk@


Revision tags: OPENBSD_3_8_BASE
# 1.9 03-Apr-2005 djm

kill redundant warning - getopt does it for us; from andrushock AT korovino.net


Revision tags: OPENBSD_3_7_BASE
# 1.8 14-Sep-2004 deraadt

remove unused variables


Revision tags: OPENBSD_3_6_BASE
# 1.7 15-Jul-2004 mpf

add -o to usage() ok markus@


# 1.6 25-Jun-2004 djm

support new syslogd control protocol and add new -o option to detect memory
buffer overflow; idea & ok markus@

NB if you are using memory buffered logging make sure you update both syslogd
and syslogc _and_ restart syslogd because the protocol has changed


# 1.5 13-Apr-2004 djm

Sort getopt list and tidy error checks. From andrushock@korovino.net;
ok deraadt@


Revision tags: OPENBSD_3_5_BASE
# 1.4 15-Mar-2004 djm

zero struct sockaddr_un before use, from andrushock AT korovino.net; ok deraadt@


# 1.3 12-Jan-2004 djm

remove redundant string termination; report from nimadeus@pandora.be


# 1.2 05-Jan-2004 deraadt

excessively detailed error messages are not unix


# 1.1 04-Jan-2004 djm

syslogc - client to read memory buffered logs from syslogd;
manpage nits jmc@, fixes jose@; ok deraadt@