Lines Matching refs:acp
27 ok(int argc, char *argv[], int index, struct acct *acp) in ok() argument
32 if (strcmp(getname(acp->ac_uid), argv[j]) && in ok()
33 strcmp(getdev(acp->ac_tty), argv[j]) && in ok()
34 strncmp(acp->ac_comm, argv[j], fldsiz(acct, ac_comm))) in ok()
44 struct acct *acp; in lc_pacct() local
72 acp = buf + (cc / sizeof (buf[0])) - 1; in lc_pacct()
73 for (; acp >= buf; acp--) { in lc_pacct()
77 if (acp->ac_flag > 0100) { in lc_pacct()
82 if (acp->ac_comm[0] == '\0') in lc_pacct()
83 (void) strcpy(acp->ac_comm, "?"); in lc_pacct()
84 for (cp = &acp->ac_comm[0]; in lc_pacct()
85 cp < &acp->ac_comm[fldsiz(acct, ac_comm)] && *cp; in lc_pacct()
89 if (argc > index && !ok(argc, argv, index, acp)) in lc_pacct()
91 x = expand(acp->ac_utime) + expand(acp->ac_stime); in lc_pacct()
92 t = acp->ac_btime; in lc_pacct()
95 acp->ac_comm, in lc_pacct()
96 flagbits(acp->ac_flag), in lc_pacct()
97 NMAX, getname(acp->ac_uid), in lc_pacct()
98 LMAX, getdev(acp->ac_tty), in lc_pacct()