//////////////////////////////////////////////////////////////////////////////////
// initiate a process table scan
-PROCTAB* openproc(int flags, ...) {
+PROCTAB* openproc(unsigned flags, ...) {
va_list ap;
struct stat sbuf;
static int did_stat;
* Free allocated memory with exit(). Access via tab[N]->member. The pointer
* list is NULL terminated.
*/
-proc_t** readproctab(int flags, ...) {
+proc_t** readproctab(unsigned flags, ...) {
PROCTAB* PT = NULL;
proc_t** tab = NULL;
int n = 0;
} PROCTAB;
// Initialize a PROCTAB structure holding needed call-to-call persistent data
-extern PROCTAB* openproc(int flags, ... /* pid_t*|uid_t*|dev_t*|char* [, int n] */ );
+extern PROCTAB* openproc(unsigned flags, ... /* pid_t*|uid_t*|dev_t*|char* [, int n] */ );
typedef struct proc_data_t { // valued by: (else zero)
proc_t **tab; // readproctab2, readproctab3
// table subset satisfying the constraints of flags and the optional PID list.
// Free allocated memory with exit(). Access via tab[N]->member. The pointer
// list is NULL terminated.
-extern proc_t** readproctab(int flags, ... /* same as openproc */ );
+extern proc_t** readproctab(unsigned flags, ... /* same as openproc */ );
// Clean-up open files, etc from the openproc()
extern void closeproc(PROCTAB* PT);