Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ktruss Add more syscalls which has pathname as its f...



details:   https://anonhg.NetBSD.org/src/rev/0a4120fbbf51
branches:  trunk
changeset: 532384:0a4120fbbf51
user:      enami <enami%NetBSD.org@localhost>
date:      Thu Jun 06 10:48:49 2002 +0000

description:
Add more syscalls which has pathname as its first argument.

diffstat:

 usr.bin/ktruss/dump.c |  48 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 39 insertions(+), 9 deletions(-)

diffs (70 lines):

diff -r 5065678470ca -r 0a4120fbbf51 usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c     Thu Jun 06 10:12:42 2002 +0000
+++ b/usr.bin/ktruss/dump.c     Thu Jun 06 10:48:49 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump.c,v 1.11 2000/11/13 21:36:22 jdolecek Exp $       */
+/*     $NetBSD: dump.c,v 1.12 2002/06/06 10:48:49 enami Exp $  */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)kdump.c    8.4 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: dump.c,v 1.11 2000/11/13 21:36:22 jdolecek Exp $");
+__RCSID("$NetBSD: dump.c,v 1.12 2002/06/06 10:48:49 enami Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -322,14 +322,44 @@
                        switch (ktr->ktr_code) {
                        /*
                         * All these have a path as the first param.
+                        * The order is same as syscalls.master.
                         */
-                       case SYS_open : case SYS_chdir :
-                       case SYS___stat13 : case SYS_chroot :
-                       case SYS_execve : case SYS_pathconf :
-                       case SYS_rmdir : case SYS_rename :
-                       case SYS_symlink : case SYS_chflags :
-                       case SYS_link : case SYS_mkdir :
-                       case SYS_mknod : case SYS_mkfifo :
+                       case SYS_open:
+                       case SYS_link:
+                       case SYS_unlink:
+                       case SYS_chdir:
+                       case SYS_mknod:
+                       case SYS_chmod:
+                       case SYS_chown:
+                       case SYS_unmount:
+                       case SYS_access:
+                       case SYS_chflags:
+                       case SYS_acct:
+                       case SYS_revoke:
+                       case SYS_symlink:
+                       case SYS_readlink:
+                       case SYS_execve:
+                       case SYS_chroot:
+                       case SYS_rename:
+                       case SYS_mkfifo:
+                       case SYS_mkdir:
+                       case SYS_rmdir:
+                       case SYS_utimes:
+                       case SYS_quotactl:
+                       case SYS_statfs:
+                       case SYS_getfh:
+                       case SYS_pathconf:
+                       case SYS_truncate:
+                       case SYS_undelete:
+                       case SYS___posix_rename:
+                       case SYS_lchmod:
+                       case SYS_lchown:
+                       case SYS_lutimes:
+                       case SYS___stat13:
+                       case SYS___lstat13:
+                       case SYS___posix_chown:
+                       case SYS___posix_lchown:
+                       case SYS_lchflags:
                                if (BLEFT > 1)
                                        *bp++ = '(';
                                eol = 0;



Home | Main Index | Thread Index | Old Index