top gets pcpu work

This commit is contained in:
albert
2002-10-10 00:01:37 +00:00
parent 667b1bc2fa
commit 21c9ffa15e
7 changed files with 30 additions and 21 deletions

View File

@ -7,6 +7,7 @@
\***********************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include "procps.h"
void *xcalloc(void *pointer, int size) {
void * ret;

View File

@ -5,6 +5,7 @@
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include "procps.h"
/* output a string, converting unprintables to octal as we go, and stopping after
processing max chars of output (accounting for expansion due to octal rep).

View File

@ -12,6 +12,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "sig.h"
/* Linux signals:
*

View File

@ -9,6 +9,7 @@
#include "proc/procps.h"
#include "proc/readproc.h"
#include "status.h"
char * status(proc_t* task) {
static char buf[4] = " ";

View File

@ -9,6 +9,7 @@
#endif
#include <stdio.h>
#include <stdlib.h>
#include "version.h"
#ifdef MINORVERSION
char procps_version[] = "procps version " VERSION "." SUBVERSION "." MINORVERSION;