diff options
author | 2002-09-17 21:15:58 +0000 | |
---|---|---|
committer | 2002-09-17 21:15:58 +0000 | |
commit | f959b93e603007185f5289f88af72627053e53b4 (patch) | |
tree | 462c90d77387c706bb1dbfbc03a2df8c01d10f66 /lib/libc/sys/pwrite.c | |
parent | Allow user to restrict logs to be rotated by specifying pathnames on (diff) | |
download | wireguard-openbsd-f959b93e603007185f5289f88af72627053e53b4.tar.xz wireguard-openbsd-f959b93e603007185f5289f88af72627053e53b4.zip |
uncommit, since it breaks macppc libc. millert and miod have now said they
did NOT approve those for commit. why did mickey feel he was ok to go
commiting a set of diffs which had not been passed around and tested by people?
we don't know. mickey, have you got something to say for yourself?
Diffstat (limited to 'lib/libc/sys/pwrite.c')
-rw-r--r-- | lib/libc/sys/pwrite.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c index c26ed9d1b40..6099148f81a 100644 --- a/lib/libc/sys/pwrite.c +++ b/lib/libc/sys/pwrite.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwrite.c,v 1.3 2002/09/17 12:57:50 mickey Exp $ */ +/* $OpenBSD: pwrite.c,v 1.4 2002/09/17 21:16:01 deraadt Exp $ */ /* * Copyright (c) 1992, 1993 @@ -34,7 +34,7 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: pwrite.c,v 1.3 2002/09/17 12:57:50 mickey Exp $"; +static char rcsid[] = "$OpenBSD: pwrite.c,v 1.4 2002/09/17 21:16:01 deraadt Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> @@ -52,10 +52,11 @@ pwrite(fd, buf, nbyte, offset) size_t nbyte; off_t offset; { + extern off_t __syscall(); quad_t q; int rv; - q = __syscall(SYS_pwrite, fd, buf, nbyte, 0, offset); + q = __syscall((quad_t)SYS_pwrite, fd, buf, nbyte, 0, offset); if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; |