summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Delete an inexplicable commentguenther2015-10-041-2/+2
|
* Initially eric developers asr as a side-load style library for async DNS.deraadt2015-10-032-65/+15
| | | | | | | When it was integrated as the main resolver, a bunch of strange initialization code remained. Start whittling away at this, piece by piece, to make it more clear. ok eric
* missing asr* -> _asr* symbol rename for building with debug codeeric2015-10-033-17/+17
| | | | ok jca@
* make a && && & block more readable. no binary change.deraadt2015-10-021-4/+7
| | | | discussed with otto
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-0114-44/+19
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* 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@
* Delete the final, inscrutable NOSTRICT and VARARGS lint commentsguenther2015-09-292-4/+2
| | | | ok millert@
* seperate random functions into their own blockderaadt2015-09-281-20/+22
|
* xdr_ypresp_all_seq() does not need to be exported by libc, we can make itderaadt2015-09-282-5/+4
| | | | | | | | local static. (Does not need to be exported by librpcsvc either, since it is pre-rpcgen and simply %-commented). A few callers use this via yp_all() -- that interface remains untouched. ports trawl by sthen guenther watched me gnash my teeth in croatia
* oops - avoid Xr to self; sorry sebastien...jmc2015-09-261-2/+2
|
* lint is dead: delete useless LINTLIBRARY commentsguenther2015-09-262-4/+2
| | | | ok millert@
* 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@
* correct a range problem in citrus-utf8 version of wcrtomb(3), in order to matchsemarie2015-09-261-2/+2
| | | | | | | | | | RFC 3629 (limiting the range of UTF-8 to 0x10FFFF). it is the counterpart of a previous commit correcting mbrtowc(3). problem spotted by stsp ok bentley@ stsp@
* add a small hint that you'll get EBUSY if you forget to wait. ok guenthertedu2015-09-241-3/+3
|