summaryrefslogtreecommitdiff
path: root/sysdeps/posix
AgeCommit message (Collapse)AuthorFilesLines
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers2-4/+2
2012-11-19Return EAI_SYSTEM if we're out of file descriptorsSiddhesh Poyarekar1-0/+6
Resolves BZ #14719.
2012-11-17Generate /usr/libexec/getconf files when cross-compiling.Joseph Myers1-72/+23
2012-10-30Suppress incorrect link warnings for NSS symbolsChris Metcalf1-1/+1
When glibc is built with --enable-static-nss, the warning that using NSS symbols requires the nss shared objects to be present is no longer true, as those symbols are built into libc. Suppress the warning for those symbols by providing a new macro (nss_interface_function) for the NSS functions that is defined as static_link_warning in the normal case, and empty for static NSS.
2012-10-24BZ#14743: Move clock_* symbols from librt to libc.Roland McGrath1-1/+2
2012-10-16__alloc_dir: avoid integer overflow in malloc argumentFlorian Weimer1-4/+11
2012-10-03sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZEPino Toscano1-0/+1
2012-09-28Implement POSIX-generic sleep via nanosleep rather than SIGARLM.Roland McGrath1-65/+35
2012-09-28 [BZ #11438]Jeff Law1-4/+0
* sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 * addresses to global scope. * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16 addresses are in the same scope as 192.0.2/24. * posix/gai.conf: Document new scope table defaults.
2012-08-22 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_rJeff Law1-2/+7
if the family is PF_UNSPEC.
2012-08-17Move some things from sysdeps/unix to sysdeps/posix.Roland McGrath6-0/+252
2012-08-17Fix typo in last change.Roland McGrath1-1/+1
2012-08-17Fix getaddrinfo for [!_STATBUF_ST_NSEC] case.Roland McGrath1-2/+35
2012-08-15Add casts to suppress warnings in system.c under [!_LIBC_REENTRANT].Roland McGrath1-3/+3
2012-08-08Add a missing #include.Roland McGrath1-1/+2
2012-08-07Move common dirent implementation from sysdeps/unix to sysdeps/posix.Roland McGrath10-0/+774
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath3-3/+5
2012-07-25Rename __secure_getenv to secure_getenvFlorian Weimer3-10/+12
2012-07-12Avoid duplicate DNS requests if answer is longer than a implementationJeroen van Bemmel1-3/+7
limit [BZ #14307] * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of the temporary buffer used to invoke __gethostbyname2_r, __gethostbyaddr_r and gethostbyname4_r to make room for struct host_data / struct gaih_addrtuple. * resolv/nss_dns/dns-host.c (global scope): Move definition of implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to header file nss/nsswitch.h. * nss/nsswitch.h (global scope): Add definition of implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from resolv/nss_dns/dns-host.c).
2012-05-24Switch gettimeofday from INTUSE to libc_hidden_proto.Roland McGrath1-5/+3
2012-05-10Hurd: libc_once_getThomas Schwinge1-1/+1
2012-05-10Hurd: #include <kernel-features.h>Thomas Schwinge1-1/+2
2012-04-23Move sysdeps/unix/sysv/gethostname.c to sysdeps/posix/.Joseph Myers1-0/+48
2012-02-27Add missing headersAndreas Schwab1-1/+2
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert61-183/+122
2012-01-30Remove miscellaneous __STDC__ conditionals.Joseph Myers1-5/+1
2011-11-15Clean up internal fopen usesUlrich Drepper1-1/+1
No need to ever not use c and e.
2011-10-31Cache network interface informationUlrich Drepper1-5/+5
Whenever getaddrinfo needed network interface information it used the netlink interface to read the information every single time. The problem is that this information can change at any time. The patch implements monitoring of the network interfaces through nscd. If no change is detected the previously read information can be reused (which is the norm). This timestamp information is also made available to other processes using the shared memory segment between nscd and those processes.
2011-09-19Clean up disabling of script_executeRoland McGrath1-9/+11
2011-09-05Try shell in posix_spawn* only in compat modeUlrich Drepper1-4/+10
2011-08-04Fix encoding name for IDN in getaddrinfoAndreas Schwab1-1/+4
2011-06-30Make sure RES_USE_INET6 is always restoredAndreas Schwab1-0/+4
2011-06-22Avoid __check_pf calls in getaddrinfo unless really neededUlrich Drepper1-5/+12
2011-06-22Fix Ipv4&IPv6 lookup in getaddrinfoAndreas Schwab1-1/+1
Problem introduced in the last patch.
2011-06-21Fix IPv6-only lookups through getaddrinfoUlrich Drepper1-3/+31
A recent patch introduced a problem where IPv6 lookups happily returned IPv4 addresses.
2011-06-21Minor optimization of getaddrinfo after recent patchUlrich Drepper1-14/+4
2011-06-13Fix memory leak in getaddrinfoUlrich Drepper1-1/+1
2011-05-29Restore _res correctlyUlrich Drepper1-2/+2
getaddrinfo works around the resolver functionality to avoid automatic IPv6 lookups. The restoring didn't allow for the resolver to set additional bits in _res.
2011-05-20Don't unconditionally use alloca in gaih_inetUlrich Drepper1-91/+342
2011-05-15Use mmap for allocation of buffers used for __abort_msgUlrich Drepper1-12/+23
2011-05-11Fix sched_setscheduler call in spawn implementationUlrich Drepper1-3/+1
2011-05-08Make complete getcwd work in rtldUlrich Drepper1-21/+22
2011-05-08Fix Linux getcwd for long pathsUlrich Drepper1-122/+234
The getcwd syscall (so far?) can only handle path up to one page in size. There is no limit about directory hierarchy depth, though, and the POSIX getcwd is supposed to handle this. In that case fall back to the generic getcwd. Additionally, optimize the generic getcwd to use openat when possible to change the asymptotic performance from O(N^2) to O(n).
2011-05-02getaddrinfo(AF_INET6) does not return scope_id info provided by NSS modulesMaciej Babinski1-45/+28
2011-01-19Fix decoding of canonical name in getaddrinfo.Ulrich Drepper1-0/+1
2011-01-13Relax requirement on close in child created by posix_spawn.Ulrich Drepper1-3/+17
2010-08-11Add self-contained test for NSS.Ulrich Drepper1-1/+2
While at it fix interaction between __nss_configure_lookup and nscd. Otherwise the test fails if nscd is runnung.
2010-04-04Handle POSIX-compliant errno value of unlink in remove.Ulrich Drepper1-2/+8
2010-03-26Fix one case of last checkin.Ulrich Drepper1-0/+1
If the v4 lookup failed but v6 succeeded we treat this as a success.
2010-03-26Don't abort immediately on successful lookup in getaddrinfo.Ulrich Drepper1-10/+10
When not using gethostbyname4 methods we immediately aborted the loop over the nss modules on the first successful lookup. While this is almost always what is wanted the nsswitch.conf file allows to select something different.