-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexecute.h
More file actions
39 lines (32 loc) · 1.61 KB
/
execute.h
File metadata and controls
39 lines (32 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* execute.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: clumertz <clumertz@student.42porto.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/20 10:56:43 by clumertz #+# #+# */
/* Updated: 2025/11/20 19:18:38 by clumertz ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef EXECUTE_H
# define EXECUTE_H
# include "minishell.h"
// process_manager.c
void execute_manager(t_head *head);
int hierarchy_btree(t_head *head, t_btree *node);
int wait_process(t_head *head);
// execute.c
void redirect(t_head *head, t_btree *node, int *fd);
void parent_process(t_head *head, t_btree *node, int *fd);
void child_process(t_head *head, t_btree *node, int *fd);
void process(t_head *head, t_btree *node);
void ft_execute(t_head *head, t_btree *node);
// execute_utils.c
void reset_head(t_head *head);
void close_all_fds(t_head *head, t_btree *node, int process);
void close_all(t_head *head, t_btree *node, int *fd);
int define_exit_code(int exit_status, int change);
// /aux/
int count_cmds(t_btree *node, int j);
#endif