cctools
process.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2008- The University of Notre Dame
3 This software is distributed under the GNU General Public License.
4 See the file COPYING for details.
5 */
6 
7 #ifndef PROCESS_H
8 #define PROCESS_H
9 
10 #include <sys/time.h>
11 #include <sys/types.h>
12 #include <sys/resource.h>
13 #include <sys/wait.h>
14 
31 struct process_info {
32  pid_t pid;
33  int status;
34  struct rusage rusage;
35 };
36 
47 struct process_info *process_wait(int timeout);
48 
54 int process_pending();
55 
60 void process_putback(struct process_info *p);
61 
62 
63 
64 #endif