summaryrefslogtreecommitdiffstats
path: root/usr.bin/logger/logger.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing static keywords to logger(1)ed2011-11-061-8/+8
|
* When specifying the -t option (send tag in front of message), this tagedwin2011-04-081-8/+13
| | | | | | | | | should also be forwarded to the remote logging host, not only when the logging is done locally. PR: bin/154324 Submitted by: Callum Gibson <callumgibson@optusnet.com.au> MFC after: 1 week
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-111-4/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* When reading input from a file or device (via -f option) set themckusick2009-10-301-0/+1
| | | | | | input to be in non-buffering mode so that input lines are logged as they occur rather than being saved up until a buffer's worth of input has been logged.
* Minor style(9) nit.obrien2008-02-051-1/+1
|
* Make logmsg take const char * arguments.dwmalone2007-05-071-3/+4
| | | | Set WARNS to 6.
* Add a new command-line option, -P, which allows the user to specifybms2006-08-021-11/+16
| | | | | | | | an arbitrary port to which syslog messages are to be sent. PR: bin/54026 Submitted by: Oliver Fromme MFC after: 10 days
* Reduce compiler warning: variable might be used uninitialized, by givingcharnier2005-05-291-3/+5
| | | | an initial value.
* ANSIify function definitions.dwmalone2002-09-041-11/+6
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Consistently use FBSDIDobrien2002-06-301-1/+0
|
* 1) Use FBSDID for vendor string.dwmalone2002-04-011-4/+6
| | | | | 2) Change an int for a size_t, as that's what it is mainly used for. 3) Add some braces to keep gcc happy.
* remove __Pimp2002-03-221-4/+4
|
* Improve error reporting - report error message when there is one, orfenner2002-02-271-1/+4
| | | | report a short read if that's what we're reporting.
* The default for -p was ``kern.notice'' in the -h case.ru2001-09-061-1/+1
| | | | | | | | | | | Make it ``user.notice'', as per manpage. (The syslog(3) function defaults to LOG_USER facility if none is specified, but we don't use syslog() in the -h case.) PR: docs/30374 Noticed by: SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
* IPv6 support for logger.ume2000-12-161-25/+65
| | | | Reviewed by: freebsd-current
* Allow logger to send messages directly to a remote syslog. (Thisdwmalone2000-07-181-8/+67
| | | | | | | | | only does IPv4 as our syslogd only does IPv4. I dunno if the KAME people have any plans for syslogd). PR: 19821 Submitted by: Nick Hilliard <nick@iol.ie> Reviewed by: sheldonh
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3).charnier1997-07-221-23/+18
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* unset TZ from the environment so the timestamp gets the system default,phk1996-10-211-0/+1
| | | | | | | | | | which is what syslogd presumably uses too. Notice that the "protocol" is bogus in not defining the timezone. "protocol" because it hardly deserves the name :-) closes bin/1739 Reported by: Stefan Zehl <sec@wg.camelot.de>
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+192
OpenPOWER on IntegriCloud