diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:46:03 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 18:46:03 +0200 |
commit | 5eb753276ff9052d3ef93fd2b931a9bfb482590c (patch) | |
tree | e0dcc220be90eff1224b9ee1ee706253cb63ef2f /src/e_externs_pipes.c | |
parent | Names update (diff) | |
download | 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.gz 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.bz2 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.xz 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.zst 42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.zip |
Renamed quite some stuff
Diffstat (limited to 'src/e_externs_pipes.c')
-rw-r--r-- | src/e_externs_pipes.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/e_externs_pipes.c b/src/e_externs_pipes.c index 64581e4..86c4f0d 100644 --- a/src/e_externs_pipes.c +++ b/src/e_externs_pipes.c @@ -97,14 +97,14 @@ static void if ((pid = fork()) == 0) { if (i != 0) - dup2(fd[i - 1][FT_WRITE_END], STDIN_FILENO); + dup2(fd[i - 1][E_WRITE_END], STDIN_FILENO); if (i != pipes) - dup2(fd[i][FT_READ_END], STDOUT_FILENO); + dup2(fd[i][E_READ_END], STDOUT_FILENO); j = 0; while (j < pipes) { - close(fd[j][FT_WRITE_END]); - close(fd[j][FT_READ_END]); + close(fd[j][E_WRITE_END]); + close(fd[j][E_READ_END]); j++; } e_pipe_child(fullpath, i, head->com, msh); @@ -115,8 +115,8 @@ static void i = 0; while (i < pipes) { - close(fd[i][FT_WRITE_END]); - close(fd[i][FT_READ_END]); + close(fd[i][E_WRITE_END]); + close(fd[i][E_READ_END]); i++; } waitpid(pid, &status, 0); @@ -152,7 +152,7 @@ void else { if ((bu_id = u_get_builtin_id(rptr->com->bin)) - < FT_BUILTINS_COUNT) + < B_BUILTINS_COUNT) { if ((fullpath[i] = ft_strdup("builtin")) == NULL) f_alloc_and_destroy_msh(msh); |