126
121
unsigned long total_private_readonly = 0ul;
127
122
unsigned long total_private_writeable = 0ul;
129
128
sprintf(buf,"/proc/%u/maps",p->tgid);
130
129
if(!freopen(buf, "r", stdin)) return 1;
132
escape_command(cmdbuf, p, sizeof cmdbuf, maxcmd, ESC_ARGS|ESC_BRACKETS);
131
escape_command(cmdbuf, p, sizeof cmdbuf, &maxcmd, ESC_ARGS|ESC_BRACKETS);
133
132
printf("%u: %s\n", p->tgid, cmdbuf);
135
134
if(!q_option && (x_option|d_option)){