aboutsummaryrefslogtreecommitdiff
path: root/libbb/procps.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 21:54:44 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-11-24 21:54:44 +0000
commit60c4e3b6e69e35898351b1fa6bdd7f20ea371fa9 (patch)
tree26f4426eba02d3b7f22da62ef3af151a89c99e3f /libbb/procps.c
parent89026b9951b21f7b660f8d0c5e5a7aee9344fd45 (diff)
downloadbusybox-w32-60c4e3b6e69e35898351b1fa6bdd7f20ea371fa9.tar.gz
busybox-w32-60c4e3b6e69e35898351b1fa6bdd7f20ea371fa9.tar.bz2
busybox-w32-60c4e3b6e69e35898351b1fa6bdd7f20ea371fa9.zip
tar: sanitize option handling
git-svn-id: svn://busybox.net/trunk/busybox@16661 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb/procps.c')
-rw-r--r--libbb/procps.c64
1 files changed, 32 insertions, 32 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index 2581d03b2..ee4f5e53f 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -216,39 +216,39 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
216} 216}
217/* from kernel: 217/* from kernel:
218 // pid comm S ppid pgid sid tty_nr tty_pgrp flg 218 // pid comm S ppid pgid sid tty_nr tty_pgrp flg
219 sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \ 219 sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
220%lu %lu %lu %lu %lu %ld %ld %ld %ld %d 0 %llu %lu %ld %lu %lu %lu %lu %lu \ 220%lu %lu %lu %lu %lu %ld %ld %ld %ld %d 0 %llu %lu %ld %lu %lu %lu %lu %lu \
221%lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu %llu\n", 221%lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu %llu\n",
222 task->pid, 222 task->pid,
223 tcomm, 223 tcomm,
224 state, 224 state,
225 ppid, 225 ppid,
226 pgid, 226 pgid,
227 sid, 227 sid,
228 tty_nr, 228 tty_nr,
229 tty_pgrp, 229 tty_pgrp,
230 task->flags, 230 task->flags,
231 min_flt, 231 min_flt,
232 232
233 cmin_flt, 233 cmin_flt,
234 maj_flt, 234 maj_flt,
235 cmaj_flt, 235 cmaj_flt,
236 cputime_to_clock_t(utime), 236 cputime_to_clock_t(utime),
237 cputime_to_clock_t(stime), 237 cputime_to_clock_t(stime),
238 cputime_to_clock_t(cutime), 238 cputime_to_clock_t(cutime),
239 cputime_to_clock_t(cstime), 239 cputime_to_clock_t(cstime),
240 priority, 240 priority,
241 nice, 241 nice,
242 num_threads, 242 num_threads,
243 // 0, 243 // 0,
244 start_time, 244 start_time,
245 vsize, 245 vsize,
246 mm ? get_mm_rss(mm) : 0, 246 mm ? get_mm_rss(mm) : 0,
247 rsslim, 247 rsslim,
248 mm ? mm->start_code : 0, 248 mm ? mm->start_code : 0,
249 mm ? mm->end_code : 0, 249 mm ? mm->end_code : 0,
250 mm ? mm->start_stack : 0, 250 mm ? mm->start_stack : 0,
251 esp, 251 esp,
252 eip, 252 eip,
253the rest is some obsolete cruft 253the rest is some obsolete cruft
254*/ 254*/