...ad from the pipe to allow the write to complete. Nonblocking I/O is possible by using the fcntl (2) F_SETFL operation to enable the O_NONBLOCK open file status flag or by openin…...nblocking I/O on sockets by setting the O_NONBLOCK flag on a socket file descriptor using fcntl (2). Then all operations that would block will (usually) return with EAGAIN (oper…...D • controlling terminal • user and group IDs • open file descriptors • record locks (see fcntl (2)) • signal dispositions • file mode creation mask ( umask (2)) • current direc…...ill probably get EEXIST . However, it is possible to add a duplicate ( dup (2), dup2 (2), fcntl (2) F_DUPFD ) file descriptor to the same epoll instance. This can be a useful te…...ame in bold followed by a pair of parentheses in Roman (normal) font. For example, in the fcntl (2) man page, references to the subject of the page would be written as: fcntl ()…...hmod (2) fchmodat (2) Added in POSIX.1-2008 fchown (2) fchownat (2) Added in POSIX.1-2008 fcntl (2) fdatasync (2) fexecve (3) Added in POSIX.1-2008 ffs (3) Added in POSIX.1-2008…...o the discussion of the F_GETOWN , F_GETOWN_EX , F_SETOWN , and F_SETOWN_EX operations in fcntl (2). User and group identifiers Each process has various associated user and grou…...for request 0 (descriptor 3): 4 for request 1 (descriptor 4): 2 Program source #include <fcntl.h> #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <errno.h> #…...icky directory owned by any user; • specify O_NOATIME for arbitrary files in open (2) and fcntl (2). CAP_FSETID • Don't clear set-user-ID and set-group-ID mode bits when a file …...chdir (2), stat (2), flock (2), chmod (2), chown (2), setxattr (2), utime (2), ioctl (2), fcntl (2), access (2). Future Landlock evolutions will enable to restrict them. EXAMPLE…monitoring filesystem events NAME fanotify - monitoring filesystem events DESCRIPTION The fanotify API provides notification and interception of filesystem events. Use cases includ…...s example from readahead (2)): #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #include <fcntl.h> ssize_t readahead(int fd , off_t * offset , size_t count ); This format is emp…...s example from readahead (2)): #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #include <fcntl.h> ssize_t readahead(int fd , off_t * offset , size_t count ); This format is emp…overview of signals NAME signal - overview of signals DESCRIPTION Linux supports both POSIX reliable signals (hereinafter "standard signals") and POSIX real-time signals. Signal di…...see the discussion of F_SETFL (for setting the O_ASYNC flag), F_SETOWN , and F_SETSIG in fcntl (2). The siginfo_t structure (described in sigaction (2)) that is passed to the si…overview of Linux user namespaces NAME user_namespaces - overview of Linux user namespaces DESCRIPTION For an overview of namespaces, see namespaces (7). User namespaces isolate se…...t as the socket "owner" using the SIOCSPGRP or FIOSETOWN ioctls (or the POSIX.1-specified fcntl (2) F_SETOWN operation). When the SO_OOBINLINE socket option is enabled, urgent d…