UGH_ITS_4_RH, //atic stuff, man page codes

This commit is contained in:
albert 2002-10-12 19:15:53 +00:00
parent 41c7d1113f
commit 1f13637522
3 changed files with 13 additions and 7 deletions

2
top.1
View File

@ -20,7 +20,7 @@
. [ can be made printable by disabling the .ig directive! ]
.
.igEND
.
.\" Setup ////////////////////////////////////////////////////////////////
\# ** Comment out '.nr' or set to 0 to eliminate WIDTH fiddlin' !
.nr half_xtra 4

12
top.c
View File

@ -861,9 +861,11 @@ static proc_t **refreshprocs (proc_t **tbl)
{
#define PTRsz sizeof(proc_t *) /* eyeball candy */
#define ENTsz sizeof(proc_t)
static int flags = PROC_FILLMEM | PROC_FILLCOM | PROC_FILLUSR
#ifndef UGH_ITS_4_RH
| PROC_FILLGRP
static int flags = PROC_FILLMEM | PROC_FILLUSR
#ifdef UGH_ITS_4_RH
| PROC_FILLCMD
#else
| PROC_FILLGRP | PROC_FILLCOM
#endif
| PROC_FILLSTATUS | PROC_FILLSTAT;
static unsigned savmax = 0; /* first time, Bypass: (i) */
@ -930,8 +932,12 @@ static void before (char *me)
/* establish cpu particulars -- even bigger! */
#ifdef PRETEND4CPUS
Cpu_tot = 4;
#else
#ifdef UGH_ITS_4_RH
Cpu_tot = sysconf(_SC_NPROCESSORS_ONLN);
#else
Cpu_tot = smp_num_cpus;
#endif
#endif
Cpu_map = alloc_r(NULL, sizeof(int) * Cpu_tot);
for (i = 0; i < Cpu_tot; i++)

6
top.h
View File

@ -503,7 +503,7 @@ typedef struct win {
//atic int chin (int ech, char *buf, unsigned cnt);
//atic const char *fmtmk (const char *fmts, ...);
//atic char *strim (int sp, char *str);
//atic char *tg2 (int x, int y);
//atic const char *tg2 (int x, int y);
/*------ Exit/Interrput routines ---------------------------------------*/
//atic void bye_bye (int eno, const char *str);
//atic void stop (int dont_care_sig);
@ -519,8 +519,8 @@ typedef struct win {
//atic char *ask4str (const char *prompt);
//atic float get_float (const char *prompt);
//atic int get_int (const char *prompt);
//atic char *scale_num (unsigned num, const int width, const unsigned type);
//atic char *scale_tics (TICS_t tics, const int width);
//atic const char *scale_num (unsigned num, const int width, const unsigned type);
//atic const char *scale_tics (TICS_t tics, const int width);
//atic void time_elapsed (void);
/*------ Library Alternatives ------------------------------------------*/
//atic void *alloc_c (unsigned numb);