The branch main has been updated by ziaee:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e2afbc45258f2fa4bdcf126e959ac660e76fc802

commit e2afbc45258f2fa4bdcf126e959ac660e76fc802
Author:     Felix Johnson <[email protected]>
AuthorDate: 2025-12-29 19:21:26 +0000
Commit:     Alexander Ziaee <[email protected]>
CommitDate: 2025-12-29 19:25:23 +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 <[email protected]>
    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 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

Reply via email to