summaryrefslogtreecommitdiff
path: root/arch/mips/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/mips/bits/ioctl.h
parent5e642b5a2395893873affa2a121a694943b3f4e0 (diff)
parent31ff797787d89bc01a69ca672fb2340ff21a827e (diff)
downloadmusl-d9265653552a2b667bf3e84407a06edaa7e9f74f.tar.gz
Merge remote-tracking branch 'nsz/review'
Diffstat (limited to 'arch/mips/bits/ioctl.h')
-rw-r--r--arch/mips/bits/ioctl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/bits/ioctl.h b/arch/mips/bits/ioctl.h
index 5040226c..83fb1678 100644
--- a/arch/mips/bits/ioctl.h
+++ b/arch/mips/bits/ioctl.h
@@ -3,10 +3,10 @@
#define _IOC_READ 2U
#define _IOC_WRITE 4U
-#define _IO(a,b) _IOC(1U,(a),(b),0)
-#define _IOW(a,b,c) _IOC(4U,(a),(b),sizeof(c))
-#define _IOR(a,b,c) _IOC(2U,(a),(b),sizeof(c))
-#define _IOWR(a,b,c) _IOC(6U,(a),(b),sizeof(c))
+#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
+#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 TCGETA 0x5401
#define TCSETA 0x5402