2002-12-21 16:04:50 +05:30
|
|
|
#ifndef PROCPS_PROC_ESCAPE_H
|
|
|
|
#define PROCPS_PROC_ESCAPE_H
|
|
|
|
|
2016-04-17 10:15:19 +05:30
|
|
|
#include "readproc.h"
|
2002-12-21 16:04:50 +05:30
|
|
|
|
|
|
|
#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>"
|
|
|
|
|
2020-06-30 10:30:00 +05:30
|
|
|
int escape_command (char *outbuf, const proc_t *pp, int bytes, int *cells, unsigned flags);
|
2002-12-21 16:04:50 +05:30
|
|
|
|
2020-06-30 10:30:00 +05:30
|
|
|
int escape_str (char *dst, const char *src, int bufsize, int *maxcells);
|
2020-06-30 10:30:00 +05:30
|
|
|
|
2002-12-21 16:04:50 +05:30
|
|
|
#endif
|