freebsd-skq/lib/libc
Jilles Tjoelker da7d2afb6d Add accept4() system call.
The accept4() function, compared to accept(), allows setting the new file
descriptor atomically close-on-exec and explicitly controlling the
non-blocking status on the new socket. (Note that the latter point means
that accept() is not equivalent to any form of accept4().)

The linuxulator's accept4 implementation leaves a race window where the new
file descriptor is not close-on-exec because it calls sys_accept(). This
implementation leaves no such race window (by using falloc() flags). The
linuxulator could be fixed and simplified by using the new code.

Like accept(), accept4() is async-signal-safe, a cancellation point and
permitted in capability mode.
2013-05-01 20:10:21 +00:00
..
amd64 Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
arm When clang builds libc it may insert calls to __aeabi_* functions. Normally 2013-02-12 06:04:51 +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 Globally replace u_int*_t from (non-contributed) man pages. 2012-02-12 18:29:56 +00:00
gdtoa
gen sysconf(3): Correct the description of _SC_OPEN_MAX. 2013-04-26 21:43:42 +00:00
gmon mdoc: end list context with El. 2012-05-12 07:52:45 +00:00
i386 - Correct mispellings of the word occurrence 2013-04-17 11:40:10 +00:00
ia64 Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
iconv libc/iconv: Fix race condition with setting FD_CLOEXEC. 2012-12-17 10:38:51 +00:00
include Merge Capsicum overhaul: 2013-03-02 00:53:12 +00:00
inet
isc
locale btowc(3), isblank(3): Correct prototypes for _l variants. 2013-03-27 21:31:40 +00:00
mips Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
nameser
net Remove the number of addresses restriction from sctp_connectx(). 2013-04-10 11:26:30 +00:00
nls libc: Fix typo in French translation. 2013-04-14 11:44:47 +00:00
posix1e Minor mdoc nits. 2012-05-13 14:16:04 +00:00
powerpc Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
powerpc64 Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
quad For ARM EABI we only need a subset of the quad functions, the rest are 2013-01-19 02:33:57 +00:00
regex Fix assignment of maximum bounadary. 2013-03-01 23:26:13 +00:00
resolv
rpc Assign the len field of the netbuf structure to the current length of 2013-03-01 15:45:57 +00:00
softfloat Conditionalize the __floatunsisf and __floatunsidf functions, added in 2012-01-20 14:44:21 +00:00
sparc64 Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
stdio Convert libc/stdio from K&R to ANSI C 2013-04-23 14:36:44 +00:00
stdlib Add example. 2013-04-21 10:30:19 +00:00
stdtime Compile contrib/tzcode/stdtime/localtime.c with -fwrapv, since it relies 2013-03-24 01:35:37 +00:00
string Create a symlink from strchrnul.3 to strchr.3. 2013-03-06 19:59:42 +00:00
sys Add accept4() system call. 2013-05-01 20:10:21 +00:00
uuid Note that memory should be freed after uuid_to_string(3) call. 2012-03-01 14:39:01 +00:00
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