diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-06-10 00:53:00 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-06-10 00:53:00 +0000 |
commit | dd0c462cf501fd543bcd96ad097fe6f12500ab3b (patch) | |
tree | 3b9f992aaa36d1443f6012455cc3939d8102b7c6 /usr.bin/truss | |
parent | 5ac1c7ac3466d134ca53cfcb21236f499b7767fd (diff) | |
download | src-test2-dd0c462cf501fd543bcd96ad097fe6f12500ab3b.tar.gz src-test2-dd0c462cf501fd543bcd96ad097fe6f12500ab3b.zip |
Notes
Diffstat (limited to 'usr.bin/truss')
-rw-r--r-- | usr.bin/truss/syscall.h | 2 | ||||
-rw-r--r-- | usr.bin/truss/syscalls.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/truss/syscall.h b/usr.bin/truss/syscall.h index be5da1ece4f5..e3737ccbfa1d 100644 --- a/usr.bin/truss/syscall.h +++ b/usr.bin/truss/syscall.h @@ -50,7 +50,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHex, Name, Ptr, Stat, Ioctl, Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel, Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype, Extattrnamespace, Minherit, Mlockall, Mountflags, Msync, Priowhich, - Ptraceop, + Ptraceop, Quotactlcmd, CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags, CloudABIFDStat, CloudABIFileStat, CloudABIFileType, diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index 6df97c289538..9373f70625c5 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -366,6 +366,8 @@ static struct syscall decoded_syscalls[] = { { .name = "pwrite", .ret_type = 1, .nargs = 4, .args = { { Int, 0 }, { BinString | IN, 1 }, { Sizet, 2 }, { QuadHex, 3 } } }, + { .name = "quotactl", .ret_type = 1, .nargs = 4, + .args = { { Name, 0 }, { Quotactlcmd, 1 }, { Int, 2 }, { Ptr, 3 } } }, { .name = "read", .ret_type = 1, .nargs = 3, .args = { { Int, 0 }, { BinString | OUT, 1 }, { Sizet, 2 } } }, { .name = "readlink", .ret_type = 1, .nargs = 3, @@ -2136,6 +2138,10 @@ print_arg(struct syscall_args *sc, unsigned long *args, long *retval, print_integer_arg(sysdecode_ptrace_request, fp, args[sc->offset]); break; + case Quotactlcmd: + if (!sysdecode_quotactl_cmd(fp, args[sc->offset])) + fprintf(fp, "%#x", (int)args[sc->offset]); + break; case CloudABIAdvice: fputs(xlookup(cloudabi_advice, args[sc->offset]), fp); |