]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/lockf.3.patch
Libc-498.1.5.tar.gz
[apple/libc.git] / gen / FreeBSD / lockf.3.patch
1 --- lockf.3 2004-11-25 11:38:01.000000000 -0800
2 +++ lockf.3.edit 2006-07-15 14:04:01.000000000 -0700
3 @@ -47,7 +47,7 @@
4 .Sh SYNOPSIS
5 .In unistd.h
6 .Ft int
7 -.Fn lockf "int filedes" "int function" "off_t size"
8 +.Fn lockf "int fildes" "int function" "off_t size"
9 .Sh DESCRIPTION
10 The
11 .Fn lockf
12 @@ -56,10 +56,10 @@
13 .Fn lockf
14 from other processes which attempt to lock the locked file section will
15 either return an error value or block until the section becomes unlocked.
16 -All the locks for a process are removed when the process terminates.
17 +All of the locks for a process are removed when the process terminates.
18 .Pp
19 The argument
20 -.Fa filedes
21 +.Fa fildes
22 is an open file descriptor.
23 The file descriptor must have been opened either for write-only
24 .Dv ( O_WRONLY )
25 @@ -214,7 +214,7 @@
26 and the section is already locked by another process.
27 .It Bq Er EBADF
28 The argument
29 -.Fa filedes
30 +.Fa fildes
31 is not a valid open file descriptor.
32 .Pp
33 The argument
34 @@ -224,7 +224,7 @@
35 or
36 .Dv F_TLOCK ,
37 and
38 -.Fa filedes
39 +.Fa fildes
40 is not a valid file descriptor open for writing.
41 .It Bq Er EDEADLK
42 The argument
43 @@ -243,25 +243,29 @@
44 The argument
45 .Fa function
46 is not one of
47 -.Dv F_ULOCK ,
48 .Dv F_LOCK ,
49 -.Dv F_TLOCK
50 +.Dv F_TEST ,
51 +.Dv F_TLOCK ,
52 or
53 -.Dv F_TEST .
54 +.Dv F_ULOCK .
55 .Pp
56 The argument
57 -.Fa filedes
58 -refers to a file that does not support locking.
59 +.Fa fildes
60 +refers to a file that does not support advisory locking.
61 .It Bq Er ENOLCK
62 The argument
63 .Fa function
64 is
65 -.Dv F_ULOCK ,
66 -.Dv F_LOCK
67 -or
68 +.Dv F_LOCK ,
69 .Dv F_TLOCK ,
70 +or
71 +.Dv F_ULOCK
72 and satisfying the lock or unlock request would result in the number
73 of locked regions in the system exceeding a system-imposed limit.
74 +.It Bq Er EOPNOTSUPP
75 +The argument
76 +.Fa fildes
77 +refers to a socket; these do not support advisory locking.
78 .El
79 .Sh SEE ALSO
80 .Xr fcntl 2 ,