summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/posix_ioctl_check.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/posix_ioctl_check.c')
-rw-r--r--openbsd-compat/posix_ioctl_check.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsd-compat/posix_ioctl_check.c b/openbsd-compat/posix_ioctl_check.c
new file mode 100644
index 0000000..599a3bf
--- /dev/null
+++ b/openbsd-compat/posix_ioctl_check.c
@@ -0,0 +1,7 @@
+#include <sys/ioctl.h>
+
+int
+posix_ioctl_check(int fd)
+{
+ return ioctl(fd, -1, 0);
+}