2024-04-29 13:55:21 +02:00
|
|
|
/* ************************************************************************** */
|
|
|
|
/* */
|
|
|
|
/* ::: :::::::: */
|
|
|
|
/* execution.h :+: :+: :+: */
|
|
|
|
/* +:+ +:+ +:+ */
|
|
|
|
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
|
|
|
|
/* +#+#+#+#+#+ +#+ */
|
|
|
|
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
|
2024-06-05 01:23:18 +02:00
|
|
|
/* Updated: 2024/06/04 23:07:27 by mmoussou ### ########.fr */
|
2024-04-29 13:55:21 +02:00
|
|
|
/* */
|
|
|
|
/* ************************************************************************** */
|
|
|
|
|
|
|
|
#ifndef EXECUTION_H
|
|
|
|
# define EXECUTION_H
|
|
|
|
|
2024-06-04 22:28:13 +02:00
|
|
|
# include "env.h"
|
|
|
|
|
2024-06-03 15:28:26 +02:00
|
|
|
char **get_path(char *path);
|
2024-06-05 01:23:18 +02:00
|
|
|
int exec_split_cmd(t_list *list_cmd, t_env *env);
|
2024-05-19 05:49:22 +02:00
|
|
|
|
2024-05-21 00:21:51 +02:00
|
|
|
/**
|
|
|
|
* @brief spawn a heredoc
|
|
|
|
*
|
|
|
|
* @param delimiter a string representing the delimiter of the heredoc
|
|
|
|
*
|
|
|
|
* @return (int) fd of a file containing the user's input, or -1 on error
|
|
|
|
*/
|
2024-05-20 11:22:25 +02:00
|
|
|
int ft_heredoc(char *delimiter);
|
|
|
|
|
2024-04-29 13:55:21 +02:00
|
|
|
#endif
|