From e2afbc45258f2fa4bdcf126e959ac660e76fc802 Mon Sep 17 00:00:00 2001 From: Felix Johnson Date: Mon, 29 Dec 2025 14:21:26 -0500 Subject: [PATCH] ioctl.2: Mention EACCES ioctls can fail with EACCES, see sys/kern/tty.c PR: 239504 MFC after: 3 days Reviewed by: ziaee Reported by: Brennan Vincent Differential Revision: https://reviews.freebsd.org/D49072 --- lib/libsys/ioctl.2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/libsys/ioctl.2 b/lib/libsys/ioctl.2 index e96c5c48d09..5784f43ef98 100644 --- a/lib/libsys/ioctl.2 +++ b/lib/libsys/ioctl.2 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd September 11, 2013 +.Dd December 29, 2025 .Dt IOCTL 2 .Os .Sh NAME @@ -110,6 +110,9 @@ The system call will fail if: .Bl -tag -width Er +.It Bq Er EACCES +The process does not have permission to call this +.Nm . .It Bq Er EBADF The .Fa fd