aboutsummaryrefslogtreecommitdiff
path: root/arch/i386/bits/ioctl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-05-26 18:22:12 -0400
committerRich Felker <dalias@aerifal.cx>2013-05-26 18:22:12 -0400
commitd9265653552a2b667bf3e84407a06edaa7e9f74f (patch)
tree2781a8b5385ee8224b4cda826ac159c3b769b995 /arch/i386/bits/ioctl.h
parentchange underlying type of clock_t to be uniform and match ABI (diff)
parentfix the prototype of settimeofday to follow the original BSD declaration (diff)
downloadgrovel-d9265653552a2b667bf3e84407a06edaa7e9f74f.tar.gz
grovel-d9265653552a2b667bf3e84407a06edaa7e9f74f.tar.xz
Merge remote-tracking branch 'nsz/review'
Diffstat (limited to 'arch/i386/bits/ioctl.h')
-rw-r--r--arch/i386/bits/ioctl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/i386/bits/ioctl.h b/arch/i386/bits/ioctl.h
index 336c71c3..9d75118e 100644
--- a/arch/i386/bits/ioctl.h
+++ b/arch/i386/bits/ioctl.h
@@ -4,9 +4,9 @@
#define _IOC_READ 2U
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
-#define _IOW(a,b,c) _IOC(1,(a),(b),sizeof(c))
-#define _IOR(a,b,c) _IOC(2,(a),(b),sizeof(c))
-#define _IOWR(a,b,c) _IOC(3,(a),(b),sizeof(c))
+#define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c))
+#define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c))
+#define _IOWR(a,b,c) _IOC(_IOC_READ|_IOC_WRITE,(a),(b),sizeof(c))
#define TCGETS 0x5401
#define TCSETS 0x5402