Document 'm' (mmap) flag.

Document 'c' (notcancel) flag.
This commit is contained in:
Michael Kerrisk 2006-05-03 23:52:08 +00:00
parent 80cd959a33
commit bcd70adc0e
1 changed files with 22 additions and 2 deletions

View File

@ -39,7 +39,7 @@
.\" Modified, aeb, 960421, 970806
.\" Modified, joey, aeb, 2002-01-03
.\"
.TH FOPEN 3 2002-01-03 "BSD MANPAGE" "Linux Programmer's Manual"
.TH FOPEN 3 2006-05-04 "BSD MANPAGE" "Linux Programmer's Manual"
.SH NAME
fopen, fdopen, freopen \- stream open functions
.SH SYNOPSIS
@ -230,10 +230,28 @@ functions conform to ANSI X3.159-1989 (``ANSI C''). The
.BR fdopen ()
function conforms to IEEE Std1003.1-1988 (``POSIX.1'').
.SH "GLIBC EXTENSIONS"
The GNU C libary allows the following extension for the string specified in
The GNU C libary allows the following extensions for the string specified in
.IR mode :
.TP
.BR c " (since glibc 2.3.3)"
Do not make the open operation,
or subsequent read and write operations,
thread cancellation points.
.TP
.BR m " (since glibc 2.3)"
Attempt to access the file using
.BR mmap (2),
rather than I/O system calls
.RB ( read (2),
.BR write (2)).
Currently,
.\" As at glibc 2.4:
this
.BR mmap (2)
is only used for a file opened for reading.
.TP
.B x
.\" Since glibc 2.1?
Open the file exclusively
(like the
.B O_EXCL
@ -245,6 +263,8 @@ fails, and sets
.I errno
to
.BR EEXIST .
This flag is ignored for
.BR fdopen ().
.\" FIXME document /,ccs= charset/
.SH "SEE ALSO"
.BR open (2),