-on an error a \-1 is returned and an error code is left in
-the global location \fIerrno\fP.
-.SH "ERRORS
-The \fIflock\fP call fails if:
-.TP 20
-[EWOULDBLOCK]
-The file is locked and the LOCK_NB option was specified.
-.TP 20
-[EBADF]
-The argument \fIfd\fP is an invalid descriptor.
-.TP 20
-[EINVAL]
-The argument \fIfd\fP refers to an object other than a file.
-.SH "SEE ALSO"
-open(2), close(2), dup(2), execve(2), fork(2)
+on an error a -1 is returned and an error code is left in
+the global location
+.Va errno .
+.Sh ERRORS
+The
+.Fn flock
+call fails if:
+.Bl -tag -width EWOULDBLOCKAA
+.It Bq Er EWOULDBLOCK
+The file is locked and the
+.Dv LOCK_NB
+option was specified.
+.It Bq Er EBADF
+The argument
+.Fa fd
+is an invalid descriptor.
+.It Bq Er EINVAL
+The argument
+.Fa fd
+refers to an object other than a file.
+.El
+.Sh SEE ALSO
+.Xr open 2 ,
+.Xr close 2 ,
+.Xr dup 2 ,
+.Xr execve 2 ,
+.Xr fork 2
+.Sh HISTORY
+The
+.Nm
+function call appeared in
+.Bx 4.2 .