Penguin

Differences between current version and revision by previous author of mmap(2).

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 6 Last edited on Thursday, September 9, 2004 4:54:28 pm by JohnMcPherson
Older page: version 5 Last edited on Monday, March 10, 2003 8:24:12 pm by PerryLorier Revert
@@ -6,9 +6,11 @@
  #include <sys/mman.h> 
  
  #ifdef _POSIX_MAPPED_FILES 
  
- __void *mmap(void *__''start''__, size_t __''length''__, int __''prot''__ , int __''flags''__, int __''fd''__, off_t __''offset''__);__ 
+ __void *mmap(void *__''start'', __size_t__ ''length'', __in __ ''prot'', __int__ ''flags'', __int__ ''fd'', __off_t__ ''offset''__);__  
+  
+ __void munmap(void *__''start''__, size_t__ ''length ''__);__ 
  
  #endif 
  
 !!DESCRIPTION 
@@ -53,10 +55,17 @@
  
 Use of a mapped region can result in these signals: 
 ;[SIGSEGV]: Attempted write into a region specified to mmap as read-only. 
 ;[SIGBUS]: Attempted access to a portion of the buffer that does not correspond to the file (for example, beyond the end of the file, including the case where another process has truncated the file). 
+  
+!!AVAILABILITY  
+On [POSIX] systems on which mmap, msync and munmap are available,  
+_POSIX_MAPPED_FILES is defined in <unistd.h> to a value greater than 0.  
+(See also sysconf(3).)  
+  
  
 !!CONFORMING TO 
-SVr4, POSIX.1b (formerly POSIX.4), 4.4BSD. Svr4 documents additional error codes [ENXIO] and [ENODEV]. 
+SVr4, [ POSIX] .1b (formerly POSIX.4), 4.4BSD, SUSv2 . Svr4 documents additional error codes [ENXIO] and [ENODEV]. SUSv2 documents additional error codes  
+[EMFILE] and [EOVERFLOW ]. 
  
 !!SEE ALSO 
 getpagesize(2), msync(2), shm_open(2), B.O. Gallmeister, POSIX.4, O'Reilly, pp. 128-129 and 389-391. 
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.