提交 997ba92a 编写于 作者: R Rich Felker

add linux tee syscall

上级 00e6bbcc
......@@ -130,6 +130,7 @@ ssize_t readahead(int, off_t, size_t);
int sync_file_range(int, off_t, off_t, unsigned);
ssize_t vmsplice(int, const struct iovec *, size_t, unsigned);
ssize_t splice(int, off_t *, int, off_t *, size_t, unsigned);
ssize_t tee(int, int, size_t, unsigned);
#define loff_t off_t
#endif
......
#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);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册