aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-15 20:35:24 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-15 20:35:24 +0200
commit0a8f2cf987a55d6e1c4b210f0f99a1a1e4e4460a (patch)
tree99075b939f45ce2e22bc3658665cd9485097d048 /include
parentb6e732d73ecaa35f2583a324aace7711d5f4a05e (diff)
downloadminishell-0a8f2cf987a55d6e1c4b210f0f99a1a1e4e4460a.tar.gz
minishell-0a8f2cf987a55d6e1c4b210f0f99a1a1e4e4460a.tar.bz2
minishell-0a8f2cf987a55d6e1c4b210f0f99a1a1e4e4460a.zip
Partially fixing pipes (more than 1 still breaks)
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 */
/* */
/* ************************************************************************** */