summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2010-02-08 15:48:18 +0000
committerjh <jh@FreeBSD.org>2010-02-08 15:48:18 +0000
commit47a3486c10a17990d8bff6addf75c913dcbc745a (patch)
tree523319d6e8004159fdbc760f2c3daa18194f355d /usr.bin
parent6ab2afb04cddcf50f7325fcaac703ec1d65016f6 (diff)
downloadFreeBSD-src-47a3486c10a17990d8bff6addf75c913dcbc745a.zip
FreeBSD-src-47a3486c10a17990d8bff6addf75c913dcbc745a.tar.gz
MFC r200751:
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.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/truss/syscalls.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c
index ccceed0..f514649 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,
OpenPOWER on IntegriCloud