version 1.16, 2003/06/03 02:56:09 |
version 1.17, 2003/06/10 22:20:47 |
|
|
static void usage(void); |
static void usage(void); |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
enum { NOTSET, CLEAR, CLEARALL } clear; |
enum { NOTSET, CLEAR, CLEARALL } clear; |
int append, ch, fd, inherit, ops, pidset, trpoints; |
int append, ch, fd, inherit, ops, pidset, trpoints; |
|
|
} |
} |
|
|
static int |
static int |
rpid(p) |
rpid(const char *p) |
const char *p; |
|
{ |
{ |
static int first; |
static int first; |
|
|
|
|
} |
} |
|
|
static void |
static void |
usage() |
usage(void) |
{ |
{ |
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"usage:\tktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t [ceinsw]]\n\tktrace [-adi] [-f trfile] [-t [ceinsw]] command\n"); |
"usage:\tktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t [ceinsw]]\n\tktrace [-adi] [-f trfile] [-t [ceinsw]] command\n"); |
|
|
} |
} |
|
|
static void |
static void |
no_ktrace(sig) |
no_ktrace(int signo) |
int sig; |
|
{ |
{ |
char buf[8192]; |
char buf[8192]; |
|
|