Home
last modified time | relevance | path

Searched hist:"16545 cf5d5f51cb67c03923cbb9c75a024bdaca8" (Results 1 – 4 of 4) sorted by relevance

/freebsd/lib/libc/gen/
H A Ddaemon.3diff 16545cf5d5f51cb67c03923cbb9c75a024bdaca8 Sat Dec 23 19:07:43 CET 2017 Mariusz Zaborski <oshogbo@FreeBSD.org> 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
H A Ddaemon.cdiff 16545cf5d5f51cb67c03923cbb9c75a024bdaca8 Sat Dec 23 19:07:43 CET 2017 Mariusz Zaborski <oshogbo@FreeBSD.org> 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
H A DSymbol.mapdiff 16545cf5d5f51cb67c03923cbb9c75a024bdaca8 Sat Dec 23 19:07:43 CET 2017 Mariusz Zaborski <oshogbo@FreeBSD.org> 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
/freebsd/include/
H A Dstdlib.hdiff 16545cf5d5f51cb67c03923cbb9c75a024bdaca8 Sat Dec 23 19:07:43 CET 2017 Mariusz Zaborski <oshogbo@FreeBSD.org> 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