|
Minishell 1.0
42 School Minishell Project - A simple shell implementation
|
#include "../../include/minishell.h"#include <fcntl.h>#include <unistd.h>#include <string.h>#include <errno.h>Bu dosyanın kaynak koduna git.
Fonksiyonlar | |
| static int | open_redir_file (t_redir *redir, int flags, int mode) |
| Redirection dosyasını açar. | |
| int | apply_redir (t_shell *shell, t_redir *redir) |
| Tek bir redirection uygula. | |
| int | setup_redirs (t_shell *shell, t_cmd *cmd) |
| Tüm redirectionları uygula. | |
|
static |
Redirection dosyasını açar.
| redir | Redirection yapısı |
| flags | open() flag'leri |
| mode | Dosya oluşturma izni (O_CREAT varsa) |
executor_redir.c dosyasının 26 numaralı satırında tanımlanmıştır.
Referanslar s_redir::file ve shell_error().
Referans veren apply_redir().
Tek bir redirection uygula.
| shell | Shell structure |
| redir | Redirection yapısı |
executor_redir.c dosyasının 47 numaralı satırında tanımlanmıştır.
Referanslar open_redir_file(), REDIR_APPEND, REDIR_HEREDOC, redir_heredoc(), REDIR_IN, REDIR_OUT ve s_redir::type.
Referans veren setup_redirs().
Tüm redirectionları uygula.
| shell | Shell structure |
| cmd | Command yapısı |
executor_redir.c dosyasının 85 numaralı satırında tanımlanmıştır.
Referanslar apply_redir() ve s_cmd::redirections.
Referans veren child_exec(), execute_cmd() ve run_builtin_parent().