#include <glib.h>
#include <dirent.h>
Go to the source code of this file.
Data Structures | |
struct | lnode |
Dumb process representation This structure is used to keep track of processes in the process list. More... | |
Functions | |
int | get_proc_list (struct dirent ***proclist) |
Get the list of processes. |
int get_proc_list | ( | struct dirent *** | proclist | ) |
Get the list of processes.
Get the list of processes
proclist | Triple pointer to dirent struct. Here we write the list of processes. |
Definition at line 62 of file processes.c.
References numsort().
00062 { 00063 int numfich; 00064 00065 if ((numfich = scandir ("/proc", proclist, &filter, numsort)) == -1) 00066 { 00067 perror ("scandir error"); 00068 return (errno); 00069 } 00070 00071 return(numfich); 00072 }