summaryrefslogtreecommitdiff
path: root/lib/libc/sys/pwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/sys/pwrite.c')
-rw-r--r--lib/libc/sys/pwrite.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c
index 445b12ab430..2c99f4912a5 100644
--- a/lib/libc/sys/pwrite.c
+++ b/lib/libc/sys/pwrite.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwrite.c,v 1.10 2015/09/11 13:26:20 guenther Exp $ */
+/* $OpenBSD: pwrite.c,v 1.11 2016/05/07 19:05:22 guenther Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -31,22 +31,19 @@
#include <sys/syscall.h>
#include <unistd.h>
-#include "thread_private.h"
ssize_t __syscall(quad_t, ...);
PROTO_NORMAL(__syscall);
-STUB_PROTOTYPE(pwrite);
-
-STUB_ALIAS(pwrite);
+DEF_SYS(pwrite);
/*
* This function provides 64-bit offset padding that
* is not supplied by GCC 1.X but is supplied by GCC 2.X.
*/
ssize_t
-STUB_NAME(pwrite)(int fd, const void *buf, size_t nbyte, off_t offset)
+HIDDEN(pwrite)(int fd, const void *buf, size_t nbyte, off_t offset)
{
return (__syscall(SYS_pwrite, fd, buf, nbyte, 0, offset));
}