execute.h 419 B

12345678910111213141516171819202122232425
  1. /*
  2. * File: execute.h
  3. * Author: Arthur Brandao
  4. *
  5. * Created on 9 novembre 2018
  6. */
  7. #ifndef EXECUTE_H
  8. #define EXECUTE_H
  9. /* --- Include --- */
  10. #include <sys/types.h>
  11. #include "constante.h"
  12. /* --- Extern --- */
  13. extern pid_t active;
  14. extern pid_t last;
  15. /* --- Fonctions publiques --- */
  16. boolean is_executable_file(const char *);
  17. int exec_shell(char*, char**);
  18. int exec_file(char*, char**);
  19. #endif /* EXECUTE_H */