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
7777 #define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */
7878 #define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
7979 #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 */
8181
8282 #define FIONCLEX 0x5450
8383 #define FIOCLEX 0x5451