aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/posix/sys/ioctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/posix/sys/ioctl.h')
-rw-r--r--extras/mini-os/include/posix/sys/ioctl.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/extras/mini-os/include/posix/sys/ioctl.h b/extras/mini-os/include/posix/sys/ioctl.h
new file mode 100644
index 0000000000..ecf3080d5a
--- /dev/null
+++ b/extras/mini-os/include/posix/sys/ioctl.h
@@ -0,0 +1,16 @@
+#ifndef _POSIX_SYS_IOCTL_H
+#define _POSIX_SYS_IOCTL_H
+
+int ioctl(int fd, int request, ...);
+
+#define _IOC_NONE 0
+#define _IOC_WRITE 1
+#define _IOC_READ 2
+
+#define _IOC(rw, class, n, size) \
+ (((rw ) << 30) | \
+ ((class) << 22) | \
+ ((n ) << 14) | \
+ ((size ) << 0))
+
+#endif /* _POSIX_SYS_IOCTL_H */