Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Assume that dup3 is available | Florian Weimer | 2017-04-18 | 1 | -24/+0 |
| | |||||
* | Assume that pipe2 is always available | Florian Weimer | 2017-04-18 | 1 | -4/+0 |
| | | | | | The Debian patches for Hurd (which are already required to build glibc before this commit) contain an implementation of pipe2. | ||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2017-01-01 | 1 | -1/+1 |
| | |||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2016-01-04 | 1 | -1/+1 |
| | |||||
* | Assume that SOCK_CLOEXEC is available and works | Florian Weimer | 2015-10-17 | 1 | -4/+0 |
| | | | | | This fixes (harmless) data races when accessing the various __have_sock_cloexec variables. | ||||
* | Update copyright dates with scripts/update-copyrights. | Joseph Myers | 2015-01-02 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights | Allan McRae | 2014-01-01 | 1 | -1/+1 |
| | |||||
* | Update copyright notices with scripts/update-copyrights. | Joseph Myers | 2013-01-02 | 1 | -1/+1 |
| | |||||
* | split assume pipe2/dup3/sock_cloexec knobs | Mike Frysinger | 2012-08-18 | 1 | -1/+10 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We can't assume sock_cloexec and pipe2 are bound together as the former defines are found in glibc only while the latter are a combo of kernel headers and glibc. So if we do a runtime detection of SOCK_CLOEXEC, but pipe2() is a stub inside of glibc, we hit a problem. For example: main() { getgrnam("portage"); if (!popen("ls", "r")) perror("popen()"); } getgrnam() will detect that the kernel supports SOCK_CLOEXEC and then set both __have_sock_cloexec and __have_pipe2 to true. But if glibc was built against older kernel headers where __NR_pipe2 does not exist, glibc will have a ENOSYS stub for it. So popen() will always fail as glibc assumes pipe2() works. While this isn't too much of an issue for some arches as they added the functionality to the kernel at the same time, not all arches are that lucky. Since the code already has dedicated names for each feature, delete the defines wiring these three features together and make each one a proper dedicated knob. We've been carrying this in Gentoo since glibc-2.9. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | Replace FSF snail mail address with URLs. | Paul Eggert | 2012-02-09 | 1 | -3/+2 |
| | |||||
* | * include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and | Ulrich Drepper | 2008-07-25 | 1 | -0/+24 |
__libc_clntudp_bufcreate_internal. * include/sys/socket.h: Declare __have_sock_cloexec. * socket/Makefile (aux): Add have_sock_cloexec. * socket/have_sock_cloexec.c: New file. * sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around __libc_clntudp_bufcreate. (__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate which takes an additional parameter. Create socket with non-blocking mode and close-on-exec flag set, if wanted. * sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE. * nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate instead of clntudp_create. The socket has already the close-on-exec flag set if SOCK_CLOEXEC is defined. |