correct file open mode for mmap_private man page

This commit is contained in:
leitner 2020-12-07 14:20:57 +00:00
parent cf69bb3ac1
commit b0306a795d

View File

@ -6,7 +6,7 @@ mmap_private \- memory map a file for reading and writing
char* \fBmmap_private\fP(const char* \fIfilename\fR,size_t* \fIfilesize\fR); char* \fBmmap_private\fP(const char* \fIfilename\fR,size_t* \fIfilesize\fR);
.SH DESCRIPTION .SH DESCRIPTION
mmap_private opens \fIfilename\fR for reading and writing, maps the mmap_private opens \fIfilename\fR for reading, maps the
whole file into memory, closes the file, writes the length of the file whole file into memory, closes the file, writes the length of the file
to \fIfilesize\fR and returns a pointer to the mapped file. to \fIfilesize\fR and returns a pointer to the mapped file.