aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/eval.h10
-rw-r--r--include/minishell.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/include/eval.h b/include/eval.h
index 0a14406..819b3cc 100644
--- a/include/eval.h
+++ b/include/eval.h
@@ -6,7 +6,7 @@
/* By: charles <charles@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/04/01 17:05:30 by charles #+# #+# */
-/* Updated: 2020/09/15 17:50:35 by charles ### ########.fr */
+/* Updated: 2020/09/15 20:09:27 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -49,14 +49,14 @@ extern pid_t g_child_pid;
** eval.c
*/
-int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped, pid_t *child_pid);
-int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid);
+int fork_wrap(int fds[2], void *passed, t_wrapped_func wrapped, pid_t *child_pid, int fd_to_close);
+int eval(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close);
/*
** cmd.c
*/
-int eval_cmd(int fds[2], t_env env, t_ast *ast, pid_t *child_pid);
+int eval_cmd(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close);
/*
** operation.c
@@ -68,7 +68,7 @@ int eval_operation(int fds[2], t_env env, t_ast *ast);
** parenthesis.c
*/
-int eval_parenthesis(int fds[2], t_env env, t_ast *ast);
+int eval_parenthesis(int fds[2], t_env env, t_ast *ast, pid_t *child_pid, int fd_to_close);
/*
** redir.c
diff --git a/include/minishell.h b/include/minishell.h
index 3622463..6c7eaf0 100644
--- a/include/minishell.h
+++ b/include/minishell.h
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */
-/* Updated: 2020/09/15 17:43:16 by charles ### ########.fr */
+/* Updated: 2020/09/15 20:34:19 by charles ### ########.fr */
/* */
/* ************************************************************************** */