OS1/smallsh/main.h

23 lines
417 B
C
Raw Permalink Normal View History

2023-11-09 03:07:32 -08:00
#ifndef MAIN
#define MAIN
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "unistd.h"
#include "sys/wait.h"
2023-11-15 03:38:57 -08:00
#include "fcntl.h"
#include "signal.h"
2023-11-09 03:07:32 -08:00
int input_format(char*, size_t, char***);
void inbuilt_cd(char*);
int run_command(char***, int);
2023-11-15 03:38:57 -08:00
void expand_dollar(char*, size_t);
void sterilize_array(char***, size_t);
void sigint_handle();
void sigstop_handle();
void clean_children();
2023-11-09 03:07:32 -08:00
#endif