summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_log.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The must be no space after the syslog priority in the sendsyslog(2)bluhm2015-09-111-2/+2
| | | | | dropped message error log. OK benno@
* To make logging to local syslog reliable, log a message about failedbluhm2015-09-021-4/+40
| | | | | | log atempts. sendsyslog(2) is a good place to detect and report the problem. OK deraadt@
* Pass a thread pointer instead of its file descriptor table to getsock(9).mpi2015-05-061-2/+2
| | | | | | Diff from Vitaliy Makkoveev. Manpage tweak and ok millert@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* First step towards making uiomove() take a size_t size argument:miod2015-02-101-2/+2
| | | | | | | - rename uiomove() to uiomovei() and update all its users. - introduce uiomove(), which is similar to uiomovei() but with a size_t. - rewrite uiomovei() as an uiomove() wrapper. ok kettenis@
* Many architectures call initmsgbuf() really really early, before uvm iskettenis2015-01-131-1/+7
| | | | | | | | | initialized. Calling malloc(9) at that point is not a good idea. So initialize consbuf later. Fixes dmesg -s on sparc64 (and probably a few other architectures). ok miod@, deraadt@
* Add dmesg -s support, to view the output of rc(8) system startup messages.mpf2015-01-131-7/+13
| | | | | Help and feedback by Theo and Miod. OK deraadt@, manpage-ok jmc@
* yet more mallocarray() changes.doug2014-12-131-2/+3
| | | | ok tedu@ deraadt@
* convert bcopy to memcpy. ok millerttedu2014-12-101-2/+2
|
* pass size argument to free()deraadt2014-11-031-3/+4
| | | | ok doug tedu
* I/O ktrace of sendsyslog(2) did not work. As uiomove() adjustsbluhm2014-07-281-2/+6
| | | | | | iov_len to 0, we need a propper length calculation. While there, use -1 for the file descriptor because 0 is reserved for stdin. OK deraadt@ guenther@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Add new sendsyslog(const char *, size_t) system call which simply passesderaadt2014-07-101-2/+79
| | | | | | | | | a message up into syslogd's /dev/log interface. This will be used to make syslog_r work during file descriptor exhaustion, or inside sandboxes which prohibit socket, connect, sendto, etc. The system call is being added about a week before the library and daemon changes. ok guenther tedu miod matthew
* Eliminates struct pcred by moving the real and saved ugids intoguenther2014-03-301-2/+2
| | | | | | | | | struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
* bzero -> memsettedu2014-01-211-2/+2
|
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* unsupported ioctl's should be returned with ENOTTYthib2007-09-031-2/+2
| | | | | | not -1; ok miod@
* ansi and deregister. No binary change.jsg2005-12-091-27/+8
|
* knfderaadt2005-04-201-2/+3
|
* Try to start log message buffer on a new line. Helps install scripts avoidkrw2005-04-141-5/+28
| | | | | | detecting phantom devices when scanning dmesg output. Suggested by miod@, ok deraadt@.
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-13/+11
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* remove caddr_t casts. it's just silly to cast something when the functiontedu2003-07-211-5/+4
| | | | takes a void *. convert uiomove to take a void * as well. ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* kqfilter for the log. niels said i can commit it if it worksmickey2002-06-291-1/+51
| | | | and i converted syslog to libevent and it works now (;
* Move offsetof define into sys/param.hcsapuntz2001-04-061-3/+1
|
* enlarge msgbuf, somewhat line netbsd didderaadt2000-02-221-19/+42
|
* it is definately wrong to initialize the pgid at open() time because thederaadt1997-09-181-2/+1
| | | | | uid/euid used for checking in csignal() is controlled by whoever used TIOCSPGRP previously.
* for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidderaadt1997-08-311-9/+8
| | | | | | | and euid as well, then deliver them using new csignal() interface which ensures that pgid setting process is permitted to signal the pgid process(es). Thanks to newsham@aloha.net for extensive help and discussion.
* partial sync with netbsd 960418, more to comederaadt1996-04-211-4/+3
|
* From NetBSD: 960217 mergeniklas1996-03-031-6/+14
|
* initial import of NetBSD treederaadt1995-10-181-0/+238