aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-03-26Fix spurious UNAVAIL status is getaddrinfoAndreas Schwab1-0/+1
2010-03-25Fix typo in cuseridAndreas Schwab1-1/+1
2010-03-24calls to cuserid() can result in buffer overruns and/or overflowsJonathan Geisler1-2/+3
2009-12-10Fix a few error cases in *name4_r lookup handling.Ulrich Drepper1-7/+2
2009-10-30Implement mkstemps and mkstemps64.Ulrich Drepper1-7/+7
2009-07-25Handle missing NSS modules and those without callbacks.Ulrich Drepper1-0/+2
getaddrinfo didn't update the status variable in that round of the loop if no callback was used.
2009-06-15Preserve message printed before abort.Ulrich Drepper1-1/+16
The terminal output etc is not visible in a core file. The new libc-internal variable __abort_msg will point to a string with the message which has been printed before the abort in case abort is called from inside libc. BZ #10217
2009-04-23* sysdeps/unix/sysv/linux/preadv.c: The kernel API changed. Adjust.Ulrich Drepper2-24/+12
* sysdeps/unix/sysv/linux/pwritev.c: Likewise. 2009-04-23 Jakub Jelinek <jakub@redhat.com> * sysdeps/posix/pwritev.c (PWRITEV): Fix up comment. Copy data from vector to temporary buffer and call PWRITEV after it instead of vice versa. * sysdeps/posix/preadv.c: Fix up comment. * misc/preadv.c: Likewise. * misc/preadv64.c: Likewise. * misc/pwritev.c: Likewise. * misc/pwritev64.c: Likewise. * misc/sys/uio.h (preadv, pwritev, preadv64, pwritev64): Likewise. 2009-04-23 Ulrich Drepper <drepper@redhat.com>
2009-04-17* sysdeps/posix/preadv.c: Reading of zero bytes is no error.Ulrich Drepper2-2/+2
* sysdeps/posix/readv.c: Likewise. Reported by Markus Armbruster <armbru@redhat.com>.
2009-04-03* misc/Makefile (routines): Add preadv, preadv64, pwritev, pwritev64.Ulrich Drepper4-0/+234
* misc/Versions: Export preadv, preadv64, pwritev, pwritev64 for GLIBC_2.10. * misc/sys/uio.h: Declare preadv, preadv64, pwritev, pwritev64. * sysdeps/unix/sysv/linux/kernel-features.h: Add entries for preadv and pwritev. * misc/preadv.c: New file. * misc/preadv64.c: New file. * misc/pwritev.c: New file. * misc/pwritev64.c: New file. * sysdeps/posx/preadv.c: New file. * sysdeps/posx/preadv64.c: New file. * sysdeps/posx/pwritev.c: New file. * sysdeps/posx/pwritev64.c: New file. * sysdeps/unix/sysv/linux/preadv.c: New file. * sysdeps/unix/sysv/linux/preadv64.c: New file. * sysdeps/unix/sysv/linux/pwritev.c: New file. * sysdeps/unix/sysv/linux/pwritev64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/preadv64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/pwritev64.c: New file.
2009-04-03* sysdeps/unix/sysv/linux/kernel-features.h: DefineUlrich Drepper2-45/+37
__ASSUME_COMPLETE_READV_WRITEV. * sysdeps/unix/sysv/linux/readv.c: No need for userlevel fallback with modern kernels. * sysdeps/unix/sysv/linux/writev.c: Likewise. * sysdeps/posix/readv.c: Since read is a cancellation point we have to free a possible malloced buffer in case of cancellation. * sysdeps/posix/writev.c: Likewise for write. c2009-04-01 Ulrich Drepper <drepper@redhat.com>
2009-02-25..Ulrich Drepper1-0/+10
2009-02-24 Ulrich Drepper <drepper@redhat.com> * bits/confname.h: Define _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS. * sysdeps/posix/sysconf.c (__sysconf): Handle _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS.
2009-02-07[BZ #7095]Ulrich Drepper1-2/+29
2009-02-06 Ulrich Drepper <drepper@redhat.com> [BZ #7095] * bits/confname.h: Add SUSv7 macros for getconf environments. * bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise. * posix/confstr.c: Handle SUSv5 and SUSv7 environments. * posix/getconf.c: Likewise. * posix/sysconf.c: Likewise. * sysdeps/posix/sysconf.c: Likewise. * posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7 environments.
2008-12-29* sysdeps/posix/getaddrinfo.c (gaih_inet): When theUlrich Drepper1-0/+2
gethostbyname4_r function call succeeded, just leave the loop.
2008-12-03* resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): RecognizeUlrich Drepper1-0/+2
ESRCH return value. (_nss_dns_gethostbyname4_r): Likewise. * resolv/res_init.c (__res_vinit): Initialize nscount to zero. * sysdeps/posix/getaddrinfo.c (gaih_inet): In case we use gethostbyname4_r, we don't have a separate IPv6 status, so copy the no_data variable.
2008-11-27* sysdeps/posix/getaddrinfo.c (getaddrinfo): Only restrict searchUlrich Drepper1-7/+1
to IPv4 or IPv6 if an interface has been found.
2008-11-27* sysdeps/posix/getaddrinfo.c (getaddrinfo): If the system hasUlrich Drepper1-0/+6
neither IPv4 nor IPv6 addresses defined, don't do anything.
2008-08-02* sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inlineUlrich Drepper1-2/+2
to prevent warning.
2008-07-30* sysdeps/posix/getaddrinfo.c (gaih_inet): Raise size of initialUlrich Drepper1-1/+1
buffer passed to NSS functions.
2008-06-13* sysdeps/posix/getaddrinfo.c: Move _res_hconf_init call to aUlrich Drepper1-21/+9
better place so it is not called when nscd is used.
2008-05-17* sysdeps/posix/getaddrinfo.c (gaih_inet): If nscd reports noUlrich Drepper1-1/+4
entry is available, believe it.
2008-05-16* sysdeps/posix/getaddrinfo.c (gaih_inet): After gethostbyname4_rUlrich Drepper1-2/+3
lookup, don't assign canon unconditionally.
2008-05-14(match_prefix): Don't treat IPv4 loopback address special whenUlrich Drepper1-11/+5
converting to v4 mapped addressed.