Bug 239504

Summary: ioctl(2) man page doesn't mention that it can fail with EACCES
Product: Documentation Reporter: Brennan Vincent <brennan>
Component: Manual PagesAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: doc, felix.the.red
Priority: --- Keywords: needs-qa, patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
ioctl(2) patch none

Description Brennan Vincent 2019-07-28 21:04:03 UTC
`ioctl` can fail with EACCES; for example:

https://github.com/freebsd/freebsd/blob/master/sys/kern/tty.c#L1874

But `man 2 ioctl` only lists EBADF, ENOTTY, EINVAL, and EFAULT.
Comment 1 Felix Johnson freebsd_triage 2021-10-24 03:11:08 UTC
Created attachment 228974 [details]
ioctl(2) patch

Document EACCES as a possible return value for ioctl().