svn commit: r200751 - head/usr.bin/truss

Jaakko Heinonen jh at FreeBSD.org
Sun Dec 20 10:58:35 UTC 2009


Author: jh
Date: Sun Dec 20 10:58:34 2009
New Revision: 200751
URL: http://svn.freebsd.org/changeset/base/200751

Log:
  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)

Modified:
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c	Sun Dec 20 04:49:29 2009	(r200750)
+++ head/usr.bin/truss/syscalls.c	Sun Dec 20 10:58:34 2009	(r200751)
@@ -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,


More information about the svn-src-head mailing list