summaryrefslogtreecommitdiff
path: root/src/linux/tee.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-08 01:03:01 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-08 01:03:01 -0400
commit997ba92a0fa85919b1c46346db8fb31b4e579c5a (patch)
tree38f0b3259f8ed9fffe2cce08c91545f7ee1cd920 /src/linux/tee.c
parent00e6bbcc05403aec1c96674c1060d54f5f237e87 (diff)
downloadmusl-997ba92a0fa85919b1c46346db8fb31b4e579c5a.tar.gz
musl-997ba92a0fa85919b1c46346db8fb31b4e579c5a.tar.bz2
musl-997ba92a0fa85919b1c46346db8fb31b4e579c5a.tar.xz
musl-997ba92a0fa85919b1c46346db8fb31b4e579c5a.zip
add linux tee syscall
Diffstat (limited to 'src/linux/tee.c')
-rw-r--r--src/linux/tee.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/tee.c b/src/linux/tee.c
new file mode 100644
index 00000000..a24748cf
--- /dev/null
+++ b/src/linux/tee.c
@@ -0,0 +1,8 @@
+#define _GNU_SOURCE
+#include <fcntl.h>
+#include "syscall.h"
+
+ssize_t tee(int src, int dest, size_t len, unsigned flags)
+{
+ return syscall(SYS_tee, src, dest, len, flags);
+}