summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2017-06-10Fix broken markup of function pointer invocations; foundIngo Schwarze
with mandoc -Tlint. While here, delete .Tn macros.
2017-06-10fix a sentence that used unusual terminology, the wrong macro,Ingo Schwarze
and broken delimiter syntax; found with mandoc -Tlint
2017-06-07Add an acct(5) flag for pledge violations. Then lastcomm(1) showsAlexander Bluhm
when something went wrong. This allows to monitor whether the system is under attack and that the attack has been prevented by OpenBSD pledge(2). OK deraadt@ millert@ jmc@
2017-06-01Remove branch prediction hint from conditional branch instruction.Christian Weisgerber
These hints are not recognized by clang's builtin assembler. From the corresponding amd64 change. ok visa@ kettenis@
2017-05-31Add support for EV_RECEIPT and EV_DISPATCH flagsMike Belopuhov
From FreeBSD via Jan Schreiber <jes at posteo ! de>, thanks! OK tedu, bluhm
2017-05-31install futex(2), ok mpiStuart Henderson
2017-05-30getrlimit is now allowed by "stdio"Theo de Raadt
2017-05-30Don't fall back to heapsort() if we would otherwise switch toTodd C. Miller
insertion sort (when the number of elements is < 7).
2017-05-29sort SEE ALSO;Jason McIntyre
2017-05-29sort SEE ALSO;Jason McIntyre
2017-05-29It is distasteful to have manual pages which don't refer to realTheo de Raadt
function calls, but instead a "class" of functions like "sigsetops". Rename to sigaddset", and while at it improve documentation in sigprocmask(2) to point to it. ok tedu
2017-05-27move sha224_initial_hash_value[] under !SHA2_SMALL; ok deraadt@ millert@Christian Weisgerber
2017-05-24Support swapping 32-bit aligned elements on 64-bit platforms.Todd C. Miller
Previously they would be swapped a byte at a time when sizeof(int) != sizeof(long). Idea from FreeBSD.
2017-05-20Document that qsort falls back to heapsort() if the recursion depthTodd C. Miller
exceeds 2 lg N and add a reference to the introsort paper.
2017-05-20Use David Musser's introsort algorithm to fall back to heapsort(3)Todd C. Miller
when the recursion depth reaches 2*lg(n + 1). This avoids quicksort's quadratic behavior for pathological input without appreciably changing the average run time.
2017-05-17The BSD qsort() performs tail recursion elimination on the secondTodd C. Miller
side of the array being partitioned to save on stack space. Greater savings can be gained by choosing recursion for the smaller side of the partition and eliminating recursion for the larger side. This also results in a small but measurable performance gain. OK otto@ schwarze@
2017-05-15Typo: freezeo -> freezeroTheo Buehler
From "fenderq" on freenode via tj@
2017-05-13- fix bug wrt posix_memalign(3) of blocks between half a page and a pageOtto Moerbeek
- document posix_memalign() does not play nice with reacallocarray(3) and freezero(3)
2017-05-08Fix exponential CPU use with repeated '*' operators by changing '*'Todd C. Miller
handling to be interative instead of recursive. Fix by Yves Orton, ported to OpenBSD glob.c by Ray Lai. OK tb@
2017-05-08Update STANDARDS section, these are now in XSI BASE.Todd C. Miller
2017-05-07killpg() is covered by XSI so add a STANDARDS section to that effectTodd C. Miller
and document that handling of process group 0 is not specified by the standard.
2017-05-07Don't allow a negative process group ID, it would turn into aTodd C. Miller
process ID when negated.
2017-05-06Move info about group handling via a negative pid into the listTodd C. Miller
with the other pid-specific details.
2017-05-05Document what happens when sending a signal to the calling process.Todd C. Miller
OK jmc@
2017-05-05Mention that the signal mask does not affect what signals areTodd C. Miller
discarded by the kernel. Document that at least one pending signal will be delivered before sigprocmask() returns.
2017-05-04Merge headers defining identifiers from sysctl.8 into sysctl.3. Shorten andTheo Buehler
update their descriptions. In sysctl.8 refer to /etc/sysctl.conf in FILES. discussed with and ok jmc
2017-05-03make the description strings match the codeTheo de Raadt
2017-05-01Document that wait3/waitpid can receive SIGCHILD when wpid doesTodd C. Miller
not exist or is not a child of the calling process. Document what happens when SIGCHLD is ignored or SA_NOCLDWAIT is set in sa_flags (this part from FreeBSD). OK guenther@
2017-04-30Add futex(2) shim, bump minor.Martin Pieuchot
Inputs from guenther@, ok kettenis@, visa@
2017-04-28Reference the "Futexes Are Tricky" paper.Martin Pieuchot
With schwarze@
2017-04-28errant space;Jason McIntyre
2017-04-28Document futex(2) with a lot of inputs from schwarze@Martin Pieuchot
2017-04-27ntohl() returns uint32_t so it cannot be < 0. Since we're storingTodd C. Miller
the result in an int check for > INT_MAX instead. OK bluhm@
2017-04-27Remove "len < 0" check; len is socklen_t (uint32_t) so can't beTodd C. Miller
negative. Quiets a warning from clang. OK bluhm@
2017-04-23Rearrange text a bit to make it clear what "discarded" means; ok jmc@ deraadt@Otto Moerbeek
2017-04-22For small allocations (chunk) freezero only validates the givenOtto Moerbeek
size if canaries are enabled. In that case we have the exact requested size of the allocation. But we can at least check the given size against the chunk size if C is not enabled. Plus add some braces so my brain doesn't have to scan for dangling else problems when I see this code.
2017-04-20Fix previous.Visa Hankala
2017-04-20Get TCB address using the RDHWR instruction instead of __get_tcb().Visa Hankala
This gives fast access to the address on systems that implement the UserLocal register. TCB caching is still used when running in the single-threaded mode in order not to penalize old systems. The kernel counterpart of this change must be in place before using this diff! With guenther@
2017-04-18don't forget to fill in canary bytes for posix_memalign(3); reported byOtto Moerbeek
and ok jeremy@
2017-04-17consictently use .Dv NULL and a few other tweaks; ok schwarze@Otto Moerbeek
2017-04-17whitespace fixesOtto Moerbeek
2017-04-16Always return nonzero from _longjmp too.Mark Kettenis
ok jsg@
2017-04-15Document RB_TIMEBAD; delete RB_* that are obsolete/unimplementedPhilip Guenther
ok visa@ deraadt@
2017-04-14whitespaceTheo de Raadt
2017-04-14correct path; from Klemens NanniTheo de Raadt
2017-04-13Xr sigprocmask(2) not the obsolete sigsetmask(3)Todd C. Miller
2017-04-13Use recallocarray in getdelim/getline to clear memory on buffer resizes,Bryan Steele
inspired by a similar change to fgetln. ok deraadt millert
2017-04-13allow clearing less than allocated and document freezero(3) betterOtto Moerbeek
2017-04-12SipHash_Final() was assuming the digest was 64-bit aligned, resulting inTheo de Raadt
misaligned memory accesses with armv7 ramdisk -Os bsd.rd ping ok florian millert
2017-04-12New strstr() implementation from musl libc by Rich Felker. ThisTodd C. Miller
version uses the two-way string matching algorithm and is faster than the old implementation. With this change, ports that check for strstr having linear complexity time strstr will no longer replace the libc strstr with a private version. OK deraadt@ espie@