version 1.14, 2002/03/25 16:46:28 |
version 1.15, 2003/02/19 19:30:13 |
|
|
argv += optind; |
argv += optind; |
argc -= optind; |
argc -= optind; |
|
|
if ((pidset && *argv) || (!pidset && !*argv)) |
if ((pidset && *argv) || (!pidset && !*argv && clear != CLEAR)) |
usage(); |
usage(); |
|
|
if (inherit) |
if (inherit) |
|
|
usage() |
usage() |
{ |
{ |
(void)fprintf(stderr, |
(void)fprintf(stderr, |
"usage:\tktrace [-aCcid] [-f trfile] [-g pgid] [-p pid] [-t [cenis]\n\tktrace [-aCcid] [-f trfile] [-t [cenis] command\n"); |
"usage:\tktrace [-aCcdi] [-f trfile] [-g pgid] [-p pid] [-t [ceinsw]]\n\tktrace [-adi] [-f trfile] [-t [ceinsw]] command\n"); |
exit(1); |
exit(1); |
} |
} |
|
|
|
|
char buf[8192]; |
char buf[8192]; |
|
|
snprintf(buf, sizeof(buf), |
snprintf(buf, sizeof(buf), |
"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'options KTRACE'\n"); |
"error:\tktrace() system call not supported in the running kernel\n\tre-compile kernel with 'option KTRACE'\n"); |
write(STDERR_FILENO, buf, strlen(buf)); |
write(STDERR_FILENO, buf, strlen(buf)); |
_exit(1); |
_exit(1); |
} |
} |