version 1.10, 2001/07/12 05:17:13 |
version 1.11, 2001/08/18 00:48:57 |
|
|
#include <unistd.h> |
#include <unistd.h> |
|
|
#include "ktrace.h" |
#include "ktrace.h" |
|
#include "extern.h" |
|
|
void no_ktrace __P((int)); |
static int rpid __P((const char *)); |
void usage __P((void)); |
static void no_ktrace __P((int)); |
|
static void usage __P((void)); |
|
|
int |
int |
main(argc, argv) |
main(argc, argv) |
|
|
argv += optind; |
argv += optind; |
argc -= optind; |
argc -= optind; |
|
|
if (pidset && *argv || !pidset && !*argv) |
if ((pidset && *argv) || (!pidset && !*argv)) |
usage(); |
usage(); |
|
|
if (inherit) |
if (inherit) |
|
|
exit(0); |
exit(0); |
} |
} |
|
|
int |
static int |
rpid(p) |
rpid(p) |
char *p; |
const char *p; |
{ |
{ |
static int first; |
static int first; |
|
|
|
|
return(atoi(p)); |
return(atoi(p)); |
} |
} |
|
|
void |
static void |
usage() |
usage() |
{ |
{ |
(void)fprintf(stderr, |
(void)fprintf(stderr, |
|
|
exit(1); |
exit(1); |
} |
} |
|
|
void |
static void |
no_ktrace(sig) |
no_ktrace(sig) |
int sig; |
int sig; |
{ |
{ |