Minishell
Loading...
Searching...
No Matches
builtins.h File Reference
#include "main.h"
Include dependency graph for builtins.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  built_in
 

Typedefs

typedef struct built_in built_in_t
 

Functions

int print_env (data_t *data)
 
int print_epifetch (data_t *data, run_command_t *)
 
void add_env (data_t *data, char *name, char *value)
 
int my_setenv (data_t *data, run_command_t *command)
 
int my_unsetenv (data_t *data, run_command_t *command)
 
int select_command (data_t *data, run_command_t *command)
 
int builtin_cd (data_t *data, run_command_t *command)
 
int builtin_env (data_t *data, run_command_t *command)
 
int builtin_setenv (data_t *data, run_command_t *command)
 
int builtin_unsetenv (data_t *data, run_command_t *command)
 
int builtin_alias (data_t *data, run_command_t *command)
 
int builtin_gat (data_t *data, run_command_t *command)
 
void add_history (data_t *data)
 
int print_history (data_t *data, run_command_t *command)
 

Variables

const built_in_t builtins []
 

Typedef Documentation

◆ built_in_t

typedef struct built_in built_in_t

Function Documentation

◆ add_env()

void add_env ( data_t * data,
char * name,
char * value )
Here is the call graph for this function:

◆ add_history()

void add_history ( data_t * data)

add the command to the history file

Parameters
data
Here is the call graph for this function:

◆ builtin_alias()

int builtin_alias ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ builtin_cd()

int builtin_cd ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ builtin_env()

int builtin_env ( data_t * data,
run_command_t * command )

◆ builtin_gat()

int builtin_gat ( data_t * data,
run_command_t * command )

◆ builtin_setenv()

int builtin_setenv ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ builtin_unsetenv()

int builtin_unsetenv ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ my_setenv()

int my_setenv ( data_t * data,
run_command_t * command )

◆ my_unsetenv()

int my_unsetenv ( data_t * data,
run_command_t * command )

◆ print_env()

int print_env ( data_t * data)

◆ print_epifetch()

int print_epifetch ( data_t * data,
run_command_t *  )

◆ print_history()

int print_history ( data_t * data,
run_command_t * cmd )

main funcion to print the history file

Parameters
data
cmd
Here is the call graph for this function:

◆ select_command()

int select_command ( data_t * data,
run_command_t * command )
Parameters
dataGlobal data structure
commanditem on the linked list that contains the current command
Returns
84 if there was an error, 0 if everything is ok and 1 if not found
Here is the call graph for this function:

Variable Documentation

◆ builtins

const built_in_t builtins[]
extern