ps: new usage function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola
2011-10-02 13:07:35 +02:00
parent 3c77055c5e
commit db6aea7d3f
4 changed files with 140 additions and 39 deletions

View File

@ -25,6 +25,16 @@
/***************** GENERAL DEFINE ********************/
/* usage output sections */
enum {
USAGE_DEFAULT,
USAGE_ALL,
USAGE_SELECTION,
USAGE_LIST,
USAGE_OUTPUT,
USAGE_THREADS,
USAGE_MISC
};
/* selection list */
#define SEL_RUID 1
@ -326,7 +336,7 @@ extern int want_this_proc(proc_t *buf);
extern const char *select_bits_setup(void);
/* help.c */
extern const char *help_message;
extern void __attribute__ ((__noreturn__)) usage(FILE * out, int section);
/* global.c */
extern void self_info(void);