Return to ktrace.c CVS log | Up to [local] / src / usr.bin / ktrace |
version 1.9, 2000/06/30 16:00:15 | version 1.10, 2001/07/12 05:17:13 | ||
---|---|---|---|
|
|
||
#include <err.h> | #include <err.h> | ||
#include <fcntl.h> | #include <fcntl.h> | ||
#include <stdlib.h> | |||
#include <stdio.h> | #include <stdio.h> | ||
#include <unistd.h> | #include <unistd.h> | ||
|
|
||
void no_ktrace __P((int)); | void no_ktrace __P((int)); | ||
void usage __P((void)); | void usage __P((void)); | ||
int | |||
main(argc, argv) | main(argc, argv) | ||
int argc; | int argc; | ||
char **argv; | char **argv; | ||
{ | { | ||
enum { NOTSET, CLEAR, CLEARALL } clear; | enum { NOTSET, CLEAR, CLEARALL } clear; | ||
int append, ch, fd, inherit, ops, pid, pidset, trpoints; | int append, ch, fd, inherit, ops, pidset, trpoints; | ||
pid_t pid; | |||
char *tracefile; | char *tracefile; | ||
mode_t omask; | mode_t omask; | ||
struct stat sb; | struct stat sb; | ||
|
|
||
exit(0); | exit(0); | ||
} | } | ||
int | |||
rpid(p) | rpid(p) | ||
char *p; | char *p; | ||
{ | { |