| bigbiff bigbiff | e60683a | 2013-02-22 20:55:50 -0500 | [diff] [blame] | 1 | #ifndef UTIL_LINUX_PROCUTILS |
| 2 | #define UTIL_LINUX_PROCUTILS | ||||
| 3 | |||||
| 4 | #include <dirent.h> | ||||
| 5 | |||||
| 6 | struct proc_tasks { | ||||
| 7 | DIR *dir; | ||||
| 8 | }; | ||||
| 9 | |||||
| 10 | extern struct proc_tasks *proc_open_tasks(pid_t pid); | ||||
| 11 | extern void proc_close_tasks(struct proc_tasks *tasks); | ||||
| 12 | extern int proc_next_tid(struct proc_tasks *tasks, pid_t *tid); | ||||
| 13 | |||||
| 14 | #endif /* UTIL_LINUX_PROCUTILS */ | ||||