version 1.2, 1996/06/26 05:34:46 |
version 1.3, 1996/09/21 08:11:03 |
|
|
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, pid, pidset, trpoints; |
char *tracefile; |
char *tracefile; |
|
mode_t omask; |
|
|
clear = NOTSET; |
clear = NOTSET; |
append = ops = pidset = inherit = 0; |
append = ops = pidset = inherit = 0; |
|
|
exit(0); |
exit(0); |
} |
} |
|
|
|
omask = umask(S_IRWXG|S_IRWXO); |
if ((fd = open(tracefile, O_CREAT | O_WRONLY | (append ? 0 : O_TRUNC), |
if ((fd = open(tracefile, O_CREAT | O_WRONLY | (append ? 0 : O_TRUNC), |
DEFFILEMODE)) < 0) |
DEFFILEMODE)) < 0) |
err(1, tracefile); |
err(1, tracefile); |
|
(void)umask(omask); |
(void)close(fd); |
(void)close(fd); |
|
|
if (*argv) { |
if (*argv) { |