summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/mmap.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r267629:kib2014-06-261-11/+6
| | | | Tidy up code of the wrapper.
* Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate topeter2007-07-041-2/+6
| | | | | | | | | call the pad-less versions of the corresponding syscalls if the running kernel supports it. Check kern.osreldate once per program and cache the result to select the appropriate syscall. This maintains userland compatability with kernel.old's from quite a while back. Approved by: re (kensmith)
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Fix style (no space after return, twice-too-big continuation) andjmallett2002-12-221-2/+2
| | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde
* Fix the style of the SCM ID's.obrien2002-03-221-0/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Add #include <unistd.h> to get the prototype for __syscall().jb1998-03-091-1/+2
| | | | Cast to long before casting to a void ptr to shut up gcc.
* Convert caddr_t --> void * for sys/mman.h functions.alex1997-12-311-3/+3
| | | | | | | | | | | | | | | | mlock, mmap, mprotect, msync, munlock, and munmap are defined by POSIX as taking void *. The const modifier has been added to mlock, munlock, and mprotect as the standard dictates. minherit comes from OpenBSD and has been updated to conform with their recent change to void *. madvise and mincore are not defined by POSIX, but their arguments have been modified to be consistent with the POSIX-defined functions. mincore takes a const pointer, but madvise does not due to the MADV_FREE case. Discussed with: bde
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+58
OpenPOWER on IntegriCloud