Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/truss/syscalls.c
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | static const struct syscall_decode decoded_syscalls[] = { | ||||
{ .name = "chroot", .ret_type = 1, .nargs = 1, | { .name = "chroot", .ret_type = 1, .nargs = 1, | ||||
.args = { { Name, 0 } } }, | .args = { { Name, 0 } } }, | ||||
{ .name = "clock_gettime", .ret_type = 1, .nargs = 2, | { .name = "clock_gettime", .ret_type = 1, .nargs = 2, | ||||
.args = { { Int, 0 }, { Timespec | OUT, 1 } } }, | .args = { { Int, 0 }, { Timespec | OUT, 1 } } }, | ||||
{ .name = "close", .ret_type = 1, .nargs = 1, | { .name = "close", .ret_type = 1, .nargs = 1, | ||||
.args = { { Int, 0 } } }, | .args = { { Int, 0 } } }, | ||||
{ .name = "closefrom", .ret_type = 1, .nargs = 1, | { .name = "closefrom", .ret_type = 1, .nargs = 1, | ||||
.args = { { Int, 0 } } }, | .args = { { Int, 0 } } }, | ||||
{ .name = "close_range", .ret_type = 1, .nargs = 3, | |||||
.args = { { Int, 0 }, { Int, 1 }, { Closerangeflags, 2 } } }, | |||||
{ .name = "compat11.fstat", .ret_type = 1, .nargs = 2, | { .name = "compat11.fstat", .ret_type = 1, .nargs = 2, | ||||
.args = { { Int, 0 }, { Stat11 | OUT, 1 } } }, | .args = { { Int, 0 }, { Stat11 | OUT, 1 } } }, | ||||
{ .name = "compat11.fstatat", .ret_type = 1, .nargs = 4, | { .name = "compat11.fstatat", .ret_type = 1, .nargs = 4, | ||||
.args = { { Atfd, 0 }, { Name | IN, 1 }, { Stat11 | OUT, 2 }, | .args = { { Atfd, 0 }, { Name | IN, 1 }, { Stat11 | OUT, 2 }, | ||||
{ Atflags, 3 } } }, | { Atflags, 3 } } }, | ||||
{ .name = "compat11.kevent", .ret_type = 1, .nargs = 6, | { .name = "compat11.kevent", .ret_type = 1, .nargs = 6, | ||||
.args = { { Int, 0 }, { Kevent11, 1 }, { Int, 2 }, | .args = { { Int, 0 }, { Kevent11, 1 }, { Int, 2 }, | ||||
{ Kevent11 | OUT, 3 }, { Int, 4 }, { Timespec, 5 } } }, | { Kevent11 | OUT, 3 }, { Int, 4 }, { Timespec, 5 } } }, | ||||
▲ Show 20 Lines • Show All 1,783 Lines • ▼ Show 20 Lines | if (sysdecode_fcntl_arg_p(args[sc->offset - 1])) | ||||
sysdecode_fcntl_arg(fp, args[sc->offset - 1], | sysdecode_fcntl_arg(fp, args[sc->offset - 1], | ||||
args[sc->offset], 16); | args[sc->offset], 16); | ||||
break; | break; | ||||
case Open: | case Open: | ||||
print_mask_arg(sysdecode_open_flags, fp, args[sc->offset]); | print_mask_arg(sysdecode_open_flags, fp, args[sc->offset]); | ||||
break; | break; | ||||
case Fcntl: | case Fcntl: | ||||
print_integer_arg(sysdecode_fcntl_cmd, fp, args[sc->offset]); | print_integer_arg(sysdecode_fcntl_cmd, fp, args[sc->offset]); | ||||
break; | |||||
case Closerangeflags: | |||||
print_mask_arg(sysdecode_close_range_flags, fp, args[sc->offset]); | |||||
break; | break; | ||||
case Mprot: | case Mprot: | ||||
print_mask_arg(sysdecode_mmap_prot, fp, args[sc->offset]); | print_mask_arg(sysdecode_mmap_prot, fp, args[sc->offset]); | ||||
break; | break; | ||||
case Mmapflags: | case Mmapflags: | ||||
print_mask_arg(sysdecode_mmap_flags, fp, args[sc->offset]); | print_mask_arg(sysdecode_mmap_flags, fp, args[sc->offset]); | ||||
break; | break; | ||||
case Whence: | case Whence: | ||||
▲ Show 20 Lines • Show All 817 Lines • Show Last 20 Lines |