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