chiark / gitweb /
see also, minor fixes
[chiark-utils.git] / cprogs / with-lock-ex.1
index 63ac832f3e6a82b4193adc3a6ca58553171533df..f83f263f1ec3a7cd2b651b8467586c3880bca978 100644 (file)
@@ -16,7 +16,7 @@ unlocked automatically by the kernel.
 .PP
 If the file does not exist it is created, with permissions
 .B rw
-for each user class for which the default umask has
+for each user class for which the umask has
 .BR w .
 .SH OPTIONS
 .TP
@@ -99,6 +99,14 @@ and deleted the file in the meantime; you must now close your
 filedescriptor and start again.
 .B with-lock-ex
 follows this specification.
+.PP
+Note that
+.BR flock (2)
+is a different kind of lock to
+.BR fcntl (2).
+.B with-lock-ex
+uses
+.BR fcntl .
 .SH AUTHOR
 This Manual page was written by Matthew Vernon <matthew@debian.org>
 and enhanced by Ian Jackson <ian@chiark.greenend.org.uk>, in 2003, but
@@ -107,3 +115,7 @@ may be used by anyone.
 with-lock-ex was written by Ian Jackons <ian@chiark.greenend.org.uk>
 in 1993, 1994, 1995, 1996, 1998, 1999. He has placed it in the public
 domain. 
+.SH "SEE ALSO"
+.BR fcntl (2),
+.BR flock (2),
+.BR chmod (2)