summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Clarify ss_sp's meaning and that alt stacks are per-threadguenther2012-11-171-34/+40
| | | | | | Correct EPERM vs EINVAL bits, mention posix and stack_t ok miod@ beck@
* Add the IP_DIVERTFL socket option on divert(4) sockets to controlbenno2012-10-211-2/+3
| | | | | | which packets (as in direction) of the traffic will be diverted through the divert socket. ok claudio@, henning@
* reword this sentence to avoid ambiguity;jmc2012-10-171-6/+6
| | | | | | original diff from dawe; guenther pointed out another interpretation while here, Fn -> Nm;
* For consistency with other OSes and ease of porting, makeguenther2012-10-121-8/+2
| | | | | | | | get{sock,peer}name() behave like accept() when the involved UNIX-domain socket isn't bound to an address, returning an AF_UNIX sockaddr with zero-length sun_path. Based on diff from robert@ and mikeb@ ok robert@ deraadt@
* add send(2) MSG_DONTWAIT support which enables us to choose nonblockingyasuoka2012-10-051-2/+4
| | | | | | | or blocking for each send(2) call. diff from UMEZAWA Takeshi ok bluhm
* remove lint leftovers; ok guenther@okan2012-09-0419-486/+1
|
* Don't attempt to warn about uninitialized __guard values yet. It'smatthew2012-08-241-2/+2
| | | | | | too early to assume that everyone has updated their compiler toolchains, and it seems to cause problems at least on armish when an out-of-date binutils is used.
* no more nnpfspioctl() system call; ok guentherderaadt2012-08-232-4/+3
|
* Convert cpp | as rules in bsd.lib.mk and lib/libc/sys/Makefile.inc to pure ccpascal2012-08-221-16/+25
| | | | | | | invocations. This allows us to use the compiler builtin define __PIC__ to check for PIC/PIEness rather than passing -DPIC. Simplifies PIE work a lot. ok matthew@, conceptually ok kurt@
* Change ld.so and libc to use .openbsd.randomdata on ELF platforms formatthew2012-08-221-4/+17
| | | | | | | | | | initializing their __guard values. For the time being, we're leaving libc's constructor method as a backup to make sure __guard actually gets initialized and to emit syslog warnings when it's not. Not really an ABI change, so no shlib bump... "hold on to your butts" ok deraadt, kettenis
* Kill an old mips workaround; we don't support mips, just mips64.pascal2012-08-211-22/+1
| | | | ok deraadt@ kettenis@
* Remove outdated reference to BSD 4.4 symlink behavior. Equivalentmatthew2012-07-171-11/+2
| | | | text was removed from symlink.7 over 16 years ago.
* Document new pathconf() variables.matthew2012-07-171-10/+51
| | | | From Brad, with tweaks by me.
* simplify a little of the posix standards talk. ok deraadt guenther jmctedu2012-06-263-34/+12
|
* oops, forgot to install getdtablecount(2); noted by teduderaadt2012-06-191-3/+3
|
* document address truncation; from Steffen Daode Nurpmesojmc2012-04-241-2/+9
| | | | ok deraadt matthew millert
* tweak;jmc2012-04-121-2/+2
|
* tweak previous;jmc2012-04-121-5/+6
|
* more rfork mop-upderaadt2012-04-123-27/+6
|
* mmap(2) updatedariane2012-04-121-50/+72
| | | | | | | | Add that len=0 will yield failure with EINVAL. While here, rephrase some of the text. Get rid of MAP_SWAP: its future came and went but nothing came of it. Lots of hackroom input; including feedback from jmc.
* remove rfork(); ok guenther miodderaadt2012-04-122-228/+40
|
* kill lfs system call lines and libc stubsderaadt2012-04-121-2/+1
|
* New system call: getdtablecount(2) returns the number of filederaadt2012-04-122-37/+73
| | | | | descriptors the process currently has open. ok guenther miod gilles ...
* In sendmsg() permit at most 10% of maxfiles to be in-flightderaadt2012-04-111-2/+7
| | | | | | during CMSG_DATA SCM_RIGHTS fd transfers. If this is exceeded, return EMFILE. ok claudio guenther gilles
* Document that openat(), etc are safe to call from a signal handler.matthew2012-04-031-20/+20
| | | | | | While here, recognize that _Exit() and raise() are C functions. ok deraadt@, guenther@, jmc@
* fix previous;jmc2012-04-011-1/+2
|
* remind people to think of the poor file descriptorsderaadt2012-04-011-3/+14
| | | | with claudio and jmc
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-2/+2
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. Variousguenther2012-03-133-2/+346
| | | | syntax and grammar fixes from jmc@
* New threads now inherit their TCB address from their parent threadguenther2012-03-041-4/+3
|
* Extend after recent msdos support.ajacoutot2012-02-181-4/+5
| | | | input/ok krw@ thib@ jmc@
* Reimplement mutexes, condvars, and rwlocks to eliminate bugs,guenther2012-01-171-2/+2
| | | | | | | | | | | | | particularly the "consume the signal you just sent" hang, and putting the wait queues in userspace. Do cancellation handling in pthread_cond_*wait(), pthread_join(), and sem_wait(). Add __ prefix to thr{sleep,wakeup,exit,sigdivert}() syscalls; add 'abort" argument to thrsleep to close cancellation race; make thr{sleep,wakeup} return errno values via *retval to avoid touching userspace errno.
* Document early history of a few functions specifically mentioned in 2BSDschwarze2012-01-151-2/+18
| | | | | | manuals; however, it turned out all of these actually predate 2BSD. All information from http://minnie.tuhs.org/cgi-bin/utree.pl. ok jmc@ sobrado@
* formatting errors, found using freebsd's "igor";jmc2011-12-241-3/+3
|
* some spelling fixes, found using freebsd's "igor" document verifier;jmc2011-12-231-3/+3
|
* Remove an OpenBSD-specific tweak regarding .Xr spacingschwarze2011-12-031-3/+3
| | | | | | | | and make it compatible with bsd.lv mandoc and with groff-1.21. This tweak was originally added for compatibility with groff-1.15, which is no longer needed. ok jmc@ kristaps@
* document MSG_NOSIGNAL.fgsch2011-12-031-6/+21
|
* sigstack() is long dead, and the compat sigaltstack syscall is gone too.guenther2011-11-222-52/+2
| | | | | | Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
* Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX.schwarze2011-11-178-23/+107
| | | | | All facts from http://minnie.tuhs.org/cgi-bin/utree.pl, checked by sobrado@. Feedback and ok jmc@ jmc@ (sic, Jason checked and ok'ed this twice).
* Fix HISTORY:schwarze2011-11-171-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mention the predecessor exec() in v1, and remove the bogus "appeared in 3BSD", just leave "execve() appeared in v7", because: (1) There is a direct line of inheritance from v7 (Bell, Jan 1979) via 32v (Bell, May 1979) to 3BSD (UCB, Feb 1980), and it goes without saying that children include code from their grandparents. (2) It is impossible that there was parallel development of execve() at Bell and UCB. The only UCB release before v7 was 1BSD (May 1978), and even 2BSD (May 1979) did not include any kernel parts but fully relied on the Bell v6 kernel. When Bell released 32v, the UCB did not even own a VAX, and Bill Joy was still are pure userland hacker. Only after the original UCBVAX arrived at Berkeley, Richard Fateman involved Domenico Ferrari who involved Ozalp Babaoglu who started kernel work at UCB, based on Bell 32v, later involving Bill Joy. (3) Genetic analysis of the source code confirms this. All kernel code involved is in sys1.c. Regarding this file, the first two UCB releases, VAX 3BSD (based on Bell 32v) and PDP-11 2.8BSD (Dec 1981, based on Bell v7) are more similar to their respective Bell parents than to each other. The Berkeley versions are cousins, not siblings: v7 -> 32v: 523 +71 -60 = 534 v7 -> 2.8: 523 +305 -24 = 804 32v -> 3: 534 +169 -110 = 593 3 -> 2.8: 593 +413 -202 = 804 References: http://oreilly.com/catalog/opensources/book/kirkmck.html http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys1.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=32V/usr/src/sys/sys/sys1.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/src/sys/sys/sys1.c https://www.mckusick.com/csrg/ - /cdrom1/2.8/usr/kernel/sys/sys/sys1.c facts checked and ok sobrado@, style and formatting ok jmc@
* Expand HISTORY; feedback and ok jmc@ sobrado@.schwarze2011-11-071-8/+21
| | | | | | | | | | This one is tricky, so i'm giving the sources: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/u2.s http://minnie.tuhs.org/cgi-bin/utree.pl?file=V4/nsys/ken/sys3.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V5/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V6/usr/sys/ken/sys4.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/sys/sys/sys4.c http://www.openbsd.org/plus21.html (lchown)
* More .At v1 HISTORY.schwarze2011-11-073-14/+39
| | | | | | All information from http://minnie.tuhs.org/cgi-bin/utree.pl . All facts checked by sobrado@. Feedback and ok on an earlier version jmc@.
* Commemorate research!dmr by documenting the history of allschwarze2011-11-067-40/+53
| | | | | | | | | system calls existing since Version 1 AT&T UNIX (first batch). All information taken from primary sources at the UNIX tree of the UNIX heritage society, http://minnie.tuhs.org/cgi-bin/utree.pl . The number of errors in the existing manuals is astonishing. All facts checked by sobrado@. Feedback and ok on wording and formatting by jmc@.
* .Ev -> .Dvderaadt2011-11-064-16/+16
|
* repair documentation offset in the p*() versions of the calls and EINVAL;deraadt2011-11-062-27/+25
| | | | | plus merge differences between two pages. ok guenther jmc
* Move around the error cases to make clear that some don't apply to theguenther2011-11-052-27/+45
| | | | p* versions, as well as fix a couple other cases
* Allow segments to be used even after they were marked for deletion withrobert2011-10-271-4/+11
| | | | | | | | | | | | the IPC_RMID flag. This is permitted as an extension beyond the standards and this is similar to what other operating systems like linux do. Because compat_linux(8) was emulating this already, remove that code since now this is the default. input from oga@, guenther@, jmc@, deraadt@ ok deraadt@
* Update POSIX references for chdir(2) and chmod(2) from 1988 to 2008.schwarze2011-10-244-15/+29
| | | | | | | | Add POSIX references for fchdir(2), fchmod(2), fchmodat(2), fchown(2), lchown(2) and execve(2). State that fchmod(2) can return EPERM as required by POSIX 2008 (tested). Requested by sobrado@; ok guenther@ jmc@ sobrado@.
* Tweak wording, to clarify that setrtable affects the routing tableguenther2011-10-161-6/+10
| | | | | | | and that getrtable returns the table, not 0/-1. Also, strip some quotes that mandoc made superfluous, per comment from jmc@. ok claudio@
* Note a restriction that is actually enforced in 5.0guenther2011-10-161-2/+3
|