#include <stdbool.h>
#include <time.h>
#include <unistd.h>
#include "mini_printf.h"
#include "arguments.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "epifetch.h"
Go to the source code of this file.
|
#define | RESET "\033[0m" |
|
#define | WHITE "\033[0;37m" |
|
#define | RED "\033[0;31m" |
|
#define | GREEN "\033[0;32m" |
|
#define | BLUE "\033[0;34m" |
|
#define | LOGO_PATH "logos/spyro.txt" |
|
◆ BLUE
#define BLUE "\033[0;34m" |
◆ GREEN
#define GREEN "\033[0;32m" |
◆ LOGO_PATH
#define LOGO_PATH "logos/spyro.txt" |
◆ RED
◆ RESET
◆ WHITE
#define WHITE "\033[0;37m" |
◆ alias_t
◆ data_t
env contains a linked list of the env env_array is the same an env but instead of a linked list is an array home contains the home directory of user status contains the exit code of the last command
◆ env_node_t
◆ history_t
◆ redirection_t
◆ run_command_t
◆ redirection_s
Enumerator |
---|
NONE | |
PIPE | |
SEMICOLON | |
L_REDIRECT_OW | |
L_REDIRECT_AP | |
R_REDIRECT_OW | |
R_REDIRECT_AP | |
DOUBLE_AMPERSAND | |
DOUBLE_PIPE | |
◆ alias_rc()
void alias_rc |
( |
data_t * | data | ) |
|
◆ create_alias_node()
alias_t * create_alias_node |
( |
const char * | name, |
|
|
char ** | value ) |
◆ create_config()
void create_config |
( |
data_t * | data | ) |
|
◆ expand_aliases()
void expand_aliases |
( |
data_t * | data | ) |
|
◆ find_name_in_path()
◆ wait_child()
void wait_child |
( |
int | cpid, |
|
|
data_t * | data ) |
This function waits for the executed command to finish and prints any error that could have happened also it will save its exit status code on data->status
- Parameters
-
cpid | Child process id |
data | Global data structure |