You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Not a Typewriter

"In computing, "Not a typewriter" or ENOTTY is an error code defined in the errno.h found on many Unix systems. This code is now used to indicate that an invalid ioctl (input/output control) number was specified in an ioctl system call." Reference: https://en.wikipedia.org/wiki/Not_a_typewriter

ERRORS

EBADF fd is not a valid file descriptor.
EFAULT argp references an inaccessible memory area.
EINVAL request or argp is not valid.
ENOTTY fd is not associated with a character special device.
ENOTTY The specified request does not apply to the kind of object that the file descriptor fd references.


Reference: https://www.man7.org/linux/man-pages/man2/ioctl.2.html

Linus Explains All

  • No labels