summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* fix alignment issue in getnetby{addr,name}() too.eric2013-04-041-6/+10
|
* use the provided ALIGN() macro instead of re-inventing a square wheel.eric2013-04-041-7/+3
| | | | prodded by deraadt@
* properly follow the CNAME chain in reverse lookupseric2013-04-031-5/+13
| | | | spotted by sthen@
* Use MSG_NOSIGNAL when writing DNS queries over TCP sockets to ensurematthew2013-04-031-2/+7
| | | | | | we don't trigger SIGPIPE. ok millert
* Update a comment about standards requirementsguenther2013-04-031-4/+4
|
* Drop an unnecessary #includeguenther2013-04-031-3/+2
| | | | reminded by schwarze@
* 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