OpenBSD CVS

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


[BACK] Up to [local] / src / usr.sbin / syslogc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Mon Nov 15 15:14:24 2021 UTC (3 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_7_8_BASE, OPENBSD_7_8, OPENBSD_7_7_BASE, OPENBSD_7_7, OPENBSD_7_6_BASE, OPENBSD_7_6, OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.18: +1 -3 lines
Diff to previous 1.18 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Tue Oct 13 16:30:55 2015 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 26 18:34:52 2014 UTC (10 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

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

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jul 12 11:28:31 2011 UTC (14 years, 2 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.15: +14 -4 lines
Diff to previous 1.15 (colored)

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@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 4 20:23:09 2011 UTC (14 years, 3 months ago) by mpf
Branch: MAIN
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Wed Sep 10 22:17:33 2008 UTC (17 years ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

sync synopsis and usage; documentation tweaks.

ok jmc@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 10 13:54:39 2007 UTC (18 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

sync usage() somewhat;

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 3 13:25:21 2007 UTC (18 years, 9 months ago) by mpf
Branch: MAIN
Changes since 1.11: +15 -6 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Wed Sep 28 08:49:28 2005 UTC (20 years ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Mon Sep 19 23:34:52 2005 UTC (20 years ago) by djm
Branch: MAIN
Changes since 1.9: +1 -6 lines
Diff to previous 1.9 (colored)

zap unused header and #defines, mostly from stevesk@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 3 03:42:47 2005 UTC (20 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.8: +2 -3 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 14 22:33:38 2004 UTC (21 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

remove unused variables

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jul 15 20:46:00 2004 UTC (21 years, 2 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

add -o to usage()  ok markus@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 25 19:11:38 2004 UTC (21 years, 3 months ago) by djm
Branch: MAIN
Changes since 1.5: +48 -6 lines
Diff to previous 1.5 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 13 01:10:05 2004 UTC (21 years, 5 months ago) by djm
Branch: MAIN
Changes since 1.4: +13 -12 lines
Diff to previous 1.4 (colored)

Sort getopt list and tidy error checks. From [email protected];
ok deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Mon Mar 15 01:07:21 2004 UTC (21 years, 6 months ago) by djm
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jan 12 21:18:39 2004 UTC (21 years, 8 months ago) by djm
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

remove redundant string termination; report from [email protected]

Revision 1.2 / (download) - annotate - [select for diffs], Mon Jan 5 02:21:06 2004 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

excessively detailed error messages are not unix

Revision 1.1 / (download) - annotate - [select for diffs], Sun Jan 4 08:30:21 2004 UTC (21 years, 9 months ago) by djm
Branch: MAIN

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

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