diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:57:51 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-09-17 12:57:51 +0000 |
commit | c82d6ae7d51a0d747311de7946fea210edc17853 (patch) | |
tree | 8483dca6681068a3912b4f4a164d2be8ab9598e9 /lib/libc/sys/pwritev.c | |
parent | 22c8a1e4bbf7d6cdab4954f884809837923c84b7 (diff) |
move __syscall prototype into unistd.h (like everybody else) and avoid private protos for it everywhere; millert@ ok
Diffstat (limited to 'lib/libc/sys/pwritev.c')
-rw-r--r-- | lib/libc/sys/pwritev.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c index ec700195851..13a05fcba65 100644 --- a/lib/libc/sys/pwritev.c +++ b/lib/libc/sys/pwritev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $ */ +/* $OpenBSD: pwritev.c,v 1.3 2002/09/17 12:57:50 mickey Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,7 +34,7 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: pwritev.c,v 1.2 2001/05/05 22:58:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: pwritev.c,v 1.3 2002/09/17 12:57:50 mickey Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> @@ -53,11 +53,10 @@ pwritev(fd, iovp, iovcnt, offset) int iovcnt; off_t offset; { - extern off_t __syscall(); quad_t q; int rv; - q = __syscall((quad_t)SYS_pwritev, fd, iovp, iovcnt, 0, offset); + q = __syscall(SYS_pwritev, fd, iovp, iovcnt, 0, offset); if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; |