summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Document SOCK_DNS flagderaadt2015-10-201-2/+13
| | | | ok guenther tedu semarie
* Remove old tame() stubderaadt2015-10-193-20/+2
|
* Pull in <float.h> instead of declaring __flt_rounds() locallyguenther2015-10-181-3/+2
| | | | ok miod@ jsg@
* libc DNS functions will now use the new dnssocket() / dnsconnect()deraadt2015-10-181-3/+3
| | | | | | | | | | | system calls. These signal to the pledge kernel code that a DNS transaction is happening. These special sockets only work well with port 53 (there are some cute plans...). Programs calling pledge "inet" will not work! You need pledge "dns", and of course, you need a fairly fresh kernel. ok guenther kettenis tedu
* better placement for dnssocket/dnsconnectderaadt2015-10-182-8/+8
|
* create libc stubs for dnssocket() and dnsconnect()deraadt2015-10-182-4/+10
|
* Rename SYSEXIT() to SYSCALL_END() for consistency with most other archs.guenther2015-10-175-25/+14
| | | | | | No change in resulting object files ok millert@
* Move the last of the __DBINTERFACE_PRIVATE bits from <db.h> to libc's wrapperguenther2015-10-172-4/+50
| | | | | | and eliminate the now superfluous -D option ok kettenis@ millert@
* PROTO_NORMAL for pledge(); ok guentherderaadt2015-10-171-1/+2
|
* Check file sizes only for regular files. The current code breaks savecoretobias2015-10-161-3/+3
| | | | | | due to its kvm handling. ok deraadt
* Merge nlist out of boundary access fix with other nlist implementations.tobias2015-10-161-6/+7
| | | | | | While at it, merge style and typo fixes back into nlist(3), too. ok deraadt, jsing, millert
* Validate parsed ELF values to prevent out of boundary accesses.tobias2015-10-161-33/+44
| | | | | | | | While at it, return proper return value when encountering a stripped binary. Instead of -1 (illegal file), it should be the amount of symbols that were tried to be resolved. ok millert
* Document flock requestmillert2015-10-141-2/+12
|
* In rev 1.15 the sizeof argument was fixed in a strlcat() call butmillert2015-10-131-2/+2
| | | | | | the truncation check immediately following it was not updated to match. Not an issue in practice since the buffers are the same size. OK deraadt@
* Sync printf family return value with ISO C which specifies thatmillert2015-10-131-3/+3
| | | | | these functions return a negative value on failure. OK doug@ deraadt@
* new sentence, new line;jmc2015-10-131-5/+6
| | | | do not Xr self;
* Tighten the ranges in wcrtomb(3).bentley2015-10-131-2/+2
| | | | | | | | | | | | By definition, the range of valid Unicode code points is the union of U+0000..U+D7FF and U+E000..U+10FFFF (see Unicode 8.0.0, chapter 3.9). In UTF-16, the encoded values that would represent U+D800..U+DFFF are used for surrogate pairs. UTF-8 has no concept of surrogate pairs; attempting to treat them as regular code points violates the standard and makes no sense besides. ok stsp@
* 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.
* When isatty() was switched to F_ISATTY, the inline copy in ttyname()naddy2015-10-121-4/+2
| | | | was forgotten. Just call isatty(). ok deraadt@
* Make it clear that umask ignores everything but the rwx bits.millert2015-10-121-8/+15
| | | | OK deraadt@
* Make wcrtomb() more readable by weeding out range errors up front,schwarze2015-10-121-14/+11
| | | | | | | doing ASCII handling once rather than twice, and using <= rather than ((&~)==) obfuscation (which already caused a bug in the past). No functional change. Joint work with and OK stsp@ semarie@ bentley@
* 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@
* Do not insert whitespace into syntax displays, it's just confusing,schwarze2015-10-111-49/+23
| | | | | | | | except at the one place where it is indeed helpful. Add some missing .Cm macros. Remove some useless escaping, one needless .Xo, and an empty .No. Triggered by a much smaller patch from guenther@. OK jmc@ guenther@
* Fix empty .No macros, use .Pf to prefix delimiters to macros.schwarze2015-10-111-4/+4
| | | | | Based on a patch from guenther@, tweaked by me. OK jmc@ guenther@
* Document that execve(2) resets SIGCHLD to SIG_DFLguenther2015-10-113-11/+27
| | | | 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@
* Code points U+10000 to U+fffff are valid, too.schwarze2015-10-101-2/+2
| | | | | | Fixing a regression in wcrtomb(3) found with the mandoc testsuite that was caused by the last commit. OK semarie@ bentley@
* 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-094-19/+38
| | | | | | 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.
* fix conditionalseric2015-10-082-4/+4
| | | | ok deraadt@
* Handle case where no hint is passed in. Found as a crash of fdm by jturner@deraadt2015-10-082-4/+4
|
* Be explicit that the user is responsible for freeing the line buffermillert2015-10-071-4/+10
| | | | and show this in the example.
* getaddrinfo_async() shouldn't unconditionally intialize the resolverderaadt2015-10-073-4/+14
| | | | | | via _asr_use_resolver(). If the hint specifies for AI_NUMERICHOST, create a transient lookup context which won't try to open /etc/reslov.conf ok eric guenther
* getaddrinfo() should not res_init() unconditionally, but allow lowerderaadt2015-10-071-2/+3
| | | | | | layers to decide. The request could be AI_NUMERICHOST. [And the process could be tame()-constrained to not open /etc/resolv.conf] ok eric guenther
* Wrap <resolv.h> so that internal calls go directguenther2015-10-056-7/+61
| | | | ok millert@
* user land -> userland; from Rob Piercederaadt2015-10-051-2/+2
|
* mention sendto(2) destination address restriction for "rw"djm2015-10-041-2/+7
| | | | subset; ok deraadt, feedback & ok jmc
* Clarify a point. Adjust punctuation after discussion w/ jmc@guenther2015-10-041-3/+3
|
* Wrap <search.h> to make all the symbols there weakguenther2015-10-041-0/+35
|
* Wrap <spawn.h> to make all the symbols there weakguenther2015-10-041-0/+45
|
* wrap __ivaliduser_sa() so the internal call is direct (at least until weguenther2015-10-041-0/+2
| | | | stop exporting it)
* wrap _fwalk() so internal calls are direct (at least until we stopguenther2015-10-042-2/+4
| | | | exporting it)
* recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!)guenther2015-10-043-3/+7
| | | | so wrap them to make internal calls go direct
* getpeereid() and sockatmark() are neither used in libc nor in ISO C, so markguenther2015-10-041-1/+3
| | | | them deprecated and weak
* __fdnlist() is exported for libkvm, but the internal call can go directguenther2015-10-041-1/+3
|
* __xdrrec_getrec is in the reserved namespace, so it doesn't need to be weakguenther2015-10-041-2/+2
|