mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-05 23:18:08 +01:00
31 lines
1.6 KiB
C
31 lines
1.6 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* builtins.h :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/03/31 14:16:13 by kcolin #+# #+# */
|
|
/* Updated: 2025/05/06 14:49:59 by kcolin ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef BUILTINS_H
|
|
# define BUILTINS_H
|
|
|
|
# include "simple_cmd_execute.h"
|
|
|
|
t_subprocess builtin_invalid(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_pwd(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_cd(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_export(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_exit(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_echo(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_env(t_simple_cmd *cmd, t_minishell *app);
|
|
t_subprocess builtin_unset(t_simple_cmd *cmd, t_minishell *app);
|
|
|
|
t_builtin_type get_builtin(t_simple_cmd *cmd);
|
|
t_subprocess execute_builtin(t_simple_cmd *cmd, t_minishell *app,
|
|
t_builtin_type type);
|
|
|
|
#endif // BUILTINS_H
|