shortspecialbus icon

job.h

shortspecialbus | PRO | 05/19/21 08:45:29 PM UTC | 0 ⭐ | 1117 👁️ | Never ⏰ | []
C |

480 B

|

None

|

0 👍

/

0 👎

/*
 * cs537 Project 1 - Shell
 *
 * Written by Stefan Strandberg ([email protected])
 * $Id: job.h,v 1.3 2004/09/23 20:01:59 stefan Exp $
 *
 */
 
#ifndef _H_JOB_H_
#define _H_JOB_H_
 
typedef struct job {
    int jid;
    int pid;
    char *command;
    int argc;
    int background;
    char *args[];
} job_t;
 
job_t *create_job(int jid, int pid, char* command, int argc, char* args[],
                  int background, job_t *job);
void remove_job(job_t *job);
void print_job(job_t *job);
 
#define MAX_JOBS 32766
 
#endif
 

Comments