00001 /* 00002 Copyright (C) 2008- The University of Notre Dame 00003 This software is distributed under the GNU General Public License. 00004 See the file COPYING for details. 00005 */ 00006 00007 #ifndef PROCESS_H 00008 #define PROCESS_H 00009 00010 #include <sys/time.h> 00011 #include <sys/types.h> 00012 #include <sys/resource.h> 00013 #include <sys/wait.h> 00014 00031 struct process_info { 00032 pid_t pid; 00033 int status; 00034 struct rusage rusage; 00035 }; 00036 00047 struct process_info *process_wait(int timeout); 00048 00054 int process_pending(); 00055 00060 void process_putback(struct process_info *p); 00061 00062 00063 00064 #endif