summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/pread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/unistd/pread.c')
-rw-r--r--lib/libc/unistd/pread.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/unistd/pread.c b/lib/libc/unistd/pread.c
new file mode 100644
index 00000000..ad8e71b0
--- /dev/null
+++ b/lib/libc/unistd/pread.c
@@ -0,0 +1,7 @@
+#include <unistd.h>
+#include <syscall.h>
+
+ssize_t pread(int fildes, void *buf, size_t nbyte, off_t offset)
+{
+ return syscall(pread, fildes, buf, nbyte, offset);
+}