Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
pipex/include/pipex.h

38 lines
1.3 KiB
C
Raw Normal View History

2024-03-22 21:23:17 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* pipex.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/22 21:14:06 by adjoly #+# #+# */
2024-04-07 11:03:38 +02:00
/* Updated: 2024/04/06 17:26:47 by adjoly ### ########.fr */
2024-03-22 21:23:17 +01:00
/* */
/* ************************************************************************** */
#ifndef PIPEX_H
# define PIPEX_H
2024-04-03 16:41:58 +02:00
# include "parsing.h"
# include "libft.h"
# include <stdlib.h>
# include <unistd.h>
# include <fcntl.h>
typedef struct s_pipex
2024-03-22 21:23:17 +01:00
{
2024-04-03 16:41:58 +02:00
t_pcmd *cmd;
2024-04-07 11:03:38 +02:00
char **path;
char **env;
2024-04-03 16:41:58 +02:00
int infile;
2024-04-07 11:03:38 +02:00
char *outfile;
2024-04-03 16:41:58 +02:00
} t_pipex;
2024-03-22 21:23:17 +01:00
2024-04-03 16:41:58 +02:00
void ft_senderror(t_pipex *pipex, char *msg);
2024-04-07 11:03:38 +02:00
void getpath(t_pipex *pipex);
void get_arrcmd_path(t_pipex *pipex);
void exec_pipe(t_pipex *pipex);
2024-03-22 21:23:17 +01:00
#endif