Commit | Line | Data |
---|---|---|
541e396d KM |
1 | /* |
2 | * Copyright (c) 1992 The Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * %sccs.include.redist.c% | |
6 | */ | |
7 | ||
8 | #if defined(LIBC_SCCS) && !defined(lint) | |
8e8c198d | 9 | static char sccsid[] = "@(#)mmap.c 5.2 (Berkeley) %G%"; |
541e396d KM |
10 | #endif /* LIBC_SCCS and not lint */ |
11 | ||
12 | #include <sys/types.h> | |
13 | #include <sys/mman.h> | |
14 | #include <sys/syscall.h> | |
15 | ||
16 | /* | |
17 | * This function provides 64-bit offset padding that | |
18 | * is not supplied by GCC 1.X but is supplied by GCC 2.X. | |
19 | */ | |
20 | caddr_t | |
21 | mmap(addr, len, prot, flags, fd, offset) | |
22 | caddr_t addr; | |
23 | size_t len; | |
24 | int prot; | |
25 | int flags; | |
26 | int fd; | |
27 | off_t offset; | |
28 | { | |
29 | ||
8e8c198d RC |
30 | return((caddr_t)__indir(SYS_mmap, addr, len, prot, flags, fd, 0, |
31 | offset)); | |
541e396d | 32 | } |