bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mmap doc fix


From: Marcus Brinkmann
Subject: mmap doc fix
Date: Tue, 2 Oct 2001 00:10:35 +0200
User-agent: Mutt/1.3.22i

Hi,

The following patch documents that you can safely close the file.
(You might want to word it differently.  I read the POSIX manual just before
writing that, so I had to cook something up that doesn't copy the wording,
blech).

>From reading the mmap section, you can not know that mappings don't require
the file to be open.

Thanks,
Marcus

--- llio.texi.new       Tue Oct  2 00:02:24 2001
+++ llio.texi   Tue Oct  2 00:07:00 2001
@@ -1153,7 +1153,8 @@
 
 The @code{mmap} function creates a new mapping, connected to bytes
 (@var{offset}) to (@var{offset} + @var{length} - 1) in the file open on
address@hidden
address@hidden  A new reference for the file specified by @var{filedes}
+is created, which is not removed by closing the file.
 
 @var{address} gives a preferred starting address for the mapping.
 @code{NULL} expresses no preference. Any previous mapping at that

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org address@hidden
Marcus Brinkmann              GNU    http://www.gnu.org    address@hidden
address@hidden
http://www.marcus-brinkmann.de



reply via email to

[Prev in Thread] Current Thread [Next in Thread]