/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <strings.h>
#include <time.h>
#include <errno.h>
#include <pwd.h>
static int hz;
static int nsec_per_tick;
void hmstime(char[]);
void usage();
int
{
int status;
register pid_t p;
int c;
char eol;
aopt[0] = '\0';
/* check options; */
switch (c) {
case 's': sflg++; break;
case 'o': oflg++; break;
case 'p': pflg++; break;
case '?': usage();
break;
}
usage();
}
/*
* Check to see if accounting is installed and print a somewhat
* meaninful message if not.
*/
oflg = 0;
pflg = 0;
"Information from -p and -o options not available\n");
" because process accounting is not operational.\n");
}
if (sflg) {
}
perror("Fork Failed");
}
if (p == 0) {
}
;
if ((status&0377) != 0)
if (isatty(0))
if (pflg)
if (oflg) {
"%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s",
fld[19]);
if (++iline == 3)
for (i = 0; i < nfld; i++) {
== 0)
ichar = i+2;
== 0)
iblok = i+2;
}
if (iline > 4) {
}
}
}
if (oflg)
if (iline > 4)
"\nCHARS TRNSFD = %ld\n"
else
"\nNo process records found!\n");
}
if (sflg) {
}
}
void
{
total /= 60;
/* Display either padding or the elapsed hours */
if (hh == 0L) {
} else {
}
/*
* Display either nothing or the elapsed minutes, zero
* padding (if hours > 0) or space padding (if not).
*/
} else {
}
/*
* Display the elapsed seconds; seconds are always
* zero padded.
*/
} else {
}
/* Display hundredths of a second. */
}
/*
* hmstime() sets current time in hh:mm:ss string format in stime;
*/
void
{
char *ltime;
}
void
usage()
{
}