diff options
author | jh <jh@FreeBSD.org> | 2009-12-20 10:58:34 +0000 |
---|---|---|
committer | jh <jh@FreeBSD.org> | 2009-12-20 10:58:34 +0000 |
commit | d51d2e56fc222c467689c165f203863b77393a6b (patch) | |
tree | 2e96a69d1a39063e687ddfcfd4115943d13458a5 /usr.bin/truss | |
parent | 4f0465b170c11c9c3ff62d5f43f1fb07492ea710 (diff) | |
download | FreeBSD-src-d51d2e56fc222c467689c165f203863b77393a6b.zip FreeBSD-src-d51d2e56fc222c467689c165f203863b77393a6b.tar.gz |
Add fork(2), getegid(2), geteuid(2), getgid(2), getpid(2), getpgid(2),
getpgrp(2), getppid(2), getsid(2) and getuid(2) to syscall table to
decode their arguments correctly.
OK'ed by: delphij
Approved by: trasz (mentor)
Diffstat (limited to 'usr.bin/truss')
-rw-r--r-- | usr.bin/truss/syscalls.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index d927815..67f1748 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -92,6 +92,18 @@ static const char rcsid[] = struct syscall syscalls[] = { { .name = "fcntl", .ret_type = 1, .nargs = 3, .args = { { Int, 0 } , { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } }, + { .name = "fork", .ret_type = 1, .nargs = 0 }, + { .name = "getegid", .ret_type = 1, .nargs = 0 }, + { .name = "geteuid", .ret_type = 1, .nargs = 0 }, + { .name = "getgid", .ret_type = 1, .nargs = 0 }, + { .name = "getpid", .ret_type = 1, .nargs = 0 }, + { .name = "getpgid", .ret_type = 1, .nargs = 1, + .args = { { Int, 0 } } }, + { .name = "getpgrp", .ret_type = 1, .nargs = 0 }, + { .name = "getppid", .ret_type = 1, .nargs = 0 }, + { .name = "getsid", .ret_type = 1, .nargs = 1, + .args = { { Int, 0 } } }, + { .name = "getuid", .ret_type = 1, .nargs = 0 }, { .name = "readlink", .ret_type = 1, .nargs = 3, .args = { { Name, 0 } , { Readlinkres | OUT, 1 }, { Int, 2 } } }, { .name = "lseek", .ret_type = 2, .nargs = 3, |