summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_socket.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test mbuf pointers against NULL not 0jsg2015-05-131-6/+6
| | | | ok krw@ miod@
* bzero -> memset. for the speeds.tedu2014-07-131-2/+2
|
* 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@
* poll(2) on a socket should set POLLHUP on EOF. This makes themillert2013-09-281-2/+5
| | | | | behavior of socketpair(2) match that of pipe(2) when the other end is closed. OK guenther@
* remove some obsolete caststedu2013-04-051-7/+6
|
* Changing the socket buffer flags sb_flags was not interrupt safebluhm2013-01-151-3/+3
| | | | | | | | as |= and &= are non-atomic operations. To avoid additional locks, put the flags that have to be accessed from interrupt into a separate sb_flagsintr 32 bit integer field. sb_flagsintr is protected by splsoftnet. Input from miod@ deraadt@; OK deraadt@
* fix PR 6082: do not create more fd's than will fit in the message onotto2009-02-221-2/+3
| | | | the receiving side when passing fd's. ok deraadt@ kettenis@
* A closed, disconnected, or otherwise failed socket is still a socketderaadt2008-10-021-2/+10
| | | | | | and should return stat information instead of EINVAL from deep in the guts of tcp_usrreq. While there, put some more information into struct stat, inspired by FreeBSD. EINVAL problem reported in PR 5943
* Deal with the situation when TCP nfs mounts timeout and processesthib2008-05-231-3/+3
| | | | | | | | | | | | | get hung in nfs_reconnect() because they do not have the proper privilages to bind to a socket, by adding a struct proc * argument to sobind() (and the *_usrreq() routines, and finally in{6}_pcbbind) and do the sobind() with proc0 in nfs_connect. OK markus@, blambert@. "go ahead" deraadt@. Fixes an issue reported by bernd@ (Tested by bernd@). Fixes PR5135 too.
* exclude control data from the number of bytes returned by FIONREAD ioctl()kurt2007-02-261-2/+2
| | | | | | by adding a sb_datacc count to sockbuf that counts data excluding MT_CONTROL and MT_SONAME mbuf types. w/help from deraadt@. okay deraadt@ claudio@
* ansi/deregister. No binary change.jsg2005-12-131-28/+8
|
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-33/+28
| | | | | | | 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 the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add a fo_stat member to struct fileops. Used soon.art2001-05-141-2/+2
| | | | Also add a stat function for kqueue from FreeBSD.
* More generic arguments to soo_stat.art2001-05-141-4/+6
|
* port kqueue changes from freebsd, plus all required openbsd glue.provos2001-03-011-3/+5
| | | | | | | okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
* Change struct file interface methods read and write to pass file offset incsapuntz2000-04-191-3/+5
| | | | | | | and out. Make pread/pwrite in netbsd & linux thread safe - which is the whole point anyway.
* for non-tty TIOCSPGRP/F_SETOWN/FIOSETOWN pgid setting calls, store uidderaadt1997-08-311-1/+4
| | | | | | | 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.
* OpenBSD tagsniklas1997-02-241-0/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+204