Deleted Added
full compact
fopen.3 (107619) fopen.3 (108087)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)fopen.3 8.1 (Berkeley) 6/4/93
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" Chris Torek and the American National Standards Committee X3,
6.\" on Information Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34.\" SUCH DAMAGE.
35.\"
36.\" @(#)fopen.3 8.1 (Berkeley) 6/4/93
37.\" $FreeBSD: head/lib/libc/stdio/fopen.3 107619 2002-12-04 18:57:46Z ru $
37.\" $FreeBSD: head/lib/libc/stdio/fopen.3 108087 2002-12-19 09:40:28Z ru $
38.\"
39.Dd June 4, 1993
40.Dt FOPEN 3
41.Os
42.Sh NAME
43.Nm fopen ,
44.Nm fdopen ,
45.Nm freopen

--- 86 unchanged lines hidden (view full) ---

132requires that
133a file positioning function intervene between output and input, unless
134an input operation encounters end-of-file.
135.Pp
136The
137.Fn fdopen
138function associates a stream with the existing file descriptor,
139.Fa fildes .
38.\"
39.Dd June 4, 1993
40.Dt FOPEN 3
41.Os
42.Sh NAME
43.Nm fopen ,
44.Nm fdopen ,
45.Nm freopen

--- 86 unchanged lines hidden (view full) ---

132requires that
133a file positioning function intervene between output and input, unless
134an input operation encounters end-of-file.
135.Pp
136The
137.Fn fdopen
138function associates a stream with the existing file descriptor,
139.Fa fildes .
140The
141.Fa mode
140The mode
142of the stream must be compatible with the mode of the file descriptor.
143When the stream is closed via
144.Xr fclose 3 ,
145.Fa fildes
146is closed also.
147.Pp
148The
149.Fn freopen

--- 31 unchanged lines hidden (view full) ---

181is returned and the global variable
182.Va errno
183is set to indicate the error.
184.Sh ERRORS
185.Bl -tag -width Er
186.It Bq Er EINVAL
187The
188.Fa mode
141of the stream must be compatible with the mode of the file descriptor.
142When the stream is closed via
143.Xr fclose 3 ,
144.Fa fildes
145is closed also.
146.Pp
147The
148.Fn freopen

--- 31 unchanged lines hidden (view full) ---

180is returned and the global variable
181.Va errno
182is set to indicate the error.
183.Sh ERRORS
184.Bl -tag -width Er
185.It Bq Er EINVAL
186The
187.Fa mode
189provided to
188argument
189to
190.Fn fopen ,
191.Fn fdopen ,
192or
193.Fn freopen
194was invalid.
195.El
196.Pp
197The

--- 55 unchanged lines hidden ---
190.Fn fopen ,
191.Fn fdopen ,
192or
193.Fn freopen
194was invalid.
195.El
196.Pp
197The

--- 55 unchanged lines hidden ---