1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-25 16:13:17 +00:00
freebsd/lib/libc
Jilles Tjoelker 571d9493ad libc/iconv: Fix race condition with setting FD_CLOEXEC.
A fork/exec could happen between open and fcntl, leaking a file descriptor.
Using O_CLOEXEC fixes this and as a side effect simplifies the code.

NetBSD already had this (I checked this after making the change myself).

Reviewed by:	gabor
2012-12-17 10:38:51 +00:00
..
amd64 libc/amd64: Do not export .cerror. 2012-09-06 20:59:49 +00:00
arm Merging of projects/armv6, part 2 2012-08-15 03:09:00 +00:00
compat-43 Update the kill(2) and killpg(2) man pages to the modern permission 2012-10-22 03:37:00 +00:00
db
gdtoa
gen Eliminate redundant variable. 2012-12-12 15:27:33 +00:00
gmon mdoc: end list context with El. 2012-05-12 07:52:45 +00:00
i386 libc/i386: Do not export .cerror. 2012-09-05 21:41:05 +00:00
ia64
iconv libc/iconv: Fix race condition with setting FD_CLOEXEC. 2012-12-17 10:38:51 +00:00
include Implement the waitid() SUSv4 function using wait6() system call. 2012-11-13 12:55:52 +00:00
inet
isc
locale libc: Make various internal file descriptors close-on-exec. 2012-12-11 22:52:56 +00:00
mips
nameser
net Cleanup the code a bit, which improves the portability. 2012-11-19 19:26:19 +00:00
nls libc: Use O_CLOEXEC for various internal file descriptors. 2012-09-29 11:54:34 +00:00
posix1e Minor mdoc nits. 2012-05-13 14:16:04 +00:00
powerpc Doh... Don't add __eabi to an old version tag (i.e. FBSD_1.0). Add it to the 2012-05-25 16:30:42 +00:00
powerpc64
quad
regex
resolv
rpc rpc: convert all uid and gid variables to u_int. 2012-10-04 04:15:18 +00:00
softfloat
sparc64
stdio The getline function returns the number of characters read, not 2012-12-01 15:25:41 +00:00
stdlib Remove undefined behavior from sranddev() and 2012-10-09 14:25:14 +00:00
stdtime Add more locale-specific functions to the relevant man pages and 2012-06-25 21:51:40 +00:00
string clarify the wording for 'first' and 'last' 2012-09-30 03:25:04 +00:00
sys Document that socket(2) may fail with EAFNOSUPPORT if the family cannot 2012-12-07 02:26:08 +00:00
uuid
xdr
yp libc: Use O_CLOEXEC for various internal file descriptors. 2012-09-29 11:54:34 +00:00
Makefile Disable NLS catalog use in libc if built with WITHOUT_NLS option. 2012-05-21 08:10:42 +00:00
Versions.def