Lines Matching refs:acct
45 * file file in [pt]cms.h (if -s seen already) or acct.h (if not)
57 #include <sys/acct.h>
226 struct acct ab; /* SVR4 acct structure */
227 struct o_acct oab; /* SVR3 acct structure */
228 } acct;
243 if (fread(&acct.ab, sizeof(acct.ab), 1, stdin) == 1)
245 if (acct.ab.ac_flag & AEXPND)
246 ver = 2; /* 4.0 acct file */
248 ver = 1; /* SVR3.x acct file */
259 while (fread(&acct.oab, sizeof(acct.oab), 1, stdin) == 1) {
260 CPYN(cmt.tcm_comm, acct.oab.ac_comm);
262 cpu = expand(acct.oab.ac_stime)+
263 expand(acct.oab.ac_utime);
265 real = expand(acct.oab.ac_etime);
267 mem = expand(acct.oab.ac_mem);
269 cmt.tcm_io = expand(acct.oab.ac_io);
270 cmt.tcm_rw = expand(acct.oab.ac_rw);
276 while (fread(&acct.ab, sizeof(acct.ab), 1, stdin) == 1) {
277 CPYN(cmt.tcm_comm, acct.ab.ac_comm);
279 cpu = expand(acct.oab.ac_stime)+
280 expand(acct.oab.ac_utime);
282 real = expand(acct.ab.ac_etime);
284 mem = expand(acct.ab.ac_mem);
286 cmt.tcm_io = expand(acct.ab.ac_io);
287 cmt.tcm_rw = expand(acct.ab.ac_rw);
299 struct acct ab;
301 } acct;
323 if (fread(&acct.ab, sizeof(acct.ab), 1, stdin) == 1)
325 if (acct.ab.ac_flag & AEXPND)
326 ver = 2; /* 4.0 acct file */
328 ver = 1; /* SVR3.x acct file */
340 while (fread(&acct.oab, sizeof(acct.oab), 1, stdin) == 1) {
341 CPYN(pcmt.pcm_comm, acct.oab.ac_comm);
345 if((etime = SECS(expand(acct.oab.ac_etime))) == 0)
347 if (pnpsplit(acct.oab.ac_btime, etime, elaps)
362 cpu = expand(acct.oab.ac_stime)+
363 expand(acct.oab.ac_utime);
368 real = expand(acct.oab.ac_etime);
373 mem = expand(acct.oab.ac_mem);
378 ltmp = expand(acct.oab.ac_io);
382 ltmp = expand(acct.oab.ac_rw);
391 while (fread(&acct.ab, sizeof(acct.ab), 1, stdin) == 1) {
392 CPYN(pcmt.pcm_comm, acct.ab.ac_comm);
396 if((etime = SECS(expand(acct.ab.ac_etime))) == 0)
398 if(pnpsplit(acct.ab.ac_btime, etime, elaps) == 0) {
410 cpu = expand(acct.ab.ac_stime)+
411 expand(acct.ab.ac_utime);
416 real = expand(acct.ab.ac_etime);
421 mem = expand(acct.ab.ac_mem);
426 ltmp = expand(acct.ab.ac_io);
430 ltmp = expand(acct.ab.ac_rw);