From fa90700d74ece5006f554cdf0bffb9202c3a0a71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 26 Feb 2011 10:45:03 +0000 Subject: [PATCH] reverted r40686 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40699 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/fd.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/system/kernel/fs/fd.cpp b/src/system/kernel/fs/fd.cpp index 06b3b0cf04..4bc7bf9a53 100644 --- a/src/system/kernel/fs/fd.cpp +++ b/src/system/kernel/fs/fd.cpp @@ -12,7 +12,6 @@ #include #include -#include #include @@ -516,17 +515,6 @@ fd_ioctl(bool kernelFD, int fd, uint32 op, void* buffer, size_t length) if (descriptor == NULL) return B_FILE_ERROR; - if (op == FIONBIO || op == FIONREAD) { - switch (descriptor->type) { - case FDTYPE_FILE: - case FDTYPE_DIR: - case FDTYPE_ATTR_DIR: - case FDTYPE_ATTR: - put_fd(descriptor); - return ENOTTY; - } - } - if (descriptor->ops->fd_ioctl) status = descriptor->ops->fd_ioctl(descriptor, op, buffer, length); else