|
CS 456 - Systems Programming
Spring 2024
|
Displaying ./code/shellv4/shell.h
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/wait.h>
#include <dirent.h>
#include <time.h>
#include <fcntl.h>
#include <sys/stat.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 argcount(char **args);
int num_builtins();
//shell commands
int shell_cd(char **args);
int shell_help(char **args);
int shell_curtime(char **args);
int shell_hello(char **args);
int shell_mycat(char **args);
int shell_exit(char **args);
|