Advertisement
shortspecialbus

job.h

May 19th, 2021
824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1. /*
  2.  * cs537 Project 1 - Shell
  3.  *
  4.  * Written by Stefan Strandberg (stefan@cs.wisc.edu)
  5.  * $Id: job.h,v 1.3 2004/09/23 20:01:59 stefan Exp $
  6.  *
  7.  */
  8.  
  9. #ifndef _H_JOB_H_
  10. #define _H_JOB_H_
  11.  
  12. typedef struct job {
  13.     int jid;
  14.     int pid;
  15.     char *command;
  16.     int argc;
  17.     int background;
  18.     char *args[];
  19. } job_t;
  20.  
  21. job_t *create_job(int jid, int pid, char* command, int argc, char* args[],
  22.                   int background, job_t *job);
  23. void remove_job(job_t *job);
  24. void print_job(job_t *job);
  25.  
  26. #define MAX_JOBS 32766
  27.  
  28. #endif
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement