diff options
Diffstat (limited to 'lib/libc/sys/mmap.c')
-rw-r--r-- | lib/libc/sys/mmap.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index 2ef5baa5413..30255677413 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmap.c,v 1.15 2011/10/16 06:29:56 guenther Exp $ */ +/* $OpenBSD: mmap.c,v 1.16 2015/09/11 13:26:20 guenther Exp $ */ /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -31,23 +31,19 @@ #include <sys/types.h> #include <sys/mman.h> #include <sys/syscall.h> -#include "thread_private.h" -register_t __syscall(quad_t, ...); +void *__syscall(quad_t, ...); +PROTO_NORMAL(__syscall); -STUB_PROTOTYPE(mmap); - -STUB_ALIAS(mmap); +DEF_SYS(mmap); /* * This function provides 64-bit offset padding that * is not supplied by GCC 1.X but is supplied by GCC 2.X. */ void * -STUB_NAME(mmap)(void *addr, size_t len, int prot, int flags, int fd, - off_t offset) +mmap(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { - - return((void *)__syscall((quad_t)SYS_mmap, addr, len, prot, - flags, fd, 0, offset)); + return (__syscall(SYS_mmap, addr, len, prot, flags, fd, 0, offset)); } +DEF_WEAK(mmap); |