summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/devctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/include/devctl.h')
-rw-r--r--cpukit/posix/include/devctl.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/cpukit/posix/include/devctl.h b/cpukit/posix/include/devctl.h
new file mode 100644
index 0000000000..e3fd39128f
--- /dev/null
+++ b/cpukit/posix/include/devctl.h
@@ -0,0 +1,29 @@
+/* devctl.h
+ *
+ */
+
+#ifndef __POSIX_DEVICE_CONTROL_h
+#define __POSIX_DEVICE_CONTROL_h
+
+#include <rtems/posix/features.h>
+
+#if defined(_POSIX_DEVICE_CONTROL)
+
+#include <sys/types.h>
+#include <unistd.h>
+
+/*
+ * 21.2.1 Control a Device, P1003.4b/D8, p. 65
+ */
+
+int devctl(
+ int filedes,
+ void *dev_data_ptr,
+ size_t nbyte,
+ int *dev_info_ptr
+);
+
+#endif
+
+#endif
+/* end of include file */