Decode arguments passed to posix_fadvise().
This commit is contained in:
parent
bed418c8bd
commit
d2a9748593
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=315497
@ -45,7 +45,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl,
|
||||
Pathconf, Rforkflags, ExitStatus, Waitoptions, Idtype, Procctl,
|
||||
LinuxSockArgs, Umtxop, Atfd, Atflags, Timespec2, Accessmode, Long,
|
||||
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
|
||||
CapFcntlRights,
|
||||
CapFcntlRights, Fadvice,
|
||||
|
||||
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
|
||||
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,
|
||||
|
@ -243,6 +243,9 @@ static struct syscall decoded_syscalls[] = {
|
||||
.args = { { Ptr, 0 }, { Pipe2, 1 } } },
|
||||
{ .name = "poll", .ret_type = 1, .nargs = 3,
|
||||
.args = { { Pollfd, 0 }, { Int, 1 }, { Int, 2 } } },
|
||||
{ .name = "posix_fadvise", .ret_type = 1, .nargs = 4,
|
||||
.args = { { Int, 0 }, { QuadHex, 1 }, { QuadHex, 2 },
|
||||
{ Fadvice, 3 } } },
|
||||
{ .name = "posix_openpt", .ret_type = 1, .nargs = 1,
|
||||
.args = { { Open, 0 } } },
|
||||
{ .name = "procctl", .ret_type = 1, .nargs = 4,
|
||||
@ -1862,6 +1865,9 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval,
|
||||
print_mask_arg32(sysdecode_cap_fcntlrights, fp, rights);
|
||||
break;
|
||||
}
|
||||
case Fadvice:
|
||||
print_integer_arg(sysdecode_fadvice, fp, args[sc->offset]);
|
||||
break;
|
||||
|
||||
case CloudABIAdvice:
|
||||
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
|
||||
|
Loading…
Reference in New Issue
Block a user