#include <linux/limits.h>
#include "main.h"
Go to the source code of this file.
◆ ask_command()
void ask_command |
( |
data_t * | data | ) |
|
This will read the user input using getline or read with non-cannonical mode depending if the user is using a terminal or not
- Parameters
-
data | Global data structure |
◆ decide_wich_command()
- Parameters
-
data | Global data structure |
input | the text that the user wrote |
comm | The current command to execute |
- Returns
- Return 0 if everything is ok, 1 if the command is exite
◆ handle_signals()
void handle_signals |
( |
int | | ) |
|
◆ run_command()
◆ start_program()
int start_program |
( |
char ** | env | ) |
|
◆ command