reverted r40686

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40699 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2011-02-26 10:45:03 +00:00
parent 7d805b2d52
commit fa90700d74

View File

@ -12,7 +12,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <OS.h>
@ -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