changed ioctl hook return code when the opcode isn't supported.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40786 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2011-03-02 18:49:02 +00:00
parent aec3882d0b
commit e523d3cfc1
10 changed files with 10 additions and 10 deletions
@@ -268,7 +268,7 @@ static status_t
acpi_namespace_control(void* cookie, uint32 op, void* arg, size_t len)
{
dprintf("acpi_ns_dump: device_control\n");
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
@@ -394,7 +394,7 @@ fwohci_ioctl (void *cookie, u_long cmd, void *data, size_t len)
err = EINVAL;
break;
default:
err = EINVAL;
err = ENOTTY;
break;
}
return err;
@@ -750,7 +750,7 @@ ide_sim_ioctl(ide_bus_info *bus, uint8 targetID, uint32 op, void *buffer, size_t
}
}
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
@@ -508,7 +508,7 @@ keyboard_ioctl(void *_cookie, uint32 op, void *buffer, size_t length)
default:
INFO("ps2: invalid ioctl 0x%lx\n", op);
return EINVAL;
return B_DEV_INVALID_IOCTL;
}
}
@@ -510,7 +510,7 @@ standard_mouse_ioctl(void *_cookie, uint32 op, void *buffer, size_t length)
default:
TRACE("ps2: ioctl unknown mouse opcode: %ld\n", op);
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
}
@@ -767,7 +767,7 @@ synaptics_ioctl(void *_cookie, uint32 op, void *buffer, size_t length)
default:
TRACE("SYNAPTICS: unknown opcode: %ld\n", op);
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
}
@@ -471,7 +471,7 @@ scsi_ioctl(scsi_device_info *device, uint32 op, void *buffer, size_t length)
device->target_id, op, buffer, length);
}
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
@@ -115,7 +115,7 @@ ahci_ioctl(scsi_sim_cookie cookie, uint8 targetID, uint32 op, void *buffer,
size_t length)
{
TRACE("ahci_ioctl, cookie %p\n", cookie);
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
@@ -1165,7 +1165,7 @@ static status_t
module_ioctl(scsi_sim_cookie cookie, uint8 targetID, uint32 op, void *buffer, size_t length)
{
TRACE_ALWAYS("ioctl\n");
return B_ERROR;
return B_DEV_INVALID_IOCTL;
}
@@ -332,7 +332,7 @@ periph_ioctl(scsi_periph_handle_info *handle, int op, void *buffer,
}
SHOW_ERROR(4, "Unknown ioctl: %x", op);
return B_BAD_VALUE;
return B_DEV_INVALID_IOCTL;
}
}