git: bd6289c06471 - stable/15 - ioctl.2: Mention EACCES
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 Jan 2026 18:05:56 UTC
The branch stable/15 has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=bd6289c06471871dd83285ab9b50c49bc5f74652
commit bd6289c06471871dd83285ab9b50c49bc5f74652
Author: Felix Johnson <fjohnson@felix-johnson.com>
AuthorDate: 2025-12-29 19:21:26 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-01-01 18:05:06 +0000
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)
---
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 e96c5c48d097..5784f43ef98b 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