strace: add some constants ioctl from sys/ioctl.h
Change-Id: I100f715f899435c6a9bce775d95da6f755ba55c6 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4762 Tested-by: Commit checker robot <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
c80ea54975
commit
c53f760dfe
@@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <sys/ioctl.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
|
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
|
|
||||||
|
|
||||||
struct ioctl_info {
|
struct ioctl_info {
|
||||||
int index;
|
unsigned int index;
|
||||||
const char *name;
|
const char *name;
|
||||||
TypeHandler *handler;
|
TypeHandler *handler;
|
||||||
};
|
};
|
||||||
@@ -159,7 +160,13 @@ static const ioctl_info kIOCtls[] = {
|
|||||||
IOCTL_INFO_ENTRY(B_SCSI_SCAN),
|
IOCTL_INFO_ENTRY(B_SCSI_SCAN),
|
||||||
IOCTL_INFO_ENTRY(B_SCSI_DATA_MODE),
|
IOCTL_INFO_ENTRY(B_SCSI_DATA_MODE),
|
||||||
|
|
||||||
{ -1, NULL, NULL }
|
// socket ioctls
|
||||||
|
IOCTL_INFO_ENTRY_TYPE(FIONBIO, int*),
|
||||||
|
IOCTL_INFO_ENTRY_TYPE(FIONREAD, int*),
|
||||||
|
IOCTL_INFO_ENTRY_TYPE(FIOSEEKDATA, off_t*),
|
||||||
|
IOCTL_INFO_ENTRY_TYPE(FIOSEEKHOLE, off_t*),
|
||||||
|
|
||||||
|
{ 0, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static EnumTypeHandler::EnumMap kIoctlNames;
|
static EnumTypeHandler::EnumMap kIoctlNames;
|
||||||
|
|||||||
Reference in New Issue
Block a user