summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not use an uninitialized value when determining the signvisa2017-10-151-4/+4
| | | | | | | | | | of a denormal result of ldexp(3). The bug was found when investigating why denormal results of pow(3) can have an incorrect sign on loongson. pow(3) misbehaviour reported and fix tested by juanfra@ No objection from deraadt@
* Add STANDARDS: denis@ spotted that it was missing.schwarze2017-10-121-2/+19
| | | | OK deraadt@ jca@ jmc@
* Document fktrace(2) more completely, including separation of errors.guenther2017-10-081-19/+69
| | | | | | Add a few errors that were previously undocumented. ok jmc@
* Add fktrace to the NAME sectionguenther2017-10-071-3/+4
| | | | ok jmc@
* Document that connect(2) and sendto(2) may return with errnobluhm2017-10-052-5/+7
| | | | | EADDRNOTAVAIL if local address is not available. OK deraadt@ millert@
* do not return f() where f is a void function; loop var type fixotto2017-10-051-4/+5
|
* Use dprintf instead of snprintf/writeotto2017-10-051-82/+36
|
* iscntrl(0) is != 0 at least since Version 7 AT&T UNIX, and POSIXschwarze2017-10-041-3/+3
| | | | | | | requires that, too (in XBD 7.3.1), even though the C standard leaves it implementation-defined; found during my kcgi audit on behalf of CAPEM; OK deraadt (stupid me forgot to commit before lock).
* pasto in function name in the SYNOPSIS; from semarie@schwarze2017-10-041-3/+3
|
* Document how ioctl(2) LIOCSFD on /dev/klog registers a socket pairbluhm2017-09-271-2/+19
| | | | | to receive sendsyslog(2) messages. discussed with martijn@; OK jmc@ deraadt@
* sendsyslog should take a const char * everywhere.espie2017-09-251-3/+3
| | | | okay bluhm@, deraadt@
* Kill unused functionjca2017-09-231-9/+1
| | | | Spotted by krw@
* Make delayed free non-optional and make F do an extensive double free check.otto2017-09-231-21/+26
| | | | ok tb@ tedu@
* tweak previous: remove trailing blank and improve a wording;schwarze2017-09-211-4/+4
| | | | requested by jmc@
* Properly document the typical write(2) loop,schwarze2017-09-201-16/+18
| | | | | | and delete misleading parts from the CAVEATS; issue reported by <ScottCheloha at gmail dot com> on bugs@; OK espie@ millert@
* Document readdir_r() return value and update style of the examplemillert2017-09-181-6/+9
| | | | code. Adapted from a diff by Ross L Richardson.
* __progname has type char *, we cannot change its type without causingotto2017-09-171-3/+3
| | | | | havoc all over the place. So add some casts to silence the compiler. ok deraadt@ guenther@
* mapalign returns MAP_FAILED for failuer; from George Koehlerotto2017-09-121-2/+2
|
* Update the documentation regarding /dev/mem and /dev/kmem;schwarze2017-09-121-2/+4
| | | | | | Theo already clamped down on these devices last year. Triggered by a question from Nan Xiao <xiaonan830818 at gmail dot com>. OK deraadt@
* check double free before canary for chunks; ok millert@otto2017-09-111-5/+5
|
* shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to beguenther2017-09-104-10/+11
| | | | | | | cancellation points in POSIX, so change them to invoke the non-cancellation point versions of open(), close(), nanosleep(), and write() ok deraadt@ millert@
* Fix spelling of 4.3BSD-Net/2.schwarze2017-09-101-3/+3
|
* sysctl strings include the termingating NUL character in both in and out lengthstom2017-09-101-2/+4
| | | | | | Prompted by Nan Xiao noticing the redundancy of bzero+termination - thanks. ok deraadt@
* Remove unused 32bit version of elf_hash().mpi2017-09-053-62/+2
| | | | | | Riding previous libc bump. ok kettenis@
* New POSIX xlocale implementation written from scratch.schwarze2017-09-0571-1030/+2944
| | | | | | | | | | | | Complete in the sense that all POSIX *locale(3) and *_l(3) functions are included, but in OpenBSD, we of course only really care about LC_CTYPE and we only support ASCII and UTF-8. With important help from kettenis@, guenther@, and jca@. Repeated testing in ports bulk builds by naddy@. Additional testing by jca@, sebastia@, dcoppa@, and others. OK kettenis@ dcoppa@, and guenther@ on an earlier version. Riding guenther@'s libc/librthread major bump.
* Add additional errno values required by POSIX.jsg2017-09-052-3/+15
| | | | ok jca@ kettenis@ deraadt@
* Move mutex, condvar, and thread-specific data routes, pthread_once, andguenther2017-09-0519-879/+428
| | | | | | | | pthread_exit from libpthread to libc, along with low-level bits to support them. Major bump to both libc and libpthread. Requested by libressl team. Ports testing by naddy@ ok kettenis@
* delete pointless .Tn ASCII found by jca@ with mandoc -Tlintschwarze2017-09-021-5/+4
|
* Mention strtok_r in STANDARDSjca2017-08-311-2/+6
| | | | POSIX 2001 instead of POSIX.1c suggested by millert@ and jmc@, ok jmc@
* It is confusing to talk about priorities being ordered from highmillert2017-08-291-6/+6
| | | | | | | to low when they are actually numbered in the opposite (numerical) order. Use "ordered by decreasing importance" instead. Also try to make it clear that LOG_UPTO uses the numerical priorities where a larger value means a lower priority. OK jmc@
* isunordered() returns true if at least one of the arguments is NaNmillert2017-08-291-7/+3
| | | | OK espie@
* Remove mpool.libtp, it was part of the Berkeley DB tarball but notmillert2017-08-221-746/+0
| | | | | | present int the CSRG libc. It is only of historical interest and, given the amount of time passed, probably not even that anymore. OK deraadt@, prodded by miod@
* two MALLOC_STATS only tweaks; one from David CARLIER, the other found by clangotto2017-08-201-8/+4
|
* Use 0xcc trapsleds instead of default/nop/0xcc in BTC alignmentsderaadt2017-08-193-6/+6
|
* Don't need .text before ENTRY(), also minor spacing cleanupsderaadt2017-08-194-13/+8
|
* Put _map table into .rodata instead of .textderaadt2017-08-192-5/+4
|
* s/DEF_STD/DEF_STRONG/ to match namespace.h differences between librthreadguenther2017-08-155-29/+29
| | | | and libc
* Wrap <sched.h> and <sys/futex.h> so that internal calls go directguenther2017-08-152-0/+50
|
* Sort headers per style(9)guenther2017-08-1510-34/+31
|
* Copy files from ../librthread in preparation for moving functionalityguenther2017-08-151-0/+49
| | | | | | | from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
* Copy files from ../librthread in preparation for moving functionalityguenther2017-08-1523-0/+3529
| | | | | | | from libpthread to libc. No changes to the build yet, just making it easier to review the substantive diffs. ok beck@ kettenis@ tedu@
* fmt0 is a wchar_t *, so use %ls to reportderaadt2017-08-151-3/+3
|
* Use sendsyslog() directly instead of syslog_r() for the "backwards memcpy"guenther2017-08-141-3/+12
| | | | | | | messages, to avoid pulling in piles of other machinery unnecessarily problem observed by schwarze@ ok deraadt@ millert@
* add fktrace to libctedu2017-08-132-5/+14
|
* Minimize #includes, particularly to avoid thread_private.hguenther2017-08-124-13/+5
| | | | ok tedu@
* Instead of hardcoding a partial dependency list for the syscall stub objects,guenther2017-08-121-28/+26
| | | | calculate them as done for other objects
* Stop running nd6_expire every second.florian2017-08-081-7/+2
| | | | | We know when pltime or vltime decrease to zero. Run nd6_expire then. Input & OK mpi, bluhm
* Kernel sendsyslog(2), libc syslog(3), and syslogd(8) restrict andbluhm2017-08-081-2/+2
| | | | | | truncate the length of a syslog message to 8192 bytes. Use one global define LOG_MAXLINE for all of them. OK deraadt@ millert@
* Since sendsyslog(2) handles the LOG_CONS parameter, the variablebluhm2017-08-071-4/+2
| | | | | conp in syslog(3) is unused. Remove dead code. OK jca@ deraadt@
* We only support ASCII and UTF-8, so we never need toschwarze2017-08-053-20/+3
| | | | | | change _ctype_, _tolower_tab_, and _toupper_tab_. No functional change. Suggested by and OK kettenis@