summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_log.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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