[✏️] norm: normed project.
This commit is contained in:
22
include/exec.h
Normal file
22
include/exec.h
Normal file
@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* exec.h :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/04/06 14:15:47 by adjoly #+# #+# */
|
||||
/* Updated: 2024/04/06 14:18:27 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef EXEC_H
|
||||
# define EXEC_H
|
||||
|
||||
# include <sys/wait.h>
|
||||
|
||||
#include "pipex.h"
|
||||
|
||||
void exec_pipe(t_pipex *pipex);
|
||||
|
||||
#endif
|
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/22 21:14:06 by adjoly #+# #+# */
|
||||
/* Updated: 2024/04/03 14:24:09 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/04/06 17:26:47 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -23,10 +23,15 @@
|
||||
typedef struct s_pipex
|
||||
{
|
||||
t_pcmd *cmd;
|
||||
char **path;
|
||||
char **env;
|
||||
int infile;
|
||||
int outfile;
|
||||
char *outfile;
|
||||
} t_pipex;
|
||||
|
||||
void ft_senderror(t_pipex *pipex, char *msg);
|
||||
void getpath(t_pipex *pipex);
|
||||
void get_arrcmd_path(t_pipex *pipex);
|
||||
void exec_pipe(t_pipex *pipex);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user