Searched refs:acctfile (Results 1 - 3 of 3) sorted by path
/freebsd-11-stable/usr.bin/lastcomm/ |
H A D | lastcomm.c | 86 const char *acctfile, *format; local 90 acctfile = _PATH_ACCT; 95 acctfile = optarg; 138 if (strcmp(acctfile, "-") == 0) { 143 if ((fp = fopen(acctfile, "r")) == NULL) 144 err(1, "could not open %s", acctfile); 146 err(1, "seek to end of %s failed", acctfile); 211 err(1, "read record from %s failed", acctfile);
|
/freebsd-11-stable/usr.sbin/lpr/filters/ |
H A D | lpf.c | 73 static char *acctfile; /* accounting information file */ variable 116 acctfile = cp; 213 if (name && acctfile && access(acctfile, 02) >= 0 && 214 freopen(acctfile, "a", stdout) != NULL) {
|
/freebsd-11-stable/usr.sbin/lpr/pac/ |
H A D | pac.c | 64 static char *acctfile; /* accounting file (input data) */ variable 177 if ((acctf = fopen(acctfile, "r")) == NULL) { 178 perror(acctfile); 317 if ((acctf = fopen(acctfile, "w")) == NULL) 318 warn("%s", acctfile); 440 if ((acctfile = pp->acct_file) == NULL) 444 sumfile = (char *) calloc(sizeof(char), strlen(acctfile)+5); 447 strcpy(sumfile, acctfile);
|
Completed in 110 milliseconds