this post was submitted on 07 Dec 2023
1475 points (91.7% liked)

linuxmemes

20868 readers
2486 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 

An oldie, but a goodie

you are viewing a single comment's thread
view the rest of the comments
[–] MooseBoys 17 points 9 months ago (2 children)

I find it ironic that Linus’s explanation for ENOENT being invalid for an ioctl given its meaning of “No such file or directory”, while simultaneously ioctl can return ENOTTY when using a mismatched device fd despite the error meaning “Not a typewriter.”

[–] [email protected] 21 points 9 months ago

But a file handle can be attached to a TTY.

[–] [email protected] 4 points 9 months ago