summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man2/tee.2
diff options
context:
space:
mode:
Diffstat (limited to 'upstream/debian-unstable/man2/tee.2')
-rw-r--r--upstream/debian-unstable/man2/tee.211
1 files changed, 6 insertions, 5 deletions
diff --git a/upstream/debian-unstable/man2/tee.2 b/upstream/debian-unstable/man2/tee.2
index 7a3a6b14..2e28eab4 100644
--- a/upstream/debian-unstable/man2/tee.2
+++ b/upstream/debian-unstable/man2/tee.2
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH tee 2 2023-05-03 "Linux man-pages 6.05.01"
+.TH tee 2 2024-05-02 "Linux man-pages 6.8"
.SH NAME
tee \- duplicating pipe content
.SH LIBRARY
@@ -13,7 +13,7 @@ Standard C library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
-.PP
+.P
.BI "ssize_t tee(int " fd_in ", int " fd_out ", size_t " len \
", unsigned int " flags );
.fi
@@ -36,7 +36,7 @@ It does not consume the data that is duplicated from
.IR fd_in ;
therefore, that data can be copied by a subsequent
.BR splice (2).
-.PP
+.P
.I flags
is a bit mask that is composed by ORing together
zero or more of the following values:
@@ -72,7 +72,7 @@ A return value of 0 means that there was no data to transfer,
and it would not make sense to block, because there are no
writers connected to the write end of the pipe referred to by
.IR fd_in .
-.PP
+.P
On error,
.BR tee ()
returns \-1 and
@@ -121,7 +121,7 @@ program using the
.BR tee ()
system call.
Here is an example of its use:
-.PP
+.P
.in +4n
.EX
$ \fBdate | ./a.out out.log | cat\fP
@@ -140,6 +140,7 @@ Tue Oct 28 10:06:00 CET 2014
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
+#include <sys/types.h>
#include <unistd.h>
\&
int