summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* rob pierce spotted a mistake left by jmcderaadt2015-11-181-3/+3
|
* minor tweaks;jmc2015-11-162-4/+4
|
* Permit revoke(2) for a pledge "rpath tty"deraadt2015-11-161-2/+9
| | | | ok millert semarie tedu guenther
* Only perform revoke(2) on tty cdevs. Others paths return ENOTTY.deraadt2015-11-161-6/+13
| | | | ok millert semarie tedu guenther
* update NAME section to include all documented functions,jmc2015-11-102-6/+15
| | | | | | or otherwise change Dt to reflect the name of an existing function; feedback/ok schwarze
* Split the intra-thread functionality from kill(2) into its own syscallguenther2015-11-103-8/+112
| | | | | | | | | | | | thrkill(2), rolling the kill(2) syscall number with the ABI change to avoid breaking binaries during during the transition. thrkill(2) includes a 'tcb' argument that eliminates the need for locking in pthread_kill() and simplifies pthread_cancel(). Switch __stack_smash_handler() to use thrkill(2) and explicitly unblock SIGABRT. Minor bump to both libc and libpthread: make sure you install a new kernel! ok semarie@
* libc.so can't be unloaded, so move the hidden atexit() and pthread_atfork()guenther2015-11-101-1/+15
| | | | | | | | | | | stubs for the executable from crtbegin.o into libc, which lets them be excluded from static links that don't use them. For this, drop the normal crt{begin,end}S.o from libc.so: the .init and .fini sections for libc aren't called at the right times anyway, so it's good that they're unused. libc.so just needs __guard_local and the .note.openbsd.ident section, so add them to stack_protector.c for now (this will be improved) "good time" deraadt@
* add missing NAME entries;jmc2015-11-074-12/+29
|
* Remove needless comma.mmcc2015-11-061-3/+3
|
* Improve explanations throughoutderaadt2015-11-031-108/+79
|
* systrace should work nowtedu2015-11-031-8/+2
|
* kill 0 has worked for ages, no idea how the man page could be so innacurate so long; ok guentherderaadt2015-11-021-11/+2
|
* replace "can not" with "cannot";jmc2015-11-011-3/+3
|
* update text to be more like posix, in particular wrt length = 0tedu2015-10-291-18/+9
|
* Move the _atfork_list definition to atexit.c so that the fork syscall stubguenther2015-10-251-4/+1
| | | | | | doesn't get pulled into all static executables ok millert@ jca@
* Unify all the errno names inbluhm2015-10-241-4/+4
| | | | | | | | - include comment - libc errlist - nls C msg - man page OK tedu@
* remove a paste error and get section numbers right for sysctl(3);jmc2015-10-241-5/+4
|
* Merge the sigaction() and sigprocmask() overloads/wrappers from libpthreadguenther2015-10-234-4/+124
| | | | | | | | | into libc, and move pthread_sigmask() as well (just a trivial wrapper). This provides consistent handling of SIGTHR between single- and multi-threaded programs and is a step in the merge of all the libpthread overloads, providing some ASM and Makefile bits that the other wrappers will need. ok deraadt@ millert@
* Add 3 new pledge requests. "ps" exposes enough sysctl information forderaadt2015-10-231-2/+24
| | | | | | | ps-style programs (there are quite a few in the tree, including tmux). "vminfo" exposes a bit more system operation information, which many observation programs want (such as top). settime allows setting the system time, and will be used to pledge-protect the last ntpd process.
* Remove dnssocket() and dnsconnect(), since we decided to use a SOCK_DNSderaadt2015-10-231-3/+3
| | | | | flag instead. ok guenther tedu semarie
* document "id" request; from Gregor Bestderaadt2015-10-221-2/+16
|
* Document SOCK_DNS flagderaadt2015-10-201-2/+13
| | | | ok guenther tedu semarie
* Remove old tame() stubderaadt2015-10-192-18/+2
|
* create libc stubs for dnssocket() and dnsconnect()deraadt2015-10-181-3/+3
|
* Document flock requestmillert2015-10-141-2/+12
|
* new sentence, new line;jmc2015-10-131-5/+6
| | | | do not Xr self;
* satisfy jmc!deraadt2015-10-121-6/+5
|
* Add details about a variety of semantics; going to keep adding and thenderaadt2015-10-121-11/+51
| | | | reevaluate the direction of this manual page a bit later.
* Make it clear that umask ignores everything but the rwx bits.millert2015-10-121-8/+15
| | | | OK deraadt@
* pledge wasn't called pledge in 5.8, and it was disabled;schwarze2015-10-121-3/+3
| | | | issue noticed by tim@, solution suggested by deraadt@
* make description of ERRORS more complete;schwarze2015-10-121-4/+11
| | | | | diff from Benny Lofgren <bl dash lists at lofgren dot biz>; ok nicm@
* Document that execve(2) resets SIGCHLD to SIG_DFLguenther2015-10-112-8/+21
| | | | wordsmithing and ok jmc@
* Prefer .Fa over .Em for struct membersguenther2015-10-112-6/+6
| | | | ok jmc@
* Document that bind(2) and connect(2) ignore the incoming sa_lenguenther2015-10-112-6/+14
| | | | | suggest by and ok deraadt@ wordsmithing jmc@
* do not use weak; plus this dies next weekderaadt2015-10-091-2/+1
|
* oops, typo spotted in temporary .c file, by semariederaadt2015-10-091-2/+2
|
* tame -> pledge conversion, in libc. I should crank libc, but am cheatingderaadt2015-10-093-17/+34
| | | | | | hoping things go well. The old symbol is faked via a stupid stub function, until next major crank when it can be removed. I am expecting guenther to scream at me.
* mention sendto(2) destination address restriction for "rw"djm2015-10-041-2/+7
| | | | subset; ok deraadt, feedback & ok jmc
* implement new "prot_exec" tame(2) request:semarie2015-09-301-3/+15
| | | | | | | | | | | - by default, a tamed-program don't have the possibility to use PROT_EXEC for mmap(2) or mprotect(2) - for that, use the request "prot_exec" (that could be dropped later) initial idea from deraadt@ and kettenis@ "make complete sense" beck@ ok deraadt@
* oops - avoid Xr to self; sorry sebastien...jmc2015-09-261-2/+2
|
* mentions that using systrace(4) on a tame(2) program isn't possible.semarie2015-09-261-2/+8
| | | | | | with big help from jmc for phrasing. ok jmc@
* add a small hint that you'll get EBUSY if you forget to wait. ok guenthertedu2015-09-241-3/+3
|
* Add STANDARDS section and another EINVAL reasonguenther2015-09-211-2/+12
|
* KNFguenther2015-09-141-2/+3
|
* Rename __sysctl syscall to just sysctl, as the userland wrapper is no longerguenther2015-09-131-4/+4
| | | | | | necessary ok deraadt@ jsing@
* Make these timer_* stubs weak symbolsguenther2015-09-125-16/+19
| | | | Provide declarations to reduce noise when using -Wmissing-prototypes
* Use PROTO_NORMAL() on __syscall to go direct, adjusting the declarationguenther2015-09-1110-77/+55
| | | | | | | to eliminate some casts. Retire some uses of old-style STUB* macros where superseded by namespace.h bits tweaks and ok deraadt@
* change remaining mentions of "flags" to "request" and adapt textderaadt2015-09-111-7/+7
| | | | nearby. Spotted by Ross Richardson.
* Pull in namespace.h when building all .c files using gcc's -include option,guenther2015-09-101-5/+3
| | | | | | | | so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough). ok deraadt@
* use .In rather than .Fd #includeschwarze2015-09-1053-190/+190
|