aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Johnson <fjohnson@felix-johnson.com>2025-12-29 19:21:26 +0000
committerAlexander Ziaee <ziaee@FreeBSD.org>2026-01-01 19:04:30 +0000
commit7fa86256aaca948671c38f462e9ef4692799d8fc (patch)
tree5d9d2ba0597fd8ef72cb4585389e88d88fe4dfd4
parent47db87fe8398d975e6bd8634eb8104ad0c001743 (diff)
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 <brennan@umanwizard.com> Differential Revision: https://reviews.freebsd.org/D49072 (cherry picked from commit e2afbc45258f2fa4bdcf126e959ac660e76fc802)
-rw-r--r--lib/libc/sys/ioctl.25
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/sys/ioctl.2 b/lib/libc/sys/ioctl.2
index d5b09cf67eba..27c290019779 100644
--- a/lib/libc/sys/ioctl.2
+++ b/lib/libc/sys/ioctl.2
@@ -27,7 +27,7 @@
.\"
.\" @(#)ioctl.2 8.2 (Berkeley) 12/11/93
.\"
-.Dd September 11, 2013
+.Dd December 29, 2025
.Dt IOCTL 2
.Os
.Sh NAME
@@ -112,6 +112,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