summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/mmap.2
Commit message (Collapse)AuthorAgeFilesLines
* Remove whitespace at EOL.dd2001-07-151-13/+13
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Sort PROT_* and MAP_* lists, logically and alphabetically respectively.ru2001-02-121-44/+68
| | | | | | Suggested by: bde General mdoc(7) cleanup.
* Mention PROT_NONE in the list of possible protections.nik2001-02-111-0/+2
| | | | Pointed out by: kris
* Note that mmap(2) can allocate memory, as well as mapping existing files,nik2001-02-111-1/+1
| | | | | | in the .Nd. Reviewed by: hackers
* Prepare for mdoc(7)NG.ru2000-12-291-1/+2
|
* mdoc(7) police: fix formatting errors in rev 1.27.ru2000-12-041-13/+27
|
* Add warning on file-fragmentation issues related to MAP_NOSYNCdillon2000-12-031-0/+15
|
* Use Fx macro wherever possible.ru2000-11-141-3/+3
|
* Repair a cross-reference to sync(1) that should refer to sync(8).chris2000-06-231-1/+1
|
* Replace .Va, .Ar and .Nm with .Fa or .Va where necessary, examples:chris2000-06-231-1/+1
| | | | | | ``.Ar errno'' -> ``.Va errno'' ``.Nm ops'' -> ``.Fa ops'' ``.Va fd'' -> ``.Fa fd''
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-021-6/+12
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Add MAP_NOCORE to mmap(2), and MADV_NOCORE and MADV_CORE to madvise(2).ps2000-02-281-0/+2
| | | | | | | | | | | | This This feature allows you to specify if mmap'd data is included in an application's corefile. Change the type of eflags in struct vm_map_entry from u_char to vm_eflags_t (an unsigned int). Reviewed by: dillon,jdp,alfred Approved by: jkh
* Fix null-pointer dereference crash when the system is intentionallydillon2000-02-161-1/+2
| | | | | | | | | | | | | | | | run out of KVM through a mmap()/fork() bomb that allocates hundreds of thousands of vm_map_entry structures. Add panic to make null-pointer dereference crash a little more verbose. Add a new sysctl, vm.max_proc_mmap, which specifies the maximum number of mmap()'d spaces (discrete vm_map_entry's in the process). The value defaults to around 9000 for a 128MB machine. The test is scaled for the number of processes sharing a vmspace (aka linux threads). Setting the value to 0 disables the feature. PR: kern/16573 Approved by: jkh
* Replace `.Os BSD' which caused a troff error with `.Bx' which alsochris2000-02-141-1/+1
| | | | happens to be the correct macro to use in this situation.
* Add MAP_NOSYNC feature to mmap(), and MADV_NOSYNC and MADV_AUTOSYNC todillon1999-12-121-0/+29
| | | | | | | | | | | | | | | | | madvise(). This feature prevents the update daemon from gratuitously flushing dirty pages associated with a mapped file-backed region of memory. The system pager will still page the memory as necessary and the VM system will still be fully coherent with the filesystem. Modifications made by other means to the same area of memory, for example by write(), are unaffected. The feature works on a page-granularity basis. MAP_NOSYNC allows one to use mmap() to share memory between processes without incuring any significant filesystem overhead, putting it in the same performance category as SysV Shared memory and anonymous memory. Reviewed by: julian, alc, dg
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Mostly remove the VM_STACK OPTION.julian1999-01-261-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the definitions of a few items so that structures are the same whether or not the option itself is enabled. This allows people to enable and disable the option without recompilng the world. As the author says: |I ran into a problem pulling out the VM_STACK option. I was aware of this |when I first did the work, but then forgot about it. The VM_STACK stuff |has some code changes in the i386 branch. There need to be corresponding |changes in the alpha branch before it can come out completely. what is done: | |1) Pull the VM_STACK option out of the header files it appears in. This |really shouldn't affect anything that executes with or without the rest |of the VM_STACK patches. The vm_map_entry will then always have one |extra element (avail_ssize). It just won't be used if the VM_STACK |option is not turned on. | |I've also pulled the option out of vm_map.c. This shouldn't harm anything, |since the routines that are enabled as a result are not called unless |the VM_STACK option is enabled elsewhere. | |2) Add what appears to be appropriate code the the alpha branch, still |protected behind the VM_STACK switch. I don't have an alpha machine, |so we would need to get some testers with alpha machines to try it out. | |Once there is some testing, we can consider making the change permanent |for both i386 and alpha. | [..] | |Once the alpha code is adequately tested, we can pull VM_STACK out |everywhere. | Submitted by: "Richard Seaman, Jr." <dick@tar.com>
* Convert caddr_t --> void * for sys/mman.h functions.alex1997-12-311-2/+2
| | | | | | | | | | | | | | | | 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
* Show the real revision date and not the date that thissteve1997-06-231-1/+1
| | | | manpage is being viewed.
* Use the .Tn macro for generic FreeBSD references. Other minor cleanup.mpp1997-03-211-7/+12
|
* Restored a .Fa line that was lost in the Lite2 merge.bde1997-03-121-0/+1
|
* Merge from Lite2 onto mainline -peter1997-03-111-12/+9
| | | | | - add undelete() and undelete.2 (requires libc minor bump some time) - man page updates
* Sort cross references.wosch1997-01-201-3/+3
|
* Document the various reasons for EINVAL.joerg1997-01-081-11/+21
| | | | | Document the flaw that `offset' is required to be page-aligned, in the BUGS section.
* POSIX.4 defines MAP_FAILED to be the error return from mmap().alex1996-12-121-1/+1
|
* Slight rewording of the BUGS section.alex1996-11-131-4/+4
|
* Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-221-3/+3
| | | | | | | | in a bunch of man pages. Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros instead of explicitly specifying the version in the text in a bunch of man pages.
* Fixed a bunch of man page cross references that werempp1996-02-151-1/+1
| | | | | | | | in the main text of various man pages. Thanks to Warner Losh for adding an option to manck to allow it to scan the entire man page looking for bogus xrefs, instead of just checking the SEE ALSO section.
* Correct a bunch of man page cross references and generallympp1996-02-111-2/+2
| | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* Submitted by: bruce, davidg, dysonwosch1996-02-021-1/+19
| | | | | add a BUG section for mmap with current limitation section SYNOPSIS completed
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+210
OpenPOWER on IntegriCloud