summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* remove some incredible lies about overlapping buffersderaadt2013-06-042-22/+10
| | | | ok guenther
* Add mentions about net.mpls and net.inet.ip.ifq.yasuoka2013-06-021-2/+71
| | | | input from jmc claudio
* Two small cleanups to atexit: remove unneeded __atexit_invalid, andmatthew2013-06-022-12/+5
| | | | | | | move the call_depth decrement so it happens unconditionally and can still return to 0 when called with dso!=NULL. ok millert
* fix id, from bradtedu2013-06-021-1/+1
|
* Fix wcsto{f,d,ld}() C99 compliance to now correctlymatthew2013-06-021-20/+45
| | | | | | | | | | | | | | 1. handle "inf", "infinity", "nan", and "nan(whatever)", 2. reject bare minus and plus signs, 3. handle multi-byte characters, and 4. set *endptr = nptr for all failure cases. Fixes libc++'s test cases for std::sto{f,d,ld}(). ok stsp
* improve the divert-* description a bit morebenno2013-06-021-3/+5
| | | | ok lteo & jmc
* Fix catopen(3) for UTF-8 locales and update the implementation to POSIX-2008.stsp2013-06-0123-29/+2176
| | | | | | | | | Catalogs had an arbitrary character set which was used regardless of locale. Add UTF-8-encoded catalogs for libc error messages, and rename existing ones to indicate their character sets. catopen(3) now chooses a catalog which matches the locale's encoding, if available. help & ok matthew, man page bits ok jmc, input from naddy and bluhm
* Change the naming scheme used for directories in /usr/share/locale tostsp2013-06-012-12/+14
| | | | | | | | | | | | eliminate redundant copies of LC_CTYPE files. Instead of names using "language_territory.codeset" permutations, use just the codeset component to name directories storing LC_CTYPE files. Suggested by bluhm@ while discussing the idea of using symlinks in /usr/share/locale like FreeBSD does. Future locale features which store language and/or territory specific data can name directories after language or territory names.
* tweak previous;jmc2013-06-011-5/+5
|
* reorder syslog params descr to make sense, and minor tweaks, plus jmc@'sespie2013-06-011-60/+65
| | | | | input. okay jmc@, schwarze@
* Move search domain iteration code in res_search_async.c where it belongs.eric2013-06-013-112/+118
|
* Make hostaliases work for gethostbyname() and getaddrinfo() wheneric2013-06-015-38/+40
| | | | | | looking into /etc/hosts. Remove the alias check from the search domain iteration. Instead, take a shortcut to res_query_async_ctx() in res_search_async_ctx().
* Update asr_hostaliases() to make all necessary checks in the function.eric2013-06-012-14/+14
| | | | | Explicitely check for issetguid() before calling getenv(). Also make asr_hostalias() callable from other parts of asr too.
* Add utrace(2), a system call allowing for userland to send its own ktracemiod2013-06-013-6/+99
| | | | | | records. From FreeBSD via otto@, with tweaks suggested by guenther@. Commite on behalf of otto@ who is not around, to ride the libc minor bump. Causes a librthread minor bump as well (new syscall).
* iterating over the ns list only matters for res_send_async.c, so moveeric2013-06-013-39/+37
| | | | things around.
* string.h defines null for ustedu2013-06-011-2/+1
|
* no need to cast nulltedu2013-06-012-15/+15
|
* doesn't need any headerstedu2013-05-311-3/+1
|
* minor tweakstedu2013-05-311-4/+5
|
* fixietedu2013-05-311-2/+2
|
* Add getprogname() and setprogname() to ease slackers^porters' work.ajacoutot2013-05-316-12/+169
| | | | | | | | | Man page adapted from FreeBSD and NetBSD. Bump libc minor now (there will be more upcoming changes). input from tedu@ get it in deraadt@
* On NOTE_EXIT event of EVFILT_PROC, store the exit status in kn_data.yasuoka2013-05-311-2/+7
| | | | ok guenther tedu deraadt
* add shm_open and friends which i have been told ports programs wouldtedu2013-05-313-3/+209
| | | | | like to use. ok deraadt guenther
* Sort includes. From Vladimir Tamara Patino <vtamara@pasosdeJesus.org>stsp2013-05-301-5/+6
|
* Remove useless include.ajacoutot2013-05-301-2/+1
| | | | ok millert@
* use paramaters instead of static storage in _gethostbyname()eric2013-05-291-26/+48
|
* Add minimal support for _res setup and update.eric2013-05-2711-45/+93
| | | | | | | | Change res_init() to initialize the _res structure on first call, and udpate the global async context if changes were made by the user. All resolver functions now call res_init() internally. fixes issue spotted by otto@
* If pid<0, kill() won't fail with EPERM unless none of the target processesguenther2013-05-191-4/+4
| | | | could be signaled.
* typo: compare len against null needle, not haystackajacoutot2013-05-151-2/+2
| | | | | | from Alf Schlichting ok millert@
* Add an implementation of memmem() -- from FreeBSD with some tweaks.ajacoutot2013-05-134-5/+146
| | | | | | | | | Requires a libc minor bump, committing now so that we have up-to-date snapshots for the upcoming hackathon. joint work with millert@ man page bits ok jmc@ input and ok millert@, guenther@, deraadt@
* Update SYNOPSIS and add STANDARDSguenther2013-05-101-3/+7
|
* Update STANDARDSguenther2013-05-101-3/+3
|
* Clarify behavior of SA_NOCLDWAITguenther2013-05-101-7/+13
| | | | | | Tweak indentation in the synopsis feedback and ok jmc@, espie@
* clarify when EACCESS can fail. if from is read only, you're out of luck.tedu2013-05-081-4/+8
| | | | failure to document this case noticed by Mike Small
* fix SEE ALSO;jmc2013-05-081-2/+2
|
* Update DESCRIPTION, ERRORS, SEE ALSO, and STANDARDS sectionsguenther2013-05-081-11/+15
| | | | (setpgid has *never* cared about euid in OpenBSD)
* Lists should be sorted by the normal alphabet, not my private oneguenther2013-05-081-2/+2
| | | | Noted by jmc@
* We have fdatasync() and pselect() now, so uncomment them in the list ofguenther2013-05-081-4/+5
| | | | | async-signal-safe functions. Also, add ppoll() as an async-s-s extension interface
* on failure errno is set as welldlg2013-05-071-3/+6
|
* no need to cast calloctedu2013-05-051-4/+3
|
* Fix resetting MB_CUR_MAX when switching locales away from a UTF-8 locale.stsp2013-05-033-5/+7
| | | | | Patch by Vladimir Támara Patiño <vtamara@pasosdeJesus.org> ok mpi millert
* various small fixes;jmc2013-04-301-4/+5
|
* Do not take external buffers for storing DNS responses in the internaleric2013-04-3012-122/+55
| | | | | async API. That is actually useless and it makes the code more complicated. The required buffers are always allocated when needed.
* copy input flags in result addrinfo structures.eric2013-04-301-1/+2
|
* Extend P_SIGSUSPEND handling in userret() to properly restore thematthew2013-04-294-33/+104
| | | | | | | | | | | | | | | sigmask even if there are no pending signals under the temporary sigmask. Refactor existing select() and poll() system calls to introduce the pselect() and ppoll() system calls. Add rthread wrappers for pselect() and ppoll(). While there, update cancellation point comments to reflect recent fdatasync() addition. Minor bumps for libc and librthread due to new symbols. ok guenther, millert, deraadt, jmc
* use FD_CLOEXEC instead of 1; from David Hillokan2013-04-295-10/+10
| | | | ok otto
* Do a PC-relative relocation for _map rather than going throughmartynas2013-04-231-2/+2
| | | | | | | | | GOTPCREL. Uncovered after the binutils patch where it isn't optimized away at assembly and is forced to go through GOTPCREL. But _map is effectively a local variable. Found with cephes by guenther@. OK guenther@, kettenis@, deraadt@.
* Fixed typo.tobias2013-04-221-3/+3
| | | | ok jmc
* tweak a few commentstedu2013-04-211-5/+7
|
* this man page is mostly about password hashing now (you really don'ttedu2013-04-211-18/+5
| | | | | want to be using DES) and some of the notes about the export controls are no longer so relevant. ok deraadt jmc