summaryrefslogtreecommitdiff
path: root/hurd/ioctl-decode.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-01-24 22:53:41 +0000
committerRoland McGrath <roland@gnu.org>1999-01-24 22:53:41 +0000
commitc2d213e2c185befda32325691750461b8395ba3d (patch)
tree71d8946d53e3bb4cffd297de6d958fe427258799 /hurd/ioctl-decode.h
parente2d39f1f8f05d27d82e50159846128cdbf835c98 (diff)
1999-01-24 Roland McGrath <roland@baalperazim.frob.com>
* Makefile: Add rules for generating prototype ?ioctl.defs files from a list of C headers that define the ioctl request macros. (DIST_FILES): Add ioctl-tmpl.sym ioctl.awk gensym.awk. * gensym.awk, ioctl-decode.h, ioctl-tmpl.sym, ioctl.awk: New files supporting those rules.
Diffstat (limited to 'hurd/ioctl-decode.h')
-rw-r--r--hurd/ioctl-decode.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/hurd/ioctl-decode.h b/hurd/ioctl-decode.h
new file mode 100644
index 00000000..f65880cf
--- /dev/null
+++ b/hurd/ioctl-decode.h
@@ -0,0 +1,15 @@
+/* This file is used by the Makefile rules for generating
+ Xioctl-proto.defs, see Makefile for details. */
+
+#define CMD(request) _IOC_COMMAND (request)
+#define TYPE(request) _IOC_TYPE (request)
+#define INOUT(request) _IOC_INOUT (request)
+
+#define SUBID(request) IOC_COMMAND_SUBID (_IOC_COMMAND (request))
+
+#define TYPE0(request) _IOT_TYPE0 (_IOC_TYPE (request))
+#define TYPE1(request) _IOT_TYPE1 (_IOC_TYPE (request))
+#define TYPE2(request) _IOT_TYPE2 (_IOC_TYPE (request))
+#define COUNT0(request) _IOT_COUNT0 (_IOC_TYPE (request))
+#define COUNT1(request) _IOT_COUNT1 (_IOC_TYPE (request))
+#define COUNT2(request) _IOT_COUNT2 (_IOC_TYPE (request))