save commit
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/10/28 13:08:33 by sede-san #+# #+# */
|
||||
/* Updated: 2025/10/28 14:20:23 by sede-san ### ########.fr */
|
||||
/* Updated: 2026/02/08 21:32:56 by sede-san ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,6 +14,18 @@
|
||||
# define EXECUTOR_H
|
||||
|
||||
# include "minishell.h"
|
||||
# include "core.h"
|
||||
# include <stdint.h>
|
||||
|
||||
# define READ_PIPE 0
|
||||
# define WRITE_PIPE 1
|
||||
|
||||
typedef struct s_pipeline
|
||||
{
|
||||
int prev_read_fd;
|
||||
int pipefd[2];
|
||||
} t_pipeline;
|
||||
|
||||
|
||||
/******************************************************************************/
|
||||
/* Functions */
|
||||
@@ -21,6 +33,9 @@
|
||||
|
||||
// executor.c
|
||||
|
||||
extern u_int8_t execute(t_command command, t_minishell *minishell);
|
||||
# define PIPE_ERROR -1
|
||||
# define FORK_ERROR -1
|
||||
|
||||
extern uint8_t execute(t_list *command, t_minishell *minishell);
|
||||
|
||||
#endif /* EXECUTOR_H */
|
||||
|
||||
Reference in New Issue
Block a user