diff options
author | 2015-09-11 13:26:20 +0000 | |
---|---|---|
committer | 2015-09-11 13:26:20 +0000 | |
commit | b33a8d55775a3013157d6b0e3602c1fe178b48a6 (patch) | |
tree | 935665adf62f21c4312d7dacb69c2c7c808759f8 /lib/libc/sys/pwritev.c | |
parent | != -> == that I broke while bikeshedding (diff) | |
download | wireguard-openbsd-b33a8d55775a3013157d6b0e3602c1fe178b48a6.tar.xz wireguard-openbsd-b33a8d55775a3013157d6b0e3602c1fe178b48a6.zip |
Use PROTO_NORMAL() on __syscall to go direct, adjusting the declaration
to eliminate some casts.
Retire some uses of old-style STUB* macros where superseded by namespace.h bits
tweaks and ok deraadt@
Diffstat (limited to 'lib/libc/sys/pwritev.c')
-rw-r--r-- | lib/libc/sys/pwritev.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c index 345d3831965..a6008ef2c19 100644 --- a/lib/libc/sys/pwritev.c +++ b/lib/libc/sys/pwritev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwritev.c,v 1.9 2011/10/16 06:29:56 guenther Exp $ */ +/* $OpenBSD: pwritev.c,v 1.10 2015/09/11 13:26:20 guenther Exp $ */ /* * Copyright (c) 1992, 1993 @@ -29,15 +29,14 @@ * SUCH DAMAGE. */ -#include <sys/types.h> #include <sys/syscall.h> #include <sys/uio.h> #include <unistd.h> #include "thread_private.h" -register_t __syscall(quad_t, ...); +ssize_t __syscall(quad_t, ...); +PROTO_NORMAL(__syscall); -/* pwritev is weak to support libpthread cancellation */ STUB_PROTOTYPE(pwritev); @@ -51,5 +50,5 @@ ssize_t STUB_NAME(pwritev)(int fd, const struct iovec *iovp, int iovcnt, off_t offset) { - return (__syscall((quad_t)SYS_pwritev, fd, iovp, iovcnt, 0, offset)); + return (__syscall(SYS_pwritev, fd, iovp, iovcnt, 0, offset)); } |