]> git.saurik.com Git - apple/libc.git/blob - gen/FreeBSD/lockf.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / gen / FreeBSD / lockf.3.patch
1 --- lockf.3.orig 2009-11-07 14:51:38.000000000 -0800
2 +++ lockf.3 2009-11-07 14:51:40.000000000 -0800
3 @@ -40,7 +40,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 @@ -49,10 +49,10 @@ Calls to
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 @@ -207,7 +207,7 @@ or
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 @@ -217,7 +217,7 @@ is
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 @@ -236,25 +236,29 @@ was interrupted by the delivery of a sig
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 ,