Skip to content

Commit

Permalink
style: Rename stdio_bind.c to stdio_redirect.c
Browse files Browse the repository at this point in the history
"Binding" file descriptors is commonly used with sockets, not with files.
  • Loading branch information
itislu committed Jul 15, 2024
1 parent febc998 commit 9da29f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build/source_files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# By: ldulling <ldulling@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/03/19 16:15:33 by ldulling #+# #+# #
# Updated: 2024/04/04 23:25:38 by ldulling ### ########.fr #
# Updated: 2024/06/07 07:25:14 by ldulling ### ########.fr #
# #
# **************************************************************************** #

Expand Down Expand Up @@ -76,7 +76,7 @@ SRC += $(addprefix $(DIR), \
io_file.c \
pipe.c \
pipe_utils.c \
stdio_bind.c \
stdio_redirect.c \
)

# Debug:
Expand Down
2 changes: 1 addition & 1 deletion source/backend/executor/builtin_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void redirect_io_and_exec_builtin(t_sh *shell)
if (!redirect_scmd_io(shell, &shell->final_cmd_table->read_fd,
&shell->final_cmd_table->write_fd))
raise_error_to_own_subprocess(
shell, GENERAL_ERROR, "fd bind failed");
shell, GENERAL_ERROR, "fd redirect failed");
exec_builtin_cmd(shell);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* stdio_bind.c :+: :+: :+: */
/* stdio_redirect.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ldulling <ldulling@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/19 15:09:45 by lyeh #+# #+# */
/* Updated: 2024/06/07 07:31:17 by ldulling ### ########.fr */
/* Updated: 2024/06/07 07:37:45 by ldulling ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down

0 comments on commit 9da29f0

Please sign in to comment.