filemon.4: Document FILEMON_SET_FD errors and refine wording a bit

Reviewed by:	emaste, debdrup, Pau Amma
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D34128
This commit is contained in:
Mark Johnston 2022-02-03 09:42:14 -05:00
parent b84ed4e7f6
commit 03399cd6e0

View File

@ -31,7 +31,7 @@
.\" .\"
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd June 15, 2019 .Dd February 1, 2022
.Dt FILEMON 4 .Dt FILEMON 4
.Os .Os
.Sh NAME .Sh NAME
@ -51,10 +51,10 @@ calls.
.Pp .Pp
.Nm .Nm
is not intended to be a security auditing tool. is not intended to be a security auditing tool.
Many system calls are not tracked and binaries of foreign ABI will not be fully Many system calls are not tracked and binaries using a non-native ABI may not
audited. be fully audited.
It is intended for auditing of processes for the purpose of determining its It is intended for auditing of processes for the purpose of determining their
dependencies in an efficient and easily parsable format. dependencies using an efficient and easily parsable format.
An example of this is An example of this is
.Xr make 1 .Xr make 1
which uses this module with which uses this module with
@ -145,6 +145,11 @@ will fail if:
The The
.Nm .Nm
handle is already associated with a file descriptor. handle is already associated with a file descriptor.
.It Bq Er EINVAL
The file descriptor has an invalid type and cannot be used for
tracing.
.It Bq Er EBADF
The file descriptor is invalid or not opened for writing.
.El .El
.Pp .Pp
The The