freebsd-nq/lib/libc
Mariusz Zaborski 16545cf5d5 Introduce the daemonfd function.
The daemonfd function is equivalent to the daemon(3) function expect that
arguments are descriptors. For example dhclient(8) which is sandboxed is
unable to open /dev/null to close stdio instead it's allows to fail
daemon(3) function to close the descriptors and then do it explicit in code.
Instead of such hacks we can use now daemonfd.

This API can be also helpful to migrate system to platforms like CheriBSD.

Reviewed by:	brooks@, bcr@, jilles@ (earlier version)
Differential Revision:	https://reviews.freebsd.org/D13433
2017-12-23 18:07:43 +00:00
..
aarch64 Decrease relative branch brittleness. 2017-06-20 07:25:38 +00:00
amd64 libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
arm libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
capability Replace dot-dot relative pathing with SRCTOP-relative paths where possible 2017-01-20 03:23:24 +00:00
compat-43 General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
db libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
gdtoa libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
gen Introduce the daemonfd function. 2017-12-23 18:07:43 +00:00
gmon General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
i386 revert r322589: force use of ld.bfd for linking i386 libc 2017-12-16 15:17:54 +00:00
iconv libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
include SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
inet SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
isc SPDX: more ISC-related files. 2017-12-08 17:52:53 +00:00
locale libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
md Replace dot-dot relative pathing with SRCTOP-relative paths where possible 2017-01-20 03:23:24 +00:00
mips Fix fabs() for MIPS when used on -0.0 2017-11-28 20:37:27 +00:00
nameser SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
net Don't ignore trailing spaces after numerical IP addresses. 2017-12-20 17:44:31 +00:00
nls Use current locale (f.e. set by thread). It was global locale always 2016-08-24 16:44:27 +00:00
posix1e libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
powerpc libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
powerpc64 libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
powerpcspe Correct an misunderstanding of MDSRCS. 2017-03-02 17:07:28 +00:00
quad General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
regex General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
resolv SPDX: license IDs for some ISC-related files. 2017-12-08 15:57:29 +00:00
riscv Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
rpc libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
secure libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
softfloat libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sparc64 libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
stdio fopen.1: document truncation 2017-12-23 05:13:39 +00:00
stdlib libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
stdtime libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
string libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
sys Note that old sys/event.h required manual sys/types.h inclusion 2017-12-07 01:50:17 +00:00
tests Optimize telldir(3) 2017-12-06 22:06:48 +00:00
uuid libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
x86/sys Fix a regression in r321608. 2017-08-13 14:42:23 +00:00
xdr General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
yp libc: further adoption of SPDX licensing ID tags. 2017-11-25 17:12:48 +00:00
libc_nossp.ldscript Add different libc ldscript: the one without libssp -- 2016-10-12 13:19:21 +00:00
libc.ldscript
Makefile Support armv7 builds for userland 2017-10-05 23:01:33 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
Versions.def Create namespace for the symbols added during 12-CURRENT cycle. 2016-08-06 13:28:58 +00:00