/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T
* All rights reserved.
*
*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "lastcomm.h"
/*
* lc_pacct() provides the functionality of lastcomm when applied to the basic
*/
static int
{
int j;
break;
return (j == argc);
}
int
{
time_t t;
int fd;
return (1);
}
" is corrupted\n"));
return (1);
}
perror("lseek");
return (1);
}
if (cc < 0) {
perror("read");
return (1);
}
char *cp;
ulong_t x;
"accounting file is corrupted\n"));
return (1);
}
cp++)
*cp = '?';
continue;
(void) printf("%-*.*s %s %-*s %-*s %6.2f secs %.16s\n",
}
}
return (0);
}