summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Set the stream orientation in open_{,w}memstream().guenther2013-04-032-2/+4
| | | | | | Check it in the regress test ok mpi@
* add comment for how EINPROGRESS is handled there.eric2013-04-021-1/+6
|
* make sure we always point before the current offset.eric2013-04-021-2/+2
| | | | spotted by matthew@
* better implementation for tcp_read() that can get the packet length ineric2013-04-022-23/+35
| | | | | | multiple read. prodded by deraadt@
* If more than one lookup line is found in resolv.conf, the latest oneeric2013-04-011-18/+9
| | | | | | takes precedence. Simplify code while there. suggested by deraadt@
* properly check for domain name truncation at various places and faileric2013-04-013-20/+30
| | | | | | if that happens. prodded by deraadt@
* When there are multiple groups of functions with their own #includesguenther2013-04-0114-46/+55
| | | | | | | | listed, the #includes in each group are independent, so that users don't need to guess at possible carry-over. general idea ok otto@ millert@ actual diff ok jmc@ schwarze@
* space cleanup; ok ericderaadt2013-04-012-4/+4
|
* space cleanup; ok ericderaadt2013-04-0113-72/+72
|
* rename fielderic2013-04-012-6/+6
|
* simpler and saner implementation for tcp_write(). now fully handleseric2013-04-012-40/+16
| | | | | | short writes. prodded by deraadt@
* fix alignment issue in the structure filled by gethostby{name,addr}()eric2013-04-011-10/+23
| | | | spotted by naddy@
* More SYNOPSIS, ERRORS, and STANDARDS updatesguenther2013-03-317-26/+62
|
* Principle of least astonishment: implement nameserver retry/backoff aseric2013-03-312-8/+10
| | | | in the former resolver.
* Add a couple commas, as suggested by jmc@guenther2013-03-311-3/+3
|
* getaddrinfo is now thread-safe.brad2013-03-311-6/+2
| | | | ok eric@
* Document more difference between parent and child.guenther2013-03-311-9/+27
| | | | | | Updates to ERRORS, and STANDARDS ok jmc@
* Updates to RETURN VALUES, ERRORS, and STANDARDSguenther2013-03-311-3/+14
| | | | ok jmc@
* Updates to SYNOPSIS, ERRORS, and STANDARDSguenther2013-03-317-38/+86
| | | | ok jmc@
* Add ERRORS and STANDARDS sections; reorder and reword description toguenther2013-03-311-14/+39
| | | | | | | clarify PROT_NONE vs PROT_* and what protections are actually sure to be supprted. ok jmc@, deraadt@
* Use consistent wording for the EINVAL, EBADF, ENOTDIR, and EACCES casesguenther2013-03-3113-59/+250
| | | | of the various *at() functions.
* allow "0" as service name for raw sockets.eric2013-03-301-2/+2
| | | | ok sthen@ bluhm@
* Do not assume local nameserver if resolv.conf doesn't exist, just useeric2013-03-302-8/+7
| | | | | | /etc/hosts. discussed with deraadt@
* tweak previous;jmc2013-03-302-4/+4
|
* don't ever skip reload the very first time; detective work by rpe@; ok eric@otto2013-03-301-2/+2
|
* Various updates, mostly to SYNOPSIS, ERRORS, and STANDARDS, butguenther2013-03-3020-132/+216
| | | | | | | | some other fixes included... *at() function ERRORS description suggested by matthew@ ok deraadt@
* properly handle scope when parsing IPv6 addresses.eric2013-03-291-2/+32
| | | | ok bluhm@ naddy@ sthen@
* res_querydomain()'s code to terminate the domain with '.' had the assignmentguenther2013-03-291-2/+2
| | | | | | | flipped so that it always used a domain of ".." Heavy lifting by otto@ ok eric@ otto@ miod@
* correctly show the scope for IPv6 addresses in getnameinfo()eric2013-03-291-4/+27
|
* Do not fail in gethostbyname_async() if there are multiple addresses ineric2013-03-291-3/+3
| | | | a DNS packet...
* no Pp before/after Sh;jmc2013-03-281-2/+1
|
* pathconf/fpathconf are now compliant with POSIX-2008.guenther2013-03-281-5/+14
| | | | Adjust the errnos a bit.
* Switch libc and libm to use strong aliases rather than weak aliasesmartynas2013-03-2828-204/+68
| | | | | | | | | | | where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@.
* switch to the new resolver implementation.eric2013-03-281-1/+2
| | | | requested by many.
* Enable fmemopen(3) and open_{w,}memstream(3)eric2013-03-281-12/+13
| | | | commiting on behalf of mpi@
* accept and use any protocol specified by the caller.eric2013-03-281-14/+10
| | | | issue spotted by naddy@
* Correct version numbermpi2013-03-282-6/+6
|
* Add support for _PC_TIMESTAMP_RESOLUTION for ffs/mfs, cd9600, ext2,guenther2013-03-281-2/+4
| | | | | | | msdos, NFS, fifos and devices, plus support for querying it in getconf(2) and the requisite pathconf(2) manpage blurb ok tedu@
* explicitely -> explicitly;jmc2013-03-271-2/+2
|
* Add an open_wmemstream(3) implementation and fix various issues formpi2013-03-273-55/+211
| | | | | | fmemopen(3) and open_memstream(3). With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
* Only use the search domains for DNS lookups, as the current resolver does.eric2013-03-277-85/+63
| | | | | Better not diverge too much in behavior at this point. Typo fix and doc update while there.
* protect the PRG state with a mutex in res_randomid().eric2013-03-261-2/+13
| | | | ok deraadt@ guenther@ djm@
* sysconf(_SC_SEM_VALUE_MAX) should return SEM_VALUE_MAX, not someguenther2013-03-241-7/+3
| | | | | unrelated sysv sem limit. Similarly, sysconf(_SC_SEM_NSEMS_MAX) should return -1 instead of another sysv sem limit.
* dlerror() should not return const char *, as noted by landryderaadt2013-03-241-3/+3
| | | | ok guenther
* Do not need machine/param.hderaadt2013-03-211-2/+1
|
* Use a realloc() loop around the sysctl() for NET_RT_IFLIST, in case anderaadt2013-03-201-9/+21
| | | | | interface is added at just the right... wrong moment. ok millert dlg
* threadsafe random().tedu2013-03-151-8/+43
| | | | reported by ajacoutot and (much earlier, sorry) by Alexey Suslikov
* tedu faith(4), suggested by todd@ some weeks ago after a submission bympi2013-03-141-13/+2
| | | | | | dhill. ok krw@, mikeb@, tedu@ (implicit)
* Return EINVAL if there are fewer than six template Xs in the path.guenther2013-03-122-24/+30
| | | | ok deraadt@ millert@
* Fix kernel profiling on MP systems by using per-CPU buffers and teachmpi2013-03-121-8/+14
| | | | | | | | | | | kgmon(8) to deal with them, this time without public header changes. Previously various CPUs were iterating over the same global buffer at the same time to modify it and never ended. This diff includes some ideas submited by Thor Simon to NetBSD via miod@. ok deraadt@, mikeb@, haesbaert@