Skip to content

Commit 9da29f0

Browse files
committed
style: Rename stdio_bind.c to stdio_redirect.c
"Binding" file descriptors is commonly used with sockets, not with files.
1 parent febc998 commit 9da29f0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build/source_files.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# By: ldulling <[email protected]> +#+ +:+ +#+ #
77
# +#+#+#+#+#+ +#+ #
88
# Created: 2024/03/19 16:15:33 by ldulling #+# #+# #
9-
# Updated: 2024/04/04 23:25:38 by ldulling ### ########.fr #
9+
# Updated: 2024/06/07 07:25:14 by ldulling ### ########.fr #
1010
# #
1111
# **************************************************************************** #
1212

@@ -76,7 +76,7 @@ SRC += $(addprefix $(DIR), \
7676
io_file.c \
7777
pipe.c \
7878
pipe_utils.c \
79-
stdio_bind.c \
79+
stdio_redirect.c \
8080
)
8181

8282
# Debug:

source/backend/executor/builtin_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static void redirect_io_and_exec_builtin(t_sh *shell)
7979
if (!redirect_scmd_io(shell, &shell->final_cmd_table->read_fd,
8080
&shell->final_cmd_table->write_fd))
8181
raise_error_to_own_subprocess(
82-
shell, GENERAL_ERROR, "fd bind failed");
82+
shell, GENERAL_ERROR, "fd redirect failed");
8383
exec_builtin_cmd(shell);
8484
}
8585

source/backend/redirection/stdio_bind.c renamed to source/backend/redirection/stdio_redirect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/* ************************************************************************** */
22
/* */
33
/* ::: :::::::: */
4-
/* stdio_bind.c :+: :+: :+: */
4+
/* stdio_redirect.c :+: :+: :+: */
55
/* +:+ +:+ +:+ */
66
/* By: ldulling <[email protected]> +#+ +:+ +#+ */
77
/* +#+#+#+#+#+ +#+ */
88
/* Created: 2024/03/19 15:09:45 by lyeh #+# #+# */
9-
/* Updated: 2024/06/07 07:31:17 by ldulling ### ########.fr */
9+
/* Updated: 2024/06/07 07:37:45 by ldulling ### ########.fr */
1010
/* */
1111
/* ************************************************************************** */
1212

0 commit comments

Comments
 (0)