duplicate a file descriptor NAME dup, dup2, dup3 - duplicate a file descriptor LIBRARY Standa...duplicate a file descriptor NAME dup, dup2, dup3 - duplicate a file descriptor LIBRARY Standa...duplicate a file descriptor NAME dup, dup2, dup3 - duplicate a file descriptor LIBRARY Standa...duplicating pipe content NAME tee - duplicating pipe content LIBRARY Standard C library ( lib...obtain a duplicate of another process's file descriptor NAME pidfd_getfd - obtain a duplicate of anoth...shut down part of a full-duplex connection NAME shutdown - shut down part of a full-duplex connection LIBRARY Standard......r the call failed with EINVAL , indicating that the kernel does not recognize this value. Duplicating a file descriptor F_DUPFD ( int ) Duplicate the file descriptor fd using th…...r the call failed with EINVAL , indicating that the kernel does not recognize this value. Duplicating a file descriptor F_DUPFD ( int ) Duplicate the file descriptor fd using th…...wo file descriptors that refer to the same open file description can occur as a result of dup (2) (and similar) fork (2), or passing file descriptors via a domain socket (see un…...ory (since Linux 3.5). • fstat (2) (since Linux 3.6). • fstatfs (2) (since Linux 3.12). • Duplicating the file descriptor ( dup (2), fcntl (2) F_DUPFD , etc.). • Getting and set…...ory (since Linux 3.5). • fstat (2) (since Linux 3.6). • fstatfs (2) (since Linux 3.12). • Duplicating the file descriptor ( dup (2), fcntl (2) F_DUPFD , etc.). • Getting and set…...ory (since Linux 3.5). • fstat (2) (since Linux 3.6). • fstatfs (2) (since Linux 3.12). • Duplicating the file descriptor ( dup (2), fcntl (2) F_DUPFD , etc.). • Getting and set…...by flock () are associated with an open file description (see open (2)). This means that duplicate file descriptors (created by, for example, fork (2) or dup (2)) refer to the s…...NOPSIS #include <unistd.h> pid_t fork(void); DESCRIPTION fork () creates a new process by duplicating the calling process. The new process is referred to as the child process. T…...ow to map protocol name strings to protocol numbers. Sockets of type SOCK_STREAM are full-duplex byte streams. They do not preserve record boundaries. A stream socket must be in…...le_range (2) 4.5 creat (2) 1.0 create_module (2) 1.0 Removed in 2.6 delete_module (2) 1.0 dup (2) 1.0 dup2 (2) 1.0 dup3 (2) 2.6.27 epoll_create (2) 2.6 epoll_create1 (2) 2.6.27 …...a process sharing a file descriptor table calls execve (2), its file descriptor table is duplicated (unshared). If CLONE_FILES is not set, the child process inherits a copy of a…...a process sharing a file descriptor table calls execve (2), its file descriptor table is duplicated (unshared). If CLONE_FILES is not set, the child process inherits a copy of a…...a process sharing a file descriptor table calls execve (2), its file descriptor table is duplicated (unshared). If CLONE_FILES is not set, the child process inherits a copy of a…...pable of seeking and POSIX does not specify which devices must support lseek (). SEE ALSO dup (2), fallocate (2), fork (2), open (2), fseek (3), lseek64 (3), posix_fallocate (3)