Decode arguments passed to getfsstat().
Note that this does not yet decode the statfs structures returned by getfsstat().
This commit is contained in:
parent
cd92d27e16
commit
ab43bedcce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315504
@ -45,7 +45,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl,
|
|||||||
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl,
|
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl,
|
||||||
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long,
|
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long,
|
||||||
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
|
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
|
||||||
CapFcntlRights, Fadvice, FileFlags, Flockop,
|
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode,
|
||||||
|
|
||||||
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
|
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
|
||||||
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
|
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
|
||||||
|
@ -158,6 +158,8 @@ static struct syscall decoded_syscalls[] = {
|
|||||||
.args = { { Int, 0 }, { Timeval2 | IN, 1 } } },
|
.args = { { Int, 0 }, { Timeval2 | IN, 1 } } },
|
||||||
{ .name = "futimesat", .ret_type = 1, .nargs = 3,
|
{ .name = "futimesat", .ret_type = 1, .nargs = 3,
|
||||||
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Timeval2 | IN, 2 } } },
|
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Timeval2 | IN, 2 } } },
|
||||||
|
{ .name = "getfsstat", .ret_type = 1, .nargs = 3,
|
||||||
|
.args = { { Ptr, 0 }, { Long, 1 }, { Getfsstatmode, 2 } } },
|
||||||
{ .name = "getitimer", .ret_type = 1, .nargs = 2,
|
{ .name = "getitimer", .ret_type = 1, .nargs = 2,
|
||||||
.args = { { Int, 0 }, { Itimerval | OUT, 2 } } },
|
.args = { { Int, 0 }, { Itimerval | OUT, 2 } } },
|
||||||
{ .name = "getpeername", .ret_type = 1, .nargs = 3,
|
{ .name = "getpeername", .ret_type = 1, .nargs = 3,
|
||||||
@ -1887,6 +1889,10 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
|
|||||||
case Flockop:
|
case Flockop:
|
||||||
print_mask_arg(sysdecode_flock_operation, fp, args[sc->offset]);
|
print_mask_arg(sysdecode_flock_operation, fp, args[sc->offset]);
|
||||||
break;
|
break;
|
||||||
|
case Getfsstatmode:
|
||||||
|
print_integer_arg(sysdecode_getfsstat_mode, fp,
|
||||||
|
args[sc->offset]);
|
||||||
|
break;
|
||||||
|
|
||||||
case CloudABIAdvice:
|
case CloudABIAdvice:
|
||||||
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
|
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user