2002-12-21 10:34:50 +00:00
|
|
|
#ifndef PROCPS_PROC_ESCAPE_H
|
|
|
|
#define PROCPS_PROC_ESCAPE_H
|
|
|
|
|
2016-04-16 17:03:57 +10:00
|
|
|
#include <features.h>
|
2016-04-17 14:45:19 +10:00
|
|
|
#include "readproc.h"
|
2002-12-21 10:34:50 +00:00
|
|
|
|
2015-06-20 07:43:02 +10:00
|
|
|
__BEGIN_DECLS
|
2002-12-21 10:34:50 +00:00
|
|
|
|
2005-01-27 04:08:10 +00:00
|
|
|
|
2002-12-21 10:34:50 +00:00
|
|
|
#define ESC_ARGS 0x1 // try to use cmdline instead of cmd
|
|
|
|
#define ESC_BRACKETS 0x2 // if using cmd, put '[' and ']' around it
|
|
|
|
#define ESC_DEFUNCT 0x4 // mark zombies with " <defunct>"
|
|
|
|
|
2016-04-17 14:45:19 +10:00
|
|
|
|
|
|
|
int escape_command(char *__restrict const outbuf, const proc_t *__restrict const pp, int bytes, int *cells, unsigned flags);
|
2002-12-21 10:34:50 +00:00
|
|
|
|
2015-06-20 07:43:02 +10:00
|
|
|
__END_DECLS
|
2002-12-21 10:34:50 +00:00
|
|
|
#endif
|