summaryrefslogtreecommitdiff
path: root/lib/libc/sys
AgeCommit message (Collapse)Author
2012-03-22Move __tfork_thread() from rthreads (libpthread) to libc so thatPhilip Guenthe
it can be used for not-strictly-threading purposes ok matthew@ kurt@
2012-03-13Add manpages for __thrsigdivert, __thrsleep, and __thrwakeup. VariousPhilip Guenthe
syntax and grammar fixes from jmc@
2012-03-04New threads now inherit their TCB address from their parent threadPhilip Guenthe
2012-02-18Extend after recent msdos support.Antoine Jacoutot
input/ok krw@ thib@ jmc@
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
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.
2012-01-15Document early history of a few functions specifically mentioned in 2BSDIngo Schwarze
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@
2011-12-24formatting errors, found using freebsd's "igor";Jason McIntyre
2011-12-23some spelling fixes, found using freebsd's "igor" document verifier;Jason McIntyre
2011-12-03Remove an OpenBSD-specific tweak regarding .Xr spacingIngo Schwarze
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@
2011-12-03document MSG_NOSIGNAL.Federico G. Schwindt
2011-11-22sigstack() is long dead, and the compat sigaltstack syscall is gone too.Philip Guenthe
Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
2011-11-17Complete the HISTORY of all syscalls that exist since Version 1 AT&T UNIX.Ingo Schwarze
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).
2011-11-17Fix HISTORY:Ingo Schwarze
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@
2011-11-07Expand HISTORY; feedback and ok jmc@ sobrado@.Ingo Schwarze
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)
2011-11-07More .At v1 HISTORY.Ingo Schwarze
All information from http://minnie.tuhs.org/cgi-bin/utree.pl . All facts checked by sobrado@. Feedback and ok on an earlier version jmc@.
2011-11-06Commemorate research!dmr by documenting the history of allIngo Schwarze
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@.
2011-11-06.Ev -> .DvTheo de Raadt
2011-11-06repair documentation offset in the p*() versions of the calls and EINVAL;Theo de Raadt
plus merge differences between two pages. ok guenther jmc
2011-11-05Move around the error cases to make clear that some don't apply to thePhilip Guenthe
p* versions, as well as fix a couple other cases
2011-10-27Allow segments to be used even after they were marked for deletion withRobert Nagy
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@
2011-10-24Update POSIX references for chdir(2) and chmod(2) from 1988 to 2008.Ingo Schwarze
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@.
2011-10-16Tweak wording, to clarify that setrtable affects the routing tablePhilip Guenthe
and that getrtable returns the table, not 0/-1. Also, strip some quotes that mandoc made superfluous, per comment from jmc@. ok claudio@
2011-10-16Note a restriction that is actually enforced in 5.0Philip Guenthe
2011-10-16Fixes and tweaks from jmc@Philip Guenthe
2011-10-16Make consistent the syscall stubs for the syscalls that got specialPhilip Guenthe
handling to fix up the alignment of 64bit arguments so that they do the same dance where _thread_sys_FOO is the real stub and FOO is a weak alias. For some of them, this is needed for cancellation handling. From discussions with fgsch@, ok millert@
2011-10-16Add stubs and manpage for __{get,set}_tcbPhilip Guenthe
ok deraadt@
2011-09-03knock out some useless Pp;Jason McIntyre
2011-09-03make -column lists pretty again;Jason McIntyre
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
2011-08-19as with other list types, column lists generally do not need a Pp/-compactJason McIntyre
construct; this also sidesteps what seems to be a problem with mandoc, in that "-column -compact" seems to mess up the formatting. thus these pages should now have their lists formatted nicely (i.e. correctly aligned and with indent applied); as a side note, the fact that headers are not properly marked up is another issue which will be addressed separately (a mandoc fix is needed, i think). i have fudged a few of these to mark up properly, since the workaround does make sense for some pages. as another side note, i haven;t fixed man7, as i need to prepare a separate diff for kristaps and ingo.
2011-07-26.Fn rmdir -> .Xr rmdir 2Matthew Dempsky
2011-07-24fix linkat(2) prototypeMatthew Dempsky
2011-07-19Change "constructed by bitwise-inclusive OR'ing of flags from ..." toMatthew Dempsky
"constructed by bitwise-inclusive ORing flags from ..." Requested by jmc@
2011-07-19Change "If also flag is zero" to "If flag is also zero".Matthew Dempsky
Requested by jmc@
2011-07-19no need to mention xerox network stack here; ok claudioMike Belopuhov
2011-07-19tweak previous;Jason McIntyre
2011-07-19knock out some useless Pp;Jason McIntyre
2011-07-19Fix two typos pointed out by guenther@ during our libpthread microMatthew Dempsky
hackathon.
2011-07-19document that we don't currently handle UTIME_OMIT correctly for the mtime ↵Matthew Dempsky
timestamp
2011-07-18oops, forget a critical "not"Matthew Dempsky
2011-07-18Add (rough draft) documentation for fdopendir(3) and the 15 newMatthew Dempsky
XXXat(2) system calls from POSIX 2008. Editing will be done in tree. General style discussed with jmc@, schwarze@, and deraadt@ ok jmc@
2011-07-18Expose a bunch of new functionality from POSIX 2008: openat(2),Matthew Dempsky
fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and fdopendir(3). "Minor" libc bump. Tested in a bulk build by naddy@ Much help from guenther@, thib@, tedu@, oga@, and others. ok deraadt@, naddy@
2011-07-12Clarify that exactly one of O_RDONLY, O_WRONLY, and O_RDWR must beMatthew Dempsky
specified when calling open(2).
2011-07-12document O_CLOEXEC and O_DIRECTORYMatthew Dempsky
2011-07-08Support sending struct info to kdump. So far for struct stat andOtto Moerbeek
struct sockaddress; mostly from freebsd. ok deraadt@ tedu@ nicm@
2011-07-07timed's time is up. use ntpd(8). Even our own fossil developersTheo de Raadt
switched a while back. ok miod, kettenis
2011-07-04tweak previous;Jason McIntyre
2011-07-04Implement an idle timeout for the socket splicing. A new `sp_idle'Mike Belopuhov
field of the `splice' structure can be used to specify a period of inactivity after which splicing will be dissolved. ETIMEDOUT error retrieved with a SO_ERROR indicates the idle timeout expiration. With comments from and OK bluhm.
2011-05-02forgotten in previous;Jason McIntyre
2011-05-02document SO_RTABLE; with suggestions and ok jmc, claudioMike Belopuhov
2011-04-29remove dead Xrs to update.8;Jason McIntyre