minishell/inc/executor.h

29 lines
1.4 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* executor.h :+: :+: */
/* +:+ */
/* By: willem <willem@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/02/08 17:06:07 by willem #+# #+# */
/* Updated: 2025/02/21 13:16:29 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef EXECUTOR_H
# define EXECUTOR_H
# include "minishell.h"
char *executor_absolute_path(t_list *env, char *cmd);
void executor_child(t_command *command);
pid_t executor_fork(t_command *command);
void executor_create_pipes(t_minishell *minishell);
int executor_execute_pipeline(t_minishell *minishell);
void executor_close_fds(int n_fds);
int executor_count_fds(t_minishell *minishell);
int executor_open_fds(t_list *redirect_list, int og_fd);
void executor_create_redirects(t_minishell *minishell);
#endif // EXECUTOR_H