/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley Software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "sh.h"
#include "sh.tconst.h"
struct timeval *b);
/*
* C Shell - routines handling process timing and niceing
*/
void
settimes(void)
{
#ifdef TRACE
tprintf("TRACE- settimes()\n");
#endif
}
/*
* dotime is only called if it is truly a builtin function and not a
* prefix to another command
*/
void
dotime(void)
{
#ifdef TRACE
tprintf("TRACE- dotime()\n");
#endif
}
/*
* donice is only called when it's on the line by itself or with a +- value
*/
void
{
int nval;
#ifdef TRACE
tprintf("TRACE- donice()\n");
#endif
v++;
cp = *v++;
if (cp == 0) {
nval = 4;
}
}
void
{
int cnt;
/*
* as below.
* The SVR4/POSIX <sys/resource.h> does not have these defined for
* struct rusage
* The #defines below are here so that the original csh logic
* for ruadd remains clear now that there is no longer a private copy
* of the old <sys/resource.h>
*/
#ifdef TRACE
tprintf("TRACE- ruadd()\n");
#endif
}
do {
} while (--cnt > 0);
}
void
struct timeval *b)
{
static int pgsize;
time_t t =
int i;
int ms =
#ifdef TRACE
tprintf("TRACE- prusage()\n");
#endif
if (pgsize == 0) {
pgsize = getpagesize();
}
}
if (*cp != '%') {
} else if (cp[1]) {
switch (*++cp) {
case 'U':
break;
case 'S':
break;
case 'E':
break;
case 'P':
break;
case 'W':
printf("%d", i);
break;
case 'X':
printf("%d", t == 0 ? 0 :
break;
case 'D':
printf("%d", t == 0 ? 0 :
break;
case 'K':
printf("%d", t == 0 ? 0 :
break;
case 'M':
break;
case 'F':
break;
case 'R':
break;
case 'I':
break;
case 'O':
break;
}
}
}
Putchar('\n');
}
void
{
#ifdef TRACE
tprintf("TRACE- pdeltat()\n");
#endif
/* change printf formats */
}
void
{
#ifdef TRACE
tprintf("TRACE- tvadd()\n");
#endif
}
}
void
{
#ifdef TRACE
tprintf("TRACE- tvsub()\n");
#endif
}
}