lseek.2 (108040) | lseek.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)lseek.2 8.3 (Berkeley) 4/19/94 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)lseek.2 8.3 (Berkeley) 4/19/94 |
33.\" $FreeBSD: head/lib/libc/sys/lseek.2 108040 2002-12-18 13:33:04Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/lseek.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd April 19, 1994 36.Dt LSEEK 2 37.Os 38.Sh NAME 39.Nm lseek 40.Nd reposition read/write file offset 41.Sh LIBRARY --- 73 unchanged lines hidden (view full) --- 115the error. 116.Sh ERRORS 117The 118.Fn lseek 119system call 120will fail and the file position pointer will remain unchanged if: 121.Bl -tag -width Er 122.It Bq Er EBADF | 34.\" 35.Dd April 19, 1994 36.Dt LSEEK 2 37.Os 38.Sh NAME 39.Nm lseek 40.Nd reposition read/write file offset 41.Sh LIBRARY --- 73 unchanged lines hidden (view full) --- 115the error. 116.Sh ERRORS 117The 118.Fn lseek 119system call 120will fail and the file position pointer will remain unchanged if: 121.Bl -tag -width Er 122.It Bq Er EBADF |
123The |
|
123.Fa fildes | 124.Fa fildes |
125argument |
|
124is not an open file descriptor. 125.It Bq Er EINVAL | 126is not an open file descriptor. 127.It Bq Er EINVAL |
126.Fa Whence | 128The 129.Fa whence 130argument |
127is not a proper value 128or the resulting file offset would 129be negative for a non-character special file. 130.It Bq Er EOVERFLOW 131The resulting file offset would be a value which cannot be represented 132correctly in an object of type 133.Fa off_t . 134.It Bq Er ESPIPE | 131is not a proper value 132or the resulting file offset would 133be negative for a non-character special file. 134.It Bq Er EOVERFLOW 135The resulting file offset would be a value which cannot be represented 136correctly in an object of type 137.Fa off_t . 138.It Bq Er ESPIPE |
139The |
|
135.Fa fildes | 140.Fa fildes |
141argument |
|
136is associated with a pipe, socket, or FIFO. 137.El 138.Sh SEE ALSO 139.Xr dup 2 , 140.Xr open 2 141.Sh BUGS 142This document's use of 143.Fa whence 144is incorrect English, but is maintained for historical reasons. 145.Sh STANDARDS 146The 147.Fn lseek 148system call is expected to conform to 149.St -p1003.1-90 . 150.Sh HISTORY 151The 152.Fn lseek 153function appeared in 154.At v7 . | 142is associated with a pipe, socket, or FIFO. 143.El 144.Sh SEE ALSO 145.Xr dup 2 , 146.Xr open 2 147.Sh BUGS 148This document's use of 149.Fa whence 150is incorrect English, but is maintained for historical reasons. 151.Sh STANDARDS 152The 153.Fn lseek 154system call is expected to conform to 155.St -p1003.1-90 . 156.Sh HISTORY 157The 158.Fn lseek 159function appeared in 160.At v7 . |