diff options
author | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:43 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2006-12-07 00:25:43 +0100 |
commit | 22853e4a82c6ef7b336527529acb94b14a0b0fd8 (patch) | |
tree | ee28e4598c8c449d7e811711d8ce8eb17caecfb6 /misc-utils/procs.c | |
parent | eb63b9b8f4cecb34c2478282567862bc48ef256d (diff) | |
download | util-linux-old-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.gz |
Imported from util-linux-2.10m tarball.
Diffstat (limited to 'misc-utils/procs.c')
-rw-r--r-- | misc-utils/procs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/misc-utils/procs.c b/misc-utils/procs.c index fd0e5add..715d9fb0 100644 --- a/misc-utils/procs.c +++ b/misc-utils/procs.c @@ -14,20 +14,21 @@ #define _POSIX_SOURCE 1 -#include <sys/types.h> -#include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <ctype.h> #include <unistd.h> +#include <sys/types.h> +#include <sys/stat.h> +#include "kill.h" extern char *mybasename (char *); static char *parse_parens (char *buf); -int *get_pids (char *process_name, int get_all) -{ +int * +get_pids (char *process_name, int get_all) { DIR *dir; struct dirent *ent; int status; |