aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syslog.h
Commit message (Collapse)AuthorAgeFilesLines
* sys: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326023
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Add static/const keywords to the arrays.Ed Schouten2013-04-091-2/+2
| | | | | | | | | | | | This theoretically allows a compiler to optimize (parts of) the array away if unused. While there, make the array size implicit and use a _Static_assert() to ensure that the definition matches up with the number of elements in the list. Notes: svn path=/head/; revision=249311
* Namespace: vsyslog() is a BSD extension.David Schultz2009-03-141-0/+2
| | | | Notes: svn path=/head/; revision=189815
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* Protect against local flooder of /var/run/log. Do not loop forever inGleb Smirnoff2004-11-041-0/+1
| | | | | | | | | | | | | | | | syslog(3) if we are a priveleged program (sshd, su, etc.). - Make syslogd open an additional socket /var/run/logpriv, with 0600 permissions. - In libc, try to use this socket. - Do not loop forever if we are using this socket (partial backout of 1.31) Reviewed by: dwmalone, Andrea Campi <andrea webcom it> Approved by: julian (mentor) MFC after: 1 month Notes: svn path=/head/; revision=137233
* Remove advertising clause from University of California Regent's license,Warner Losh2004-04-071-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core Notes: svn path=/head/; revision=127976
* o Merge <machine/ansi.h> and <machine/types.h> into a new headerMike Barcroft2002-08-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien Notes: svn path=/head/; revision=102227
* Remove __PAlfred Perlstein2002-03-191-5/+5
| | | | Notes: svn path=/head/; revision=92719
* syslog.h fails to compile with -Wwrite-stringsPoul-Henning Kamp2001-05-211-2/+2
| | | | | | | | PR: 27492 Submitted by: Alexey V. Neyman <avn@any.ru> Notes: svn path=/head/; revision=76937
* Add the "LOG_CONSOLE" facility and tell syslogd to not log it onPoul-Henning Kamp2000-11-251-0/+2
| | | | | | | console devices. Notes: svn path=/head/; revision=69175
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-291-4/+4
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55205
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* This is the addition of a syslog(3) security.* top-level category. ThisBrian Feldman1999-08-211-4/+5
| | | | | | | | | | | | should be used from now on for anything security but not auth-related. Included are updates for all relevant manpages and also to /etc files, creating a new /var/log/security. Nothing in the system logs to /var/log/security yet as of the time of this commit. Reviewed by: rgrimes, imp, chris Notes: svn path=/head/; revision=50126
* Added macros __printflike() and __scanflike() to <sys/cdefs.h>.Bruce Evans1998-07-131-3/+3
| | | | | | | | | | | Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() family. err() isn't quite printf-like since its format arg can legitimately be NULL. syslog() isn't quite printf-like, but gcc already accepts %m, even for plain printf() when it shouldn't. Notes: svn path=/head/; revision=37614
* Since i've just touched <sys/syslog.h>, thereby causing a large partJoerg Wunsch1997-10-061-1/+6
| | | | | | | | | | | | | | | | | | | | | | of the system to be rebuilt anyway, this is a good time to introduce LOG_NTP. The reasoning for a separate facility is that xntpd can sometimes cause exaggerative log message at high prioritites which are, depending on your environment and available clock sources, not necessarily as important as other LOG_DAEMON messages. However, they used to clutter log files and system console in the existing setup. Note that this situation could not be resolved using the !xntpd option (think about it). xntpd(8) is supposed to automatically pick up the change, it had already all necessary #ifdef's. The chosen value does, as far as my inquiries yielded, not clash with any other operating system. Notes: svn path=/head/; revision=30183
* Shift the value for INTERNAL_MARK left by 3, as done for all otherJoerg Wunsch1997-10-061-2/+2
| | | | | | | | | | facilities. This fixes the problems reported about syslogd not recording marks correctly. Submitted by: Alexander B. Povolotsky <tarkhil@mgt.msk.ru> Notes: svn path=/head/; revision=30177
* Add backward compatibility so that static executables built onJohn Polstra1997-03-201-1/+2
| | | | | | | | | | | modern FreeBSD systems will syslog properly on older systems that still name the logging socket "/dev/log". This includes pre-2.2 versions of FreeBSD as well as BSD/OS systems. If the connect to "/var/run/log" fails, the function now tries to connect to "/dev/log" as a fallback. Notes: svn path=/head/; revision=24068
* Remove an extraneous shift operation. The facility macros do alreadyJoerg Wunsch1997-03-021-2/+2
| | | | | | | | | shift the value. Submitted by: Andre.Albsmeier@mchp.siemens.de (Andre Albsmeier) Notes: svn path=/head/; revision=23252
* Silence -Wall when SYSLOG_NAMES is defined.Mike Pritchard1997-02-261-37/+37
| | | | | | | Submitted by: davidn Notes: svn path=/head/; revision=23127
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Kill _OLD_PATH_LOG. It's not needed.Joerg Wunsch1996-10-281-2/+1
| | | | Notes: svn path=/head/; revision=19225
* Reviewed by: various (mailing list feedback)Julian Elischer1996-10-231-2/+3
| | | | | | | | | | | Submitted by: whistle communications move the socket from /dev to /var/run by default TRANSITIONALLY make syslog add a symlink.. I PROMISE I'll remove that as soon as I have the makefiles etc fixed as well. Notes: svn path=/head/; revision=19137
* Back out change of log from being in /var/run to back in /devMarc G. Fournier1996-03-281-2/+2
| | | | Notes: svn path=/head/; revision=14884
* syslog.h -> changed /dev/log to be /var/run/log (its a socket, not a device)Marc G. Fournier1996-03-281-2/+2
| | | | | | | | | devfsext.h -> added prototype for dev_linkf(); Reviewed by: julian@freebsd.org Notes: svn path=/head/; revision=14878
* Made them all idempotent.Paul Richards1994-08-211-1/+6
| | | | | | | | Reviewed by: Submitted by: Notes: svn path=/head/; revision=2165
* Fix up some sloppy coding practices:Garrett Wollman1994-08-181-2/+4
| | | | | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter. Notes: svn path=/head/; revision=2112
* Added $Id$David Greenman1994-08-021-0/+1
| | | | Notes: svn path=/head/; revision=1817
* BSD 4.4 Lite Kernel SourcesRodney W. Grimes1994-05-241-0/+187
Notes: svn path=/head/; revision=1541