summaryrefslogtreecommitdiff
path: root/lib/libc/sys/mmap.c
Commit message (Collapse)AuthorAgeFilesLines
* The lseek(2), mmap(2), truncate(2), ftruncate(2), pread(2), andKonstantin Belousov2015-04-181-56/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | pwrite(2) syscalls are wrapped to provide compatibility with pre-7.x kernels which required padding before the off_t parameter. The fcntl(2) contains compatibility code to handle kernels before the struct flock was changed during the 8.x CURRENT development. The shims were reasonable to allow easier revert to the older kernel at that time. Now, two or three major releases later, shims do not serve any purpose. Such old kernels cannot handle current libc, so revert the compatibility code. Make padded syscalls support conditional under the COMPAT6 config option. For COMPAT32, the syscalls were under COMPAT6 already. Remove WITHOUT_SYSCALL_COMPAT build option, which only purpose was to (partially) disable the removed shims. Reviewed by: jhb, imp (previous versions) Discussed with: peter Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=281714
* The time come to remove the wrapper, most likely, but tidy up it codeKonstantin Belousov2014-06-191-11/+6
| | | | | | | | | | | instead for now. Remove spurious blank line, use C89 definition, wrap long line. Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=267629
* Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate toPeter Wemm2007-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) Notes: svn path=/head/; revision=171219
* Per Regents of the University of Calfornia letter, remove advertisingWarner Losh2007-01-091-4/+0
| | | | | | | | | clause. # If I've done so improperly on a file, please let me know. Notes: svn path=/head/; revision=165903
* Fix style (no space after return, twice-too-big continuation) andJuli Mallett2002-12-221-2/+2
| | | | | | | | | | cast (casting long to a void pointer, rather than intptr_t to a void pointer) bogons. Reviewed by: bde Notes: svn path=/head/; revision=108168
* Fix the style of the SCM ID's.David E. O'Brien2002-03-221-0/+2
| | | | | | | I believe have made all of libc .c's as consistent as possible. Notes: svn path=/head/; revision=92986
* Add #include <unistd.h> to get the prototype for __syscall().John Birrell1998-03-091-1/+2
| | | | | | | Cast to long before casting to a void ptr to shut up gcc. Notes: svn path=/head/; revision=34387
* Convert caddr_t --> void * for sys/mman.h functions.Alexander Langer1997-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 Notes: svn path=/head/; revision=32131
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-271-0/+58
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573