summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Nuke net.inet6.icmp6.rediraccept and allow redirects on interfacesflorian2014-08-271-8/+2
| | | | | | | with autoconf enabled. If one is doing SLAAC one does already trust link local icmp6 so the policy for icmp6 redirects should be the same. pointed out by & OK bluhm@; OK henning@
* Delete secret or secret-derived data with explicit_bzero.doug2014-08-251-13/+13
| | | | | concept ok deraadt@ diff looks ok tedu@
* unbind;jmc2014-08-235-27/+16
|
* POSIX/FreeBSD/NetBSD/Linux/etc agree -- blk[size|cnt]_t is the bomb.krw2014-08-221-3/+3
| | | | | | | | | | | | So add the types blksize_t (a.k.a. int32_t) and blkcnt_t (a.k.a. int64_t). Use blkcnt_t in stat.h since the base type (int64_t) does not change. blksize_t in stat.h will follow after the tree is audited for signed issues, since the base type will change from u_int32_t to a POSIX compliant int32_t. Guidance and feedback from guenther@ ok millert@
* Remove userland bits related to the crypto(4) interface; ok deraadtmikeb2014-08-201-21/+3
|
* a small tweak to improve malloc in multithreaded programs. we don't needtedu2014-08-181-7/+21
| | | | | | | to hold the malloc lock across mmap syscalls in all cases. dropping it allows another thread to access the existing chunk cache if necessary. could be improved to be a bit more aggressive, but i've been testing this simple diff for some time now with good results.
* Add mention of execvpe() setting errno on failure.guenther2014-08-181-3/+4
| | | | from Justus Baumgartner (meddev50 (at) gmail.com)
* Cover execvpe() in the description of what the envp arg means.guenther2014-08-161-3/+5
| | | | | from Justus Baumgartner (meddev50 (at) gmail.com) ok jmc@
* Fixed typo in "distinct".tobias2014-08-161-3/+3
| | | | ok jmc@
* XPG requires insque() and remque() to work with linear lists and not justguenther2014-08-155-101/+26
| | | | | | | | | circular lists. Amazingly, they managed to extend the requirements to no longer match the behavior of the VAX instructions they were modeled after, so the trivial VAX ASM versions have to go. Nice job breaking it, X/Open! Based on a diff from enh (at) google.com ok miod@
* Use O_CLOEXEC wherever we open a file and then call fcntl(F_SETFD, FD_CLOEXEC)guenther2014-08-151-3/+2
| | | | | | | on it, simplifying error checking, reducing system calls, and improving thread-safety for libraries. ok miod@
* fixed overrid(d)en typotobias2014-08-141-2/+2
| | | | millert@ and jmc@ agree that "overriden" is wrong
* AF_IMPLINK and AF_BLUETOOTH are goneguenther2014-08-101-9/+3
|
* Only need <stdint.h> and not all of <inttypes.h> hereguenther2014-08-102-4/+4
|
* Make queries using the search list for hostname lookups fail witheric2014-07-234-5/+31
| | | | | | | | | | NO_DATA/EAI_NODATA when the hostname param is an empty string. So far, they were using the entries in the search list with no additional component, which is not really expected. reported by jsing@ and a few others ok deraadt@, "makes sense" jsing@
* Add pthread_sigmask() and raise() to the list of async signal safematthew2014-07-212-2/+6
| | | | | | functions, per POSIX Issue 7 ok deraadt
* missing newlinederaadt2014-07-211-1/+2
|
* Fix typo: s/lstate/lstat/matthew2014-07-212-6/+6
|
* Switch from <sys/endian.h> or <machine/endian.h> to the new,guenther2014-07-2117-38/+35
| | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@
* Move more OS-specific functionality to arc4random.h headers.bcook2014-07-202-6/+14
| | | | | | | | Move <sys/mman.h> and raise(SIGKILL) calls to OS-specific headers. On OpenBSD, move thread_private.h as well to arc4random.h. On Windows, use TerminateProcess on getentropy failure. ok deraadt@
* From ISO/IEC 9899:1999 and 9899:201x,guenther2014-07-203-12/+12
| | | | | | | | | 6.11.5 - Storage-class specifiers: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
* arc4random re-seeds with getentropy() now; ok deraadt@ jmc@naddy2014-07-191-3/+3
|
* Document that abort() is async signal safe now that it doesn't flushmatthew2014-07-192-13/+12
| | | | | | | | | | stdio buffers While here replace "SUSv[67]" with "POSIX Issue [67]" and update signal(3) to mention that pselect() and ppoll() are async signal safe like sigaction(2) already does. ok guenther
* Change _rs_allocate so it can combine the two regions (rs and rsx)deraadt2014-07-192-28/+25
| | | | | | | | | | into one if a system has an awesome getentropy(). In that case it is valid to totally throw away the rsx state in the child. If the getentropy() is not very good and has a lazy reseed operation, this combining is a bad idea, and the reseed should probably continue to use the "something old, something new" mix. _rs_allocate() can accomodate either method, but not on the fly. ok matthew
* Oops, getentropy() is an "extension interface", not a "base interface"matthew2014-07-182-4/+5
| | | | | Also, update the async signal safe list in signal(3) too (reminded by deraadt)
* Document that getentropy() is async signal safe.matthew2014-07-181-2/+3
| | | | Pointed out by Jean-Philippe Ouellet
* As discussed with beck, tweak the wording for getentropy slightly soderaadt2014-07-181-5/+4
| | | | | that a certain kind of people don't go bonkers over "what is entropy". it is what it is, input to PRNG's.
* Remove "const" from the lsearch(3) manual's synopsis too.matthew2014-07-181-3/+3
| | | | Reminded by Rafael Neves
* zap trailing whitespace;jmc2014-07-181-3/+3
|
* Change lsearch()'s "base" argument to require a non-const pointer tomatthew2014-07-181-2/+2
| | | | | | | align with POSIX and other systems. Pointed out by Elliott Hughes on tech ok deraadt
* Seperate arc4random's os-dependent parts into static inline functions,deraadt2014-07-182-36/+57
| | | | | making it much easier for libressl -portable to fill in the gaps. ok bcook beck
* it is 2014, and we still need to encourage people away from srand()deraadt2014-07-172-5/+14
| | | | and random(). Sigh.
* "Race-free because we're running single-threaded in a newderaadt2014-07-171-1/+5
| | | | | address space, and once allocated rs is never deallocated." document the forkhandler to save reviewers time, with matthew
* zap trailing newlines; "go for it" deraadtokan2014-07-164-6/+2
|
* #ifdef wrap the _rs_forkhandlerderaadt2014-07-161-1/+3
|
* added handler for an atfork hook from kettenis@bcook2014-07-161-1/+10
| | | | ok deraadt@ beck@ kettenis@
* international currency locale rules as per POSIX.1-2008pelikan2014-07-143-5/+49
| | | | | | required for libc++ ok guenther afresh1
* crank major for syslog_r(3) using sendsyslog(2). new kernel needed, too.deraadt2014-07-141-1/+1
|
* Convert syslog_r(3) to using sendsyslog(2). This ensures that syslog_r(3)deraadt2014-07-141-77/+5
| | | | | | can be used anywhere (signal handler, stack protector fault handler) as long as the format string does not contain floating point. ok tedu miod beck
* add missing whitespace between .Fa macro argument and trailing punctuationschwarze2014-07-131-3/+3
|
* one .Fn argument per function argumentschwarze2014-07-131-8/+8
|
* yes indeed, it returns void *. from Jean-Philippe Ouellet, i also hadderaadt2014-07-131-3/+3
| | | | this lurking in a tree
* tweak previous;jmc2014-07-131-2/+2
|
* missing bracket in previous;jmc2014-07-131-2/+2
|
* Document KERN_PROC_NOBROADKILLclaudio2014-07-131-2/+6
|
* Update BUGS section.miod2014-07-131-4/+6
|
* oops, i deleted the wrong wordtedu2014-07-131-2/+2
|
* remove a lie spotted by guenthertedu2014-07-131-5/+4
|
* once srandomdev() is called, switch to using arc4random() but mask off thetedu2014-07-131-12/+10
| | | | | high bit as required by posix. wouldn't want to break any standards. idea and ok deraadt
* Split out ntoh[ls] and hton[ls] into their own manpage.guenther2014-07-133-136/+199
| | | | | | Update byteorder(3) to cover the new functions in <endian.h> ok deraadt@ millert@