summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Save and restore the relevant FPU state on armv7.kettenis2018-06-223-28/+26
| | | | ok deraadt@
* sort SEE ALSO;jmc2018-06-211-4/+4
|
* s/simultanious/simultaneous/jmc2018-06-211-2/+2
|
* Document hw.smt.kettenis2018-06-211-2/+7
|
* use a full stop, as per the other items; from nan xiaojmc2018-06-191-3/+3
|
* Add add PIE support for m88k (requires gcc4 toolchain)guenther2018-06-162-5/+7
| | | | | | Convert __cerror to hidden visibility. from miod@
* Use process-private futexes. This avoids the overhead of calling into uvmkettenis2018-06-041-6/+6
| | | | | | to look up the mapping for the futex address. ok visa@, mpi@
* for the witness(4) text, we already Xr the page in the first sentence, so addingjmc2018-06-031-6/+2
| | | | "See witness(4)" is unneccessary, and just bulks this already large page: remove it;
* Drop include of <arm64/swi.h> and remove it.kettenis2018-05-281-2/+1
| | | | ok drahm@
* Returns EBUSY if dup2(2) is called for a LARVAL file.mpi2018-05-281-2/+6
| | | | | | | | | | | This prevents a panic due to a double free if a program exits after having called accept(2) and dup2(2) on the same fd but without the corresponding connect(5). It will also allows us to simplify file descriptor locking. The error code has been choosed to match Linux's behavior. Pointed by Mathieu on tech@ after a discussion with guenther@. ok visa@
* Clear the sign bit in the QNAN constants used by strtof, strtod and strtold,jmatthew2018-05-284-16/+16
| | | | | | so passing "nan" and "-nan" produces a NaN with the right sign. Bug reported and diff provided by George Koehler. ok kettenis@
* document the new kern.audio node; OK ratchov@schwarze2018-05-261-2/+26
|
* Switch sparc64 to futex(2) based mutexes and condvars.mpi2018-05-191-2/+3
| | | | ok visa@
* Drop memory barrier in _atomic_lock() implementation since the callers nowkettenis2018-05-172-4/+2
| | | | | | take care of this. ok visa@, mpi@
* Document kern.witnesswatch in sysctl(2).visa2018-05-161-2/+29
| | | | Reminded by jmc@
* Enable futex(2)-based mutex on arm64.visa2018-05-131-2/+3
| | | | OK mpi@, kettenis@
* Add memory barriers to libc's _spinlock() to make the mechanismvisa2018-05-131-2/+11
| | | | | | | | | | serialize memory accesses properly. _spinlock()'s backend, _atomic_lock(), already issues an entry barrier on some architectures, but that practice has not been consistent. This patch generalizes the barrier use. OK kettenis@, mpi@
* Fix typo in RFC number.tb2018-05-101-2/+2
| | | | ok benno
* Add a missing header when compiling with -DDEBUGdenis2018-04-301-1/+5
| | | | | | With advice from jca@ OK jca@ millert@
* reference hosts(5) instead of networks(5)schwarze2018-04-281-3/+3
|
* Remove references to the obsolete getnetent(3) and networks(5).schwarze2018-04-282-10/+7
|
* Stop talking about /etc/networks, which is no longer used,schwarze2018-04-281-39/+38
| | | | | | and reference gethostby*(3) and /etc/hosts instead. Say that setnetent(3), getnetent(3), and endnetent(3) now do nothing. With feedback from guenther and significant help from deraadt@.
* Say that sethostent(3), gethostent(3), and endhostent(3) do nothing.schwarze2018-04-281-50/+19
| | | | | | While here, stop implying plans to support additional address families in the future, and do not call gethostbyname2(3) "advanced". OK deraadt@ guenther@
* To allow us to get rid of /etc/networks, make getnetby*(3)schwarze2018-04-285-442/+79
| | | | | | wrappers around gethostby*_async(3). If you had anything of importance in /etc/networks, specify it in /etc/hosts instead. Feedback and OK eric@, OK deraadt@
* Minor cleanup, no functional change:schwarze2018-04-281-8/+3
| | | | | | | Remove unused headers and a comment implying that we might consider reviving these dead horses in the future, which we do not intend to do. OK deraadt@ guenther@
* To allow us to get rid of /etc/networks, make setnetent(3),schwarze2018-04-281-75/+4
| | | | | | getnetent(3), and endnetent(3) do nothing, just like sethostent(3), gethostent(3), and endhostent(3) years ago. OK deraadt@ guenther@
* Fix typo in binary-float example in commentguenther2018-04-271-2/+2
|
* <sys/mount.h> and <sys/swap.h> no longer require <sys/param.h>guenther2018-04-276-18/+18
| | | | ok krw@
* Make futex(2) also return ECANCELED in case SA_RESTART was set.pirofti2018-04-241-2/+7
| | | | Prodded by and ok mpi@
* Validate timespec and return ECANCELED when interrupted with SA_RESTART.pirofti2018-04-242-6/+16
| | | | | | | | | | | | | | | Discussing with mpi@ and guenther@, we decided to first fix the existing semaphore implementation with regards to SA_RESTART and POSIX compliant returns in the case where we deal with restartable signals. Currently we return EINTR everywhere which is mostly incorrect as the user can not know if she needs to recall the syscall or not. Return ECANCELED to signal that SA_RESTART was set and EINTR otherwise. Regression tests pass and so does the posixsuite. Timespec validation bits are needed to pass the later. OK mpi@, guenther@
* use NULL for pointerderaadt2018-04-221-2/+2
|
* mmap() no longer needs to be used. Without providing too many details,deraadt2018-04-221-12/+14
| | | | | | describe how an inner-region is found for applying MAP_STACK, and that currently MAP_STACK remains set when the sigaltstack is disabled. ok kettenis guenther schwarze
* Actually describe the parameters rather than calling facts BUGSschwarze2018-04-081-19/+21
| | | | | that aren't even small bugs. And stop talking about AF_LOCAL. Feedback and OK guenther@, OK jmc@.
* sys/uio.h is not used anymoreotto2018-04-071-3/+2
|
* mention which locale categories this is related to, and add SEE ALSOschwarze2018-04-041-1/+11
|
* add SEE ALSOschwarze2018-04-041-1/+6
|
* Split the useless localeconv(3) function out of the importantschwarze2018-04-043-145/+195
| | | | | setlocale(3) manual page, such that the latter becomes easier to read. No text change.
* Mark pthread_equal() as unused inside libcguenther2018-03-311-1/+2
|
* fix MALLOC_STATS; spotted by and ok semarie@otto2018-03-301-1/+5
|
* Resolve some code duplication.schwarze2018-03-291-11/+3
| | | | | Minus eight lines of code, no functional change. OK martijn@.
* Fix three bugs in setlocale(3):schwarze2018-03-291-5/+7
| | | | | | | | | | | 1. setlocale(LC_ALL, "A"); setlocale(LC_CTYPE, "T"); setlocale(LC_ALL, NULL); must return "A/T/A/A/A/A", not "A". Fix this by always initializing the LC_ALL entry of newgl to "" in dupgl(). Reported by Karl Williamson <public at khwilliamson dot com> on bugs@, thanks! 2. Do not leak newgl when strdup(3) fails in setlocale(3). 3. For setlocale(LC_ALL, "C/C/fr_FR.UTF-8/C/C/C"); correctly set _GlobalRuneLocale; i found 2. and 3. while looking at the code. Feedback on a buggy earlier version and OK martijn@.
* Rewrite, since Karl Williamson <public at khwilliamson dot com>schwarze2018-03-221-153/+142
| | | | | | | | | | | | | noticed that this was no good. * More relevant one line description. * Generally more precision, less handwaving. * Delete details regarding features we deliberate do not support. * Write a real RETURN VALUES section. * Delete pointless SEE ALSO section. * Add two useful EXAMPLES. * Do not talk about BUGS we don't have because we avoid the facilities. Using several suggestions from martijn@ and one from stsp@, OK jmc@ stsp@ martijn@ on earlier versions.
* on failure, mmap() returns MAP_FAILEDgsoares2018-03-211-3/+3
| | | | OK deraadt
* improve markup quality in the cases found by the new "--" style messageschwarze2018-03-162-14/+10
|
* Since most (if not all) ARMv8 hardware doesn't actually support trapping ofkettenis2018-03-162-73/+26
| | | | | | | floating-point exceptions, simplify the functions that control the exception masks just like we did on armv7. ok tom@
* anton points out that my previous commit completely messed with thejmc2018-03-161-293/+293
| | | | | | | (unknown to me) relevant ordering of the various promises; restore them now to their original order; partial revert requested by deraadt too
* Fix commentsjca2018-03-131-6/+5
| | | | ok eric@ a while ago
* use _ALIGN() which is uhm a bit OpenBSD-specific, but it means wederaadt2018-03-061-3/+2
| | | | | | don't need to use sys/param.h at all, guess which one i believe is greater namespace polution ok otto
* typo in kern.maxlocksperuidotto2018-03-051-3/+3
|
* Use _MAX_PAGE_SHIFT, rather than #ifdef mips64deraadt2018-03-051-6/+2
| | | | ok guenther kettenis