History

tty: Fix TIOCGPTPEER ioctl definition

This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag because it doesn't copy anything from/to userspace to access the argument.

Gleb Fotengauer-Malinovskiy committed 9 years ago

Commit c6325171 parent 6509f308 files · +8 −8Browse files

Showing the changes to include/uapi (1 of 8 files). Show all

Unified · Split

include/uapi/asm-generic/ioctls.h+1−1
@@ -77,7 +77,7 @@ · 76 unmodified lines
77#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */77#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */
78#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */78#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
79#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */79#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */
80#define TIOCGPTPEER _IOR('T', 0x41, int) /* Safely open the slave */80#define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */
81 81
82#define FIONCLEX 0x545082#define FIONCLEX 0x5450
83#define FIOCLEX 0x545183#define FIOCLEX 0x5451