OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / fopen.3
index b84fe9c..620d8ef 100644 (file)
@@ -5,6 +5,7 @@
 .\" Chris Torek and the American National Standards Committee X3,
 .\" on Information Processing Systems.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -32,6 +33,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)fopen.3    6.8 (Berkeley) 6/29/91
 .\"
@@ -135,7 +137,7 @@ or
 operation between write and read operations on such a stream.
 This operation may be an apparent no-op
 (as in \fIfseek(..., 0L, SEEK_CUR)\fP
-called for its synchronizing side effect.
+called for its synchronizing side effect).
 .PP
 Opening a file in append mode (\fBa\fP as the first character of
 .IR mode )
@@ -143,7 +145,7 @@ causes all subsequent write operations to this stream to occur
 at end-of-file, as if preceded the call:
 .nf
 
-    fseek(stream,0,SEEK_END);
+    fseek(stream, 0, SEEK_END);
 .fi
 .PP
 The
@@ -184,7 +186,7 @@ The primary use of the
 .BR freopen ()
 function is to change the file associated with a standard text stream
 .RI ( stderr ", " stdin ", or " stdout ).
-.SH "RETURN VALUE"
+.SH RETURN VALUE
 Upon successful completion
 .BR fopen (),
 .BR fdopen ()
@@ -238,10 +240,10 @@ function may also fail and set
 .I errno
 for any of the errors specified for the routines
 .BR open (2),
-.BR fclose (3)
+.BR fclose (3),
 and
 .BR fflush (3).
-.SH "CONFORMING TO"
+.SH CONFORMING TO
 The
 .BR fopen ()
 and
@@ -251,7 +253,7 @@ The
 .BR fdopen ()
 function conforms to POSIX.1-1990.
 .SH NOTES
-.SS Glibc Notes
+.SS Glibc notes
 The GNU C library allows the following extensions for the string specified in
 .IR mode :
 .TP
@@ -282,11 +284,11 @@ Currently,
 .\" As at glibc 2.4:
 use of
 .BR mmap (2)
-is only attempted for a file opened for reading.
+is attempted only for a file opened for reading.
 .TP
 .B x
 .\" Since glibc 2.0?
-.\" FIXME C11 specifies this flag
+.\" FIXME C11 specifies this flag
 Open the file exclusively
 (like the
 .B O_EXCL
@@ -331,7 +333,7 @@ When parsing for individual flag characters in
 .IR mode
 (i.e., the characters preceding the "ccs" specification),
 the glibc implementation of
-.\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12685
+.\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=12685
 .BR fopen ()
 and
 .BR freopen ()
@@ -343,9 +345,18 @@ The current implementation of
 .BR fdopen ()
 parses at most 5 characters in
 .IR mode .
-.SH "SEE ALSO"
+.SH SEE ALSO
 .BR open (2),
 .BR fclose (3),
 .BR fileno (3),
 .BR fmemopen (3),
 .BR fopencookie (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.