From 0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 12 Feb 2011 00:22:29 -0500 Subject: initial check-in, version 0.5.0 --- src/unistd/pwrite.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/unistd/pwrite.c (limited to 'src/unistd/pwrite.c') diff --git a/src/unistd/pwrite.c b/src/unistd/pwrite.c new file mode 100644 index 0000000..8f23d1b --- /dev/null +++ b/src/unistd/pwrite.c @@ -0,0 +1,14 @@ +#include +#include "syscall.h" +#include "libc.h" + +ssize_t pwrite(int fd, const void *buf, size_t size, off_t ofs) +{ + ssize_t r; + CANCELPT_BEGIN; + r = syscall5(__NR_pwrite64, fd, (long)buf, size, SYSCALL_LL(ofs)); + CANCELPT_END; + return r; +} + +LFS64(pwrite); -- cgit v1.1