summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* libc stub is gone, so update the description to cover the remaining useguenther2016-05-091-20/+19
|
* Remove sigreturn declaration and the now-unused libc syscall stubguenther2016-05-091-2/+2
|
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-0739-55/+1176
| | | | | | | | | | | | | | | | | This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
* document pledge(2); from rob piercejmc2016-04-171-2/+6
|
* Revert the recent changes to pledge.2.tb2016-04-131-74/+37
| | | | Requested by deraadt@
* tweak previous;jmc2016-04-121-2/+2
|
* documents "mcast" promisesemarie2016-04-121-1/+16
| | | | with few nits from and ok schwarze@
* documents "route" promisesemarie2016-04-121-3/+23
| | | | | | | initial diff from Rob Pierce rob ! 2keys. ca with some enhancements from jmc@, schwarze@ and me ok jmc@ schwarze@
* Clean up and complete the lists of allowed syscalls.tb2016-04-101-36/+38
| | | | | | | | | With input from schwarze@ and semarie@. "go ahead" schwarze@ (documentation perspective only, without checking factual accuracy) ok semarie@ on an earlier version
* Document (near) standards conformanceguenther2016-04-091-4/+21
| | | | based on diff by mmcc@
* Turd polish: use HIDDEN= instead of PSEUDO= for ptrace syscall stub, toguenther2016-03-302-8/+7
| | | | make its underlying symbol name look like others.
* Eliminate userspace caching by getlogin_r/setlogin; make the getloginguenther2016-03-301-7/+7
| | | | | | | | syscall behave exactly like userspace getlogin_r() and rename it to match. Eliminate the reduced-to-no-op wrappers of the syscalls. Eliminate the unnecessary per-thread static buffering by getlogin(). ok kettenis@ deraadt@
* some Xr adjustment to catch up with MLINKS removal;jmc2016-03-302-7/+7
|
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-75/+1
| | | | | | | | | | | | correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
* Add EISDIR to ERRORS and fix ETXTBSY description; from Piotr Durlej.millert2016-03-271-3/+5
| | | | OK jmc@
* Improve the sendsyslog(2) man page.bluhm2016-03-221-12/+23
| | | | OK deraadt@ guenther@ jmc@
* tweak previous;jmc2016-03-221-4/+4
|
* Rename the system call sendsyslog2 to sendsyslog. Keep the old onebluhm2016-03-213-18/+9
| | | | | | as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
* __thrsleep.2 is contained in section 2natano2016-03-201-3/+3
| | | | ok jmc
* It's libpthread, not librthread, and __tfork(2) lets you set the TCBguenther2016-03-201-9/+12
| | | | address of the new thread
* Add STANDARDS and HISTORY blurbs for SOCK_{NONBLOCK,CLOEXEC,DNS}guenther2016-03-192-4/+36
|
* This is thrkill, not __thrsigdivertguenther2016-03-191-3/+3
|
* environ and __progname are not declared in a public header; declare themguenther2016-03-131-2/+2
| | | | | | in libc's hidden/stdlib.h instead of in each .c file that needs one ok deraadt@ gsoares@ mpi@
* missing article in previous;jmc2016-03-111-2/+2
|
* pledge: define the meaning of passing NULL to one arguments of pledge(2) as "Isemarie2016-03-111-2/+11
| | | | | | | | | | don't want to change the current value" it changes only the `request' argument behaviour when NULL is passed: previously it was traited as "" was passed. with help from jmc@ for man-page OK tb@ on previous version
* un-vax;jmc2016-03-101-6/+5
| | | | i've also changed some "and" to "no", since i think it reads better;
* The range of PIDs has changed, and always included zero.guenther2016-03-061-3/+3
| | | | Based on diff from Michal Mazurek (akfaew (at) jasminek.net)
* No more compat emulations, so remove ktrace EMUL records and the baggageguenther2016-03-061-4/+2
| | | | | | for generating and parsing them. ok mpi@ naddy@ millert@ deraadt@
* Document the PT_GET_THREAD_{FIRST,NEXT} requestsguenther2016-03-061-2/+24
| | | | From Michal Mazurek (akfaew (at) jasminek.net)
* fruncate() returns EFBIG when length exceeds the max file size.natano2016-02-281-2/+6
| | | | ok mpi@
* Document sendsyslog2(2) in man page.bluhm2016-02-221-4/+29
| | | | from Rafael Neves; input jmc@; OK deraadt@
* Document how to use sndio in pledged programs.tim2016-02-111-2/+20
| | | | Input and OK jmc@ ratchov@ semarie@
* adjust some syscalls in proc & id; from Carlin Binghamderaadt2016-01-181-5/+9
|
* Replace "function call" with "function" when referring to a functionmmcc2016-01-091-3/+3
| | | | | | | (well, a syscall, but this is the established practice) in the general sense. ok jmc@
* drop "abort" promise, and make it the default behaviour.semarie2016-01-091-3/+3
| | | | | | | | | The current code has already setted it by default since 1.74 any pledge failure tries to make a coredump (default rules for coredump still applies: so setuid binaries don't create them locally). ok deraadt@
* add a bug that the path whitelist is not available at this time.tedu2016-01-061-2/+4
|
* Use "path" not "file" as the function arg to utimes() and utimensat().millert2016-01-051-8/+8
| | | | The DESCRIPTION section already referred to "path" in some places.
* Add missing second argument to FD_SET macro in example code snippet.tb2015-12-251-3/+3
| | | | | | Spotted and diff provided by d ! lowe () openmailbox ! org, thanks! ok schwarze@
* documents pledge(2) "dpath" promisesemarie2015-12-161-1/+6
| | | | | | with inputs from jmc@ ok jmc@ deraadt@
* in pledged process, setuid/setgid/sticky bits should be ignored.semarie2015-12-161-2/+4
| | | | | | enforce it for mkfifo(2) and mknod(2) (with "dpath" promise). ok deraadt@
* Remove the /usr/share/nls/ exception from pledge(2). The libcbluhm2015-12-031-9/+5
| | | | | native language support was deleted a month ago at u2k15. OK semarie@ deraadt@
* use strlcat instead of strlcpy with modified arguments. ok deraadt@canacar2015-12-011-6/+5
|
* Document that "tty" provides read-write access to /dev/tty too.millert2015-12-011-4/+9
| | | | OK deraadt@
* Send Aviion to same place as Nova IIderaadt2015-12-011-5/+5
| | | | discussed with jsg
* Mention ksh along with csh when job control is discussed. ok deraadt@mmcc2015-12-011-3/+6
|
* Add pledge "pf" which allows ioctls on pf(4). This will be used bybenno2015-11-291-2/+20
| | | | | relayd and other programs manipulating the packet filter. ok deraadt@
* Rather than using syslog(3) (which pulls in snprintf), creating the reportderaadt2015-11-251-4/+14
| | | | | | | | string using simpler strings functions and use sendsyslog2() directly. Also, use the LOG_CONS flag so that single-user reports are more clear. Use a buffer size of 1024 (from bluhm) discussed with guenther and matthew ok millert
* Add a syscall stub for sendsyslog2(2), and use it in syslog_r(3), passingderaadt2015-11-251-2/+3
| | | | | | LOG_CONS to the kernel. As a result, the /dev/console opening code can be removed. ok kettenis millert beck
* fix an error in NAME; ok schwarzejmc2015-11-241-3/+3
|
* point to mount_mfs(8), not mfs(8);jmc2015-11-231-3/+3
|