Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
scheduler.h
Go to the documentation of this file.
1 
7 #ifndef SCHEDULER_H
8 #define SCHEDULER_H
9 
10 #include "typedef.h"
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <unistd.h>
14 #include <sys/wait.h>
15 #include <string.h>
16 #include "command.h"
17 #include "console.h"
18 #include "builtin_commands.h"
19 #include "redirection.h"
20 #include "operator.h"
21 #include "background_manager.h"
22 #include "constants.h"
23 
30 int execute_external_command(const Command *command, int run_in_background);
31 
39 int execute_command(const Command *command, CommandSequence *commandSequence, int run_in_background);
40 
47 
48 #endif // SCHEDULER_H
execute_command
int execute_command(const Command *command, CommandSequence *commandSequence, int run_in_background)
Executes a command internal to the shell.
Definition: scheduler.c:33
CommandSequence
Struct that represents a command sequence.
Definition: typedef.h:123
operator.h
File containing the operator functions to manage the operators that can be used in the shell.
builtin_commands.h
File containing the built-in commands functions to manage the built-in commands such as cd,...
console.h
File containing the console functions to manage the console (print information, etc....
command.h
File containing the command functions to manage the commands entered by the user (parsing,...
Command
Struct that represents a command.
Definition: typedef.h:97
execute_command_sequence
int execute_command_sequence(CommandSequence *sequence)
Executes a sequence of commands with operators.
Definition: scheduler.c:47
execute_external_command
int execute_external_command(const Command *command, int run_in_background)
Executes an external command.
Definition: scheduler.c:3
redirection.h
File containing the redirection functions to manage the redirection operators such as '<',...
background_manager.h
File containing the background manager functions to manage the background processes.
constants.h
Header file defining constants.
typedef.h
File containing all the typedefs used in the shell program.