diff --git a/src/bin/debug/strace/ioctl.cpp b/src/bin/debug/strace/ioctl.cpp index 2559fe3524..5f0824f6a3 100644 --- a/src/bin/debug/strace/ioctl.cpp +++ b/src/bin/debug/strace/ioctl.cpp @@ -7,6 +7,7 @@ */ +#include #include #include @@ -20,7 +21,7 @@ struct ioctl_info { - int index; + unsigned int index; const char *name; TypeHandler *handler; }; @@ -159,7 +160,13 @@ static const ioctl_info kIOCtls[] = { IOCTL_INFO_ENTRY(B_SCSI_SCAN), 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;