Deleted Added
full compact
fcntl.2 (108028) fcntl.2 (108087)
1.\" Copyright (c) 1983, 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.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94
1.\" Copyright (c) 1983, 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.\" @(#)fcntl.2 8.2 (Berkeley) 1/12/94
33.\" $FreeBSD: head/lib/libc/sys/fcntl.2 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/fcntl.2 108087 2002-12-19 09:40:28Z ru $
34.\"
35.Dd January 12, 1994
36.Dt FCNTL 2
37.Os
38.Sh NAME
39.Nm fcntl
40.Nd file control
41.Sh LIBRARY

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

404or exclusive lock
405.Pq Dv F_WRLCK ,
406and the segment of a file to be locked is already
407exclusive-locked by another process;
408or the type is an exclusive lock and some portion of the
409segment of a file to be locked is already shared-locked or
410exclusive-locked by another process.
411.It Bq Er EBADF
34.\"
35.Dd January 12, 1994
36.Dt FCNTL 2
37.Os
38.Sh NAME
39.Nm fcntl
40.Nd file control
41.Sh LIBRARY

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

404or exclusive lock
405.Pq Dv F_WRLCK ,
406and the segment of a file to be locked is already
407exclusive-locked by another process;
408or the type is an exclusive lock and some portion of the
409segment of a file to be locked is already shared-locked or
410exclusive-locked by another process.
411.It Bq Er EBADF
412.Fa \&Fd
412The
413.Fa fd
414argument
413is not a valid open file descriptor.
414.Pp
415The argument
416.Fa cmd
417is
418.Dv F_SETLK
419or
420.Dv F_SETLKW ,

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

447and a deadlock condition was detected.
448.It Bq Er EINTR
449The argument
450.Fa cmd
451is
452.Dv F_SETLKW ,
453and the system call was interrupted by a signal.
454.It Bq Er EINVAL
415is not a valid open file descriptor.
416.Pp
417The argument
418.Fa cmd
419is
420.Dv F_SETLK
421or
422.Dv F_SETLKW ,

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

449and a deadlock condition was detected.
450.It Bq Er EINTR
451The argument
452.Fa cmd
453is
454.Dv F_SETLKW ,
455and the system call was interrupted by a signal.
456.It Bq Er EINVAL
455.Fa Cmd
457The
458.Fa cmd
459argument
456is
457.Dv F_DUPFD
458and
459.Fa arg
460is negative or greater than the maximum allowable number
461(see
462.Xr getdtablesize 2 ) .
463.Pp

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

508.Dv F_GETLK ,
509.Dv F_SETLK
510or
511.Dv F_SETLKW
512and an
513.Fa off_t
514calculation overflowed.
515.It Bq Er EPERM
460is
461.Dv F_DUPFD
462and
463.Fa arg
464is negative or greater than the maximum allowable number
465(see
466.Xr getdtablesize 2 ) .
467.Pp

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

512.Dv F_GETLK ,
513.Dv F_SETLK
514or
515.Dv F_SETLKW
516and an
517.Fa off_t
518calculation overflowed.
519.It Bq Er EPERM
516.Fa Cmd
520The
521.Fa cmd
522argument
517is
518.Dv F_SETOWN
519and
520the process ID or process group given as an argument is in a
521different session than the caller.
522.It Bq Er ESRCH
523is
524.Dv F_SETOWN
525and
526the process ID or process group given as an argument is in a
527different session than the caller.
528.It Bq Er ESRCH
523.Fa Cmd
529The
530.Fa cmd
531argument
524is
525.Dv F_SETOWN
526and
527the process ID given as argument is not in use.
528.El
529.Pp
530In addition, if
531.Fa fd

--- 27 unchanged lines hidden ---
532is
533.Dv F_SETOWN
534and
535the process ID given as argument is not in use.
536.El
537.Pp
538In addition, if
539.Fa fd

--- 27 unchanged lines hidden ---