|
@@ -17,8 +17,27 @@ extern pid_t active;
|
|
|
extern pid_t last;
|
|
|
|
|
|
/* --- Fonctions publiques --- */
|
|
|
+/**
|
|
|
+ * Indique si un fichier est executable
|
|
|
+ * @param char* Chemin vers le fichier
|
|
|
+ * @return Vrai/Faux
|
|
|
+ */
|
|
|
boolean is_executable_file(const char *);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Execute une commande shell
|
|
|
+ * @param char* Nom de la commande
|
|
|
+ * @param char** Arguments (argv)
|
|
|
+ * @return Status de la commande
|
|
|
+ */
|
|
|
int exec_shell(char*, char**);
|
|
|
+
|
|
|
+/**
|
|
|
+ * Execute un programme
|
|
|
+ * @param char* Nom du fichier executable
|
|
|
+ * @param char** Arguments (argv)
|
|
|
+ * @return Status du programme
|
|
|
+ */
|
|
|
int exec_file(char*, char**);
|
|
|
|
|
|
#endif /* EXECUTE_H */
|