logoISU  

CS 456 - Systems Programming

Spring 2024

Displaying ./code/shellv2/shell.h

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <dirent.h>


#define SIZE            1024
#define TOKBUF            64
#define TOKDELIM " \t\r\n\a"

//shell stuff
void run_shell(void);
char *readLine(void);
char **splitLine(char *line);
int launch(char **args);
int execute(char **args);

int num_builtins();

//shell commands
int shell_cd(char **args);
int shell_help(char **args);
int shell_exit(char **args);