Bug 239504 - ioctl(2) man page doesn't mention that it can fail with EACCES
Summary: ioctl(2) man page doesn't mention that it can fail with EACCES
Status: Open
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: needs-qa, patch
Depends on:
Blocks:
 
Reported: 2019-07-28 21:04 UTC by Brennan Vincent
Modified: 2021-10-24 03:11 UTC (History)
2 users (show)

See Also:


Attachments
ioctl(2) patch (464 bytes, patch)
2021-10-24 03:11 UTC, Felix Johnson
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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().