1 |
/* Pid parsing/frobbing |
/* Pid parsing/frobbing |
2 |
|
|
3 |
Copyright (C) 1997, 1999 Free Software Foundation, Inc. |
Copyright (C) 1997,99,2002 Free Software Foundation, Inc. |
4 |
|
Written by Miles Bader <miles@gnu.org> |
|
Written by Miles Bader <miles@gnu.ai.mit.edu> |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
45 |
error_t |
error_t |
46 |
add_fn_pids (pid_t **pids, size_t *num_pids, unsigned id, |
add_fn_pids (pid_t **pids, size_t *num_pids, unsigned id, |
47 |
error_t (*pids_fn)(process_t proc, pid_t id, |
error_t (*pids_fn)(process_t proc, pid_t id, |
48 |
pid_t **pids, unsigned *num_pids)) |
pid_t **pids, size_t *num_pids)) |
49 |
{ |
{ |
50 |
size_t num_new_pids = 25; |
size_t num_new_pids = 25; |
51 |
pid_t _new_pids[num_new_pids], *new_pids = _new_pids; |
pid_t _new_pids[num_new_pids], *new_pids = _new_pids; |