{
#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) */
/* 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++)
//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);
//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);