This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BZ#15722: create all sockets with SOCK_CLOEXEC


On Nov 14, 2014, Alexandre Oliva <aoliva@redhat.com> wrote:

> Here's a revised patch that moves __sock_cloexec to its own header,
> dropping the __need* ugliness that had been introduced to fix the mutual
> inclusion of headers.  How's this?

Ping?
https://sourceware.org/ml/libc-alpha/2014-11/msg00335.html

> for ChangeLog

> 	[BZ #15722]
> 	* NEWS: Updated.
> 	* resolv/res_hconf.c (_res_hconf_reorder_addrs): Call
> 	__socket_cloexec.
> 	* socket/opensock.c: Likewise.
> 	* sunrpc/clnt_tcp.c (clnttcp_create): Likewise.
> 	* sunrpc/clnt_unix.c (clntunix_create): Likewise.
> 	* sunrpc/pm_getport.c (__get_socket): Likewise.
> 	* sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
> 	* sunrpc/rtime.c (rtime): Likewise.
> 	* sunrpc/svc_tcp.c (svctcp_create): Likewise.
> 	* sunrpc/svc_udp.c (svcudp_bufcreate): Likewise.
> 	* sunrpc/svc_unix.c (svcunix_create): Likewise.
> 	* sysdeps/gnu/ifaddrs.c (getifaddrs): Likewise.
> 	* sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
> 	* sysdeps/unix/sysv/linux/check_native.c (__check_native):
> 	Likewise.
> 	* sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
> 	* sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_open):
> 	Likewise.
> 	* include/socket-cloexec.h: New header, included instead of
> 	sys/socket.h in all of the above.
> 	* nscd/gai.c: Include socket/have_sock_cloexec.c.
> 	* posix/tst-rfc3484.c, posix/tst-rfc3484-2.c,
> 	posix/tst-rfc3484-3.c: Factor out common getaddrinfo testing
> 	infrastructure into...
> 	* posix/tst-rfc3484.h: ... this new header.  Include
> 	socket/have_sock_cloexec.c.  Define __f into f before
> 	including headers.

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]