Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * cs537 Project 1 - Shell
- *
- * Written by Stefan Strandberg (stefan@cs.wisc.edu)
- * $Id: shell.h,v 1.5 2004/09/23 21:06:51 stefan Exp $
- *
- */
- #ifndef _H_SHELL_H_
- #define _H_SHELL_H_
- #include "job.h"
- typedef struct {
- char* prompt;
- } shell_t;
- typedef enum {
- // positive values mean there was a pid.
- NORMAL = 0,
- EXITVAL = -2,
- JOBVAL = -1,
- WAITERROR = -3,
- CHILDEXIT = -4
- } action_t;
- shell_t *create_shell(void);
- int run_shell(shell_t *shell, int interactive, int *jobnum, job_t *job,
- FILE *inbuffer);
- void do_waitcmd(job_t *job);
- void do_jobcmd(job_t *jobs[], int jobnums);
- #define MAX_INPUT_SIZE 512
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement