summaryrefslogtreecommitdiff
path: root/proc/escape.h
blob: 871ac76199a28210a3852473486d50eb9e2ec4f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef PROCPS_PROC_ESCAPE_H
#define PROCPS_PROC_ESCAPE_H

#include "readproc.h"


#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>"


int escape_command(char *__restrict const outbuf, const proc_t *__restrict const pp, int bytes, int *cells, unsigned flags);

#endif