rishtik/src/boitoutil/essential_shell.h
2021-02-21 20:42:54 +01:00

25 lines
592 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Header pour la bibliothèque permettant davoir des
* outils essentiels pour le shell tel que la fonction pour
* afficher des erreurs.
* @file essential_shell.h
* @author rick <rick@gnous.eu>
* @date 2021
*/
#ifndef _ESSHELL_
# define _ESSHELL_
#define SHELL rishtik
#define FATAL_ERROR 1
#define NON_FATAL_ERROR 0
#define ERR_PIPE_CREATION 200 /* erreur lors de la création des pipes */
#define ERR_FORK 201 /* erreur lors du fork */
int native_command(char *command[]);
void change_dir(char *dir);
void error(int code, int type, char *message);
#endif