Helper function to set the close-on-exec bit in a bit mask which specifies
option flags for a system call that obtains a new file descriptor, such as
open(2). On recent Linux all such system/library functions support
enabling the close-on-exec option; this is a Linux extension to POSIX. Some
of these flag accepting functions were added more recently with a name
extension, for example accept4(2) or inotify_init1(2).
Helper function to set the close-on-exec bit in a bit mask which specifies option flags for a system call that obtains a new file descriptor, such as open(2). On recent Linux all such system/library functions support enabling the close-on-exec option; this is a Linux extension to POSIX. Some of these flag accepting functions were added more recently with a name extension, for example accept4(2) or inotify_init1(2).