Deleted Added
full compact
fseek.3 (79754) fseek.3 (81666)
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.\" @(#)fseek.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.\" @(#)fseek.3 8.1 (Berkeley) 6/4/93
37.\" $FreeBSD: head/lib/libc/stdio/fseek.3 79754 2001-07-15 07:53:42Z dd $
37.\" $FreeBSD: head/lib/libc/stdio/fseek.3 81666 2001-08-15 02:07:47Z ache $
38.\"
39.Dd March 5, 1999
40.Dt FSEEK 3
41.Os
42.Sh NAME
43.Nm fgetpos ,
44.Nm fseek ,
45.Nm fseeko ,

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

175.It Bq Er EBADF
176The
177.Fa stream
178specified
179is not a seekable stream.
180.It Bq Er EINVAL
181The
182.Fa whence
38.\"
39.Dd March 5, 1999
40.Dt FSEEK 3
41.Os
42.Sh NAME
43.Nm fgetpos ,
44.Nm fseek ,
45.Nm fseeko ,

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

175.It Bq Er EBADF
176The
177.Fa stream
178specified
179is not a seekable stream.
180.It Bq Er EINVAL
181The
182.Fa whence
183argument to
184.Fn fseek
185was not
186.Dv SEEK_SET ,
187.Dv SEEK_END ,
188or
189.Dv SEEK_CUR .
183argument is invalid.
184The resulting file-position
185indicator would be set to a negative value.
190.It Bq Er EOVERFLOW
186.It Bq Er EOVERFLOW
191For
192.Fn ftell ,
193the resulting file offset would be a value which
194cannot be represented correctly in an object of type long.
187The resulting file offset would be a value which
188cannot be represented correctly in an object of type requested.
195.El
196.Pp
197The functions
198.Fn fgetpos ,
199.Fn fseek ,
200.Fn fseeko ,
201.Fn fsetpos ,
202.Fn ftell ,

--- 30 unchanged lines hidden ---
189.El
190.Pp
191The functions
192.Fn fgetpos ,
193.Fn fseek ,
194.Fn fseeko ,
195.Fn fsetpos ,
196.Fn ftell ,

--- 30 unchanged lines hidden ---