If this section overlaps an earlier locked section,
both are merged.
File locks are released as soon as the process holding the locks
-closes some file descriptor for the file. A child process does not
-inherit these locks.
+closes some file descriptor for the file.
+A child process does not inherit these locks.
.TP
.B F_TLOCK
Same as
is unlocked or locked by this process; return \-1, set
.I errno
to
-.BR EAGAIN
+.BR EAGAIN
.RB ( EACCES
on some other systems),
if another process holds a lock.
.SH "RETURN VALUE"
-On success, zero is returned. On error, \-1 is returned, and
+On success, zero is returned.
+On error, \-1 is returned, and
.I errno
is set appropriately.
.SH ERRORS