summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_syscalls.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Preserve file flags in accept(2).wollman1996-10-151-2/+4
| | | | Submitted by: fredriks@mcs.com in PR#1775 (this implmentaion is different)
* The socketpair(0 syscall is bogusly returning the fd numbers throughpeter1996-08-241-1/+3
| | | | | | | | | the primary and secondary return codes, causing it to not behave as documented. This probably originates from the ancient BSD kernels that had pipe(2) implemented by socketpair(2), there are no binaries left that we can run that do this. Pointed out by: Robert Withrow <witr@rwwa.com>, PR#731
* Modify the kernel to use the new pr_usrreqs interface rather than the oldwollman1996-07-111-3/+3
| | | | | | | | | | | | | | pr_usrreq mechanism which was poorly designed and error-prone. This commit renames pr_usrreq to pr_ousrreq so that old code which depended on it would break in an obvious manner. This commit also implements the new interface for TCP, although the old function is left as an example (#ifdef'ed out). This commit ALSO fixes a longstanding bug in the TCP timer processing (introduced by davidg on 1995/04/12) which caused timer processing on a TCB to always stop after a single timer had expired (because it misinterpreted the return value from tcp_usrreq() to indicate that the TCB had been deleted). Finally, some code related to polling has been deleted from if.c because it is not relevant t -current and doesn't look at all like my current code.
* Make it possible to return more than one piece of control informationwollman1996-05-091-11/+24
| | | | | | | | (PR #1178). Define a new SO_TIMESTAMP socket option for datagram sockets to return packet-arrival timestamps as control information (PR #1179). Submitted by: Louis Mamakos <loiue@TransSys.com>
* Changed socket code to use 4.4BSD queue macros. This includes removingdg1996-03-111-17/+21
| | | | | | | | | the obsolete soqinsque and soqremque functions as well as collapsing so_q0len and so_qlen into a single queue length of unaccepted connections. Now the queue of unaccepted & complete connections is checked directly for queued sockets. The new code should be functionally equivilent to the old while being substantially faster - especially in cases where large numbers of connections are often queued for accept (e.g. http).
* Make getsockopt() capable of handling more than one mbuf worth of data.phk1996-02-241-6/+13
| | | | | Use this to read rules out of ipfw. Add the lkm code to ipfw.c
* Kill XNS.wollman1996-02-131-6/+6
| | | | | While we're at it, fix socreate() to take a process argument. (This was supposed to get committed days ago...)
* Enable the new fast pipe code. The old pipes can be used with thedyson1996-01-281-2/+3
| | | | "OLD_PIPE" config option.
* Converted two options over to the new scheme: USER_LDT and KTRACE.wollman1996-01-031-1/+3
|
* Make pipe() return a set of bidirectional pipe fd's rather than one-way onlypeter1996-01-011-3/+3
| | | | | | | | | just like on SVR4. This has no effect on any current programs in our source, but makes the use of SVR4 code a little easier. There is no code or implementation cost in the kernel.. This two-line change merely sets the modes on the ends of the pipes to be bidirectional. There are no other changes.
* Nuked ambiguous sleep message strings:bde1995-12-141-3/+3
| | | | | | | old: new: netcls[] = "netcls" "soclos" netcon[] = "netcon" "accept", "connec" netio[] = "netio" "sblock", "sbwait"
* Simplify the pseudo-argument removal changes by not optimizing forbde1995-10-231-218/+181
| | | | | | | | | | | | | | the !COMPAT_43 case - use a common function even when there is no `old' function. The diffs for this are large because of code motion to restore the function order to what it was before the pseudo-argument changes. Include <sys/sysproto.h> to get correct args structs and prototypes. The diffs for this are large because the declarations of the args structs were moved to become comments in the function headers. The comments may actually match the automatically generated declarations right now. Add prototypes.
* Remove the '1' from getpeername1 and getsockname1 when NOT COMPAT_OLDSOCK.swallace1995-10-111-2/+2
| | | | Left it in there by mistake.
* Remove compat_43 psuedo-argument hack, and replace with a better hack.swallace1995-10-071-101/+104
| | | | | | | | | | | | | | | | | Instead of using a fake "compat" argument, pass a real compat int to function if COMPAT_43 is defined. Functions involved: wait4, accept, recvfrom, getsockname. With the compat psuedo-argument, this introduces an argument structure that can have two possible sizes depending on compat options. This makes life difficult for lkm modules like ibcs2, which would have to guess what size used in kernel when compiled. Also, the prototype generator for these structures cannot generate proper sizes. Now there is only one fixed structure and makes everybody happy. I recommend these changes be introduced to 2.1 so that ibcs2, linux lkm's generated for 2.2 can still run on a 2.1 kernel.
* Remove trailing whitespace.rgrimes1995-05-301-7/+7
|
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-161-1/+2
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* All of this is cosmetic. prototypes, #includes, printfs and so on. Makesphk1994-10-021-333/+392
| | | | GCC a lot more silent.
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-4/+32
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+1217
OpenPOWER on IntegriCloud