procs: tbl.

Need to check this...
This commit is contained in:
Alastair Poole 2021-02-02 21:58:22 +00:00
parent 325216853d
commit 894845d5eb
1 changed files with 3 additions and 10 deletions

View File

@ -58,13 +58,6 @@ proc_info_kthreads_show_get(void)
return _show_kthreads;
}
typedef struct _States States;
struct _States
{
int id;
const char *name;
};
static const char * _states[255];
static void
@ -80,18 +73,18 @@ _states_init(void)
_states['Z'] = "zombie";
#else
_states[SIDL] = "idle";
_states[SRUN] = "run";,
_states[SRUN] = "run";
_states[SSLEEP] = "sleep";
_states[SSTOP] = "stop";
#if !defined(__MacOS__)
#if !defined(__OpenBSD__)
_states[SWAIT] = "wait";
_states[SLOCK] = "lock";,
_states[SLOCK] = "lock";
_states[SZOMB] = "zombie";
#endif
#if defined(__OpenBSD__)
_states[SDEAD] = "dead";
_states[SONPROC] = "onproc"};
_states[SONPROC] = "onproc";
#endif
#endif
#endif