diff options
Diffstat (limited to 'usr.bin/truss/main.c')
-rw-r--r-- | usr.bin/truss/main.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c index f8b54fe..e100c16 100644 --- a/usr.bin/truss/main.c +++ b/usr.bin/truss/main.c @@ -67,8 +67,8 @@ static __inline void usage(void) { fprintf(stderr, "%s\n%s\n", - "usage: truss [-fdDS] [-o file] -p pid", - " truss [-fdDS] [-o file] command [args]"); + "usage: truss [-faedDS] [-o file] -p pid", + " truss [-faedDS] [-o file] command [args]"); exit(1); } @@ -146,7 +146,7 @@ main(int ac, char **av) { bzero(trussinfo, sizeof(struct trussinfo)); trussinfo->outfile = stderr; - while ((c = getopt(ac, av, "p:o:fdDS")) != -1) { + while ((c = getopt(ac, av, "p:o:faedDS")) != -1) { switch (c) { case 'p': /* specified pid */ trussinfo->pid = atoi(optarg); @@ -154,6 +154,12 @@ main(int ac, char **av) { case 'f': /* Follow fork()'s */ trussinfo->flags |= FOLLOWFORKS; break; + case 'a': /* Print execve() argument strings. */ + trussinfo->flags |= EXECVEARGS; + break; + case 'e': /* Print execve() environment strings. */ + trussinfo->flags |= EXECVEENVS; + break; case 'd': /* Absolute timestamps */ trussinfo->flags |= ABSOLUTETIMESTAMPS; break; |