Copyright © tutorialspoint.com
#define _GNU_SOURCE #include <fcntl.h> |
flags is a series of modifier flags, which share the name space with splice(2) and vmsplice(2):
Tag | Description |
---|---|
SPLICE_F_MOVE | Currently has no effect for tee(); see splice(2). |
SPLICE_F_NONBLOCK | Do not block on I/O; see splice(2) for further details. |
SPLICE_F_MORE | Currently has no effect for tee(), but may be implemented in the future; see splice(2). |
SPLICE_F_GIFT | Unused for tee(); see vmsplice(2). |
On error, tee() returns -1 and errno is set to indicate the error.
Tag | Description |
---|---|
EINVAL | fd_in or fd_out does not refer to a pipe; or fd_in and fd_out refer to the same pipe. |
ENOMEM | Out of memory. |
|
Copyright © tutorialspoint.com