Lines Matching defs:ab
74 struct acct ab;
110 size = sb.st_size - sb.st_size % sizeof(ab);
113 if (size < (off_t)sizeof(ab))
116 size -= sizeof(ab);
122 if (fread(&ab, sizeof(ab), 1, fp) != 1)
125 if (ab.ac_comm[0] == '\0') {
126 ab.ac_comm[0] = '?';
127 ab.ac_comm[1] = '\0';
129 for (p = &ab.ac_comm[0];
130 p < &ab.ac_comm[fldsiz(acct, ac_comm)] && *p; ++p)
133 if (!*argv || requested(argv, &ab)) {
136 ab.ac_comm[10] = '\0';
137 t = expand(ab.ac_utime) + expand(ab.ac_stime);
141 ab.ac_comm, flagbits(ab.ac_flag),
143 user_from_uid(ab.ac_uid, 0), UT_LINESIZE,
144 UT_LINESIZE, getdev(ab.ac_tty),
145 t / (double)AHZ, ctime(&ab.ac_btime));
146 delta = expand(ab.ac_etime) / (double)AHZ;
156 if (fseeko(fp, 2 * -(off_t)sizeof(ab), SEEK_CUR) == -1)
159 size -= sizeof(ab);