summaryrefslogtreecommitdiffstats
path: root/src/e_externs_pipes.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/e_externs_pipes.c14
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);