Searched refs:acctfile (Results 1 - 3 of 3) sorted by relevance

/freebsd-13-stable/usr.bin/lastcomm/
H A Dlastcomm.c88 const char *acctfile, *format; local
92 acctfile = _PATH_ACCT;
97 acctfile = optarg;
140 if (strcmp(acctfile, "-") == 0) {
145 if ((fp = fopen(acctfile, "r")) == NULL)
146 err(1, "could not open %s", acctfile);
148 err(1, "seek to end of %s failed", acctfile);
213 err(1, "read record from %s failed", acctfile);
/freebsd-13-stable/usr.sbin/lpr/filters/
H A Dlpf.c75 static char *acctfile; /* accounting information file */ variable
118 acctfile = cp;
215 if (name && acctfile && access(acctfile, 02) >= 0 &&
216 freopen(acctfile, "a", stdout) != NULL) {
/freebsd-13-stable/usr.sbin/lpr/pac/
H A Dpac.c66 static char *acctfile; /* accounting file (input data) */ variable
179 if ((acctf = fopen(acctfile, "r")) == NULL) {
180 perror(acctfile);
319 if ((acctf = fopen(acctfile, "w")) == NULL)
320 warn("%s", acctfile);
442 if ((acctfile = pp->acct_file) == NULL)
446 sumfile = (char *) calloc(sizeof(char), strlen(acctfile)+5);
449 strcpy(sumfile, acctfile);

Completed in 70 milliseconds