diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/ps.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/procps/ps.c b/procps/ps.c index 32563776d..9fca3524e 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -240,6 +240,7 @@ static unsigned get_kernel_HZ(void) | |||
240 | 240 | ||
241 | /* Print value to buf, max size+1 chars (including trailing '\0') */ | 241 | /* Print value to buf, max size+1 chars (including trailing '\0') */ |
242 | 242 | ||
243 | #if !ENABLE_PLATFORM_MINGW32 | ||
243 | static void func_user(char *buf, int size, const procps_status_t *ps) | 244 | static void func_user(char *buf, int size, const procps_status_t *ps) |
244 | { | 245 | { |
245 | #if 1 | 246 | #if 1 |
@@ -263,12 +264,14 @@ static void func_group(char *buf, int size, const procps_status_t *ps) | |||
263 | { | 264 | { |
264 | safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); | 265 | safe_strncpy(buf, get_cached_groupname(ps->gid), size+1); |
265 | } | 266 | } |
267 | #endif | ||
266 | 268 | ||
267 | static void func_comm(char *buf, int size, const procps_status_t *ps) | 269 | static void func_comm(char *buf, int size, const procps_status_t *ps) |
268 | { | 270 | { |
269 | safe_strncpy(buf, ps->comm, size+1); | 271 | safe_strncpy(buf, ps->comm, size+1); |
270 | } | 272 | } |
271 | 273 | ||
274 | #if !ENABLE_PLATFORM_MINGW32 | ||
272 | static void func_state(char *buf, int size, const procps_status_t *ps) | 275 | static void func_state(char *buf, int size, const procps_status_t *ps) |
273 | { | 276 | { |
274 | safe_strncpy(buf, ps->state, size+1); | 277 | safe_strncpy(buf, ps->state, size+1); |
@@ -278,12 +281,14 @@ static void func_args(char *buf, int size, const procps_status_t *ps) | |||
278 | { | 281 | { |
279 | read_cmdline(buf, size+1, ps->pid, ps->comm); | 282 | read_cmdline(buf, size+1, ps->pid, ps->comm); |
280 | } | 283 | } |
284 | #endif | ||
281 | 285 | ||
282 | static void func_pid(char *buf, int size, const procps_status_t *ps) | 286 | static void func_pid(char *buf, int size, const procps_status_t *ps) |
283 | { | 287 | { |
284 | sprintf(buf, "%*u", size, ps->pid); | 288 | sprintf(buf, "%*u", size, ps->pid); |
285 | } | 289 | } |
286 | 290 | ||
291 | #if !ENABLE_PLATFORM_MINGW32 | ||
287 | static void func_ppid(char *buf, int size, const procps_status_t *ps) | 292 | static void func_ppid(char *buf, int size, const procps_status_t *ps) |
288 | { | 293 | { |
289 | sprintf(buf, "%*u", size, ps->ppid); | 294 | sprintf(buf, "%*u", size, ps->ppid); |
@@ -320,6 +325,7 @@ static void func_tty(char *buf, int size, const procps_status_t *ps) | |||
320 | if (ps->tty_major) /* tty field of "0" means "no tty" */ | 325 | if (ps->tty_major) /* tty field of "0" means "no tty" */ |
321 | snprintf(buf, size+1, "%u,%u", ps->tty_major, ps->tty_minor); | 326 | snprintf(buf, size+1, "%u,%u", ps->tty_major, ps->tty_minor); |
322 | } | 327 | } |
328 | #endif | ||
323 | 329 | ||
324 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS | 330 | #if ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS |
325 | 331 | ||