diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-17 21:16:02 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-17 21:16:02 +0000 |
commit | 4768505c29990ff01e13044545b29c1fdf9fcd31 (patch) | |
tree | ceb4510af8f14eab9795ee56c59b61875f938981 /lib/libc/sys/mmap.c | |
parent | 87ca0d033f283587c2220d51ccbe048f9201eabd (diff) |
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/mmap.c')
-rw-r--r-- | lib/libc/sys/mmap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index a97ae570ef1..cfcfe2fdbd8 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -32,13 +32,16 @@ */ #if defined(SYSLIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: mmap.c,v 1.9 2002/09/17 12:57:50 mickey Exp $"; +static char rcsid[] = "$OpenBSD: mmap.c,v 1.10 2002/09/17 21:16:01 deraadt Exp $"; #endif /* SYSLIBC_SCCS and not lint */ #include <sys/types.h> #include <sys/mman.h> #include <sys/syscall.h> -#include <unistd.h> + +#ifdef lint +quad_t __syscall(quad_t, ...); +#endif /* * This function provides 64-bit offset padding that @@ -54,6 +57,6 @@ mmap(addr, len, prot, flags, fd, offset) off_t offset; { - return((void *)(long)__syscall(SYS_mmap, addr, len, prot, + return((void *)(long)__syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset)); } |