summaryrefslogtreecommitdiffstats
path: root/upstream/opensuse-tumbleweed/man2/tee.2
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:52:03 +0000
commit932e4432596447eb9331cc2a2bb74a26a35b4efc (patch)
tree95161711ea07fd64f0c82d6e7943024c033dd5a8 /upstream/opensuse-tumbleweed/man2/tee.2
parentAdding debian version 4.22.0-1. (diff)
downloadmanpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.tar.xz
manpages-l10n-932e4432596447eb9331cc2a2bb74a26a35b4efc.zip
Merging upstream version 4.23.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/opensuse-tumbleweed/man2/tee.2')
-rw-r--r--upstream/opensuse-tumbleweed/man2/tee.211
1 files changed, 6 insertions, 5 deletions
diff --git a/upstream/opensuse-tumbleweed/man2/tee.2 b/upstream/opensuse-tumbleweed/man2/tee.2
index 7a3a6b14..4e677b4e 100644
--- a/upstream/opensuse-tumbleweed/man2/tee.2
+++ b/upstream/opensuse-tumbleweed/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 (unreleased)"
.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