Skip to content
builtin.h 1.06 KiB
Newer Older
Seblu's avatar
Seblu committed
/*
** builtin.h for 42sh in /home/seblu/svn/42sh
**
** Made by Seblu
** Login   <seblu@epita.fr>
**
** Started on  Sun Nov 12 16:46:24 2006 Seblu
Seblu's avatar
Seblu committed
** Last update Sun Nov 12 19:55:03 2006 Seblu
Seblu's avatar
Seblu committed
*/

#ifndef BUILTIN_H_
# define BUILTIN_H_

Seblu's avatar
Seblu committed
# include <assert.h>
# include "../ast/ast.h"
# include "../shell/shell.h"
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
int	is_a_builtin(const char *name);
int	exec_builtin(s_cmd_node *cmd);
Seblu's avatar
Seblu committed

Seblu's avatar
Seblu committed
int	builtin_cd(char *argv[]);
int	builtin_echo(char *argv[]);
int	builtin_shopt(char *argv[]);
int	builtin_exit(char *argv[]);
int	builtin_source(char *argv[]);
int	builtin_unset(char *argv[]);
int	builtin_export(char *argv[]);
Seblu's avatar
Seblu committed

/*
** Bonus builtin
*/
Seblu's avatar
Seblu committed
/* int	builtin_simpledot(char *argv[], struct s_42sh *sh); */
/* int	builtin_doubledot(char *argv[], struct s_42sh *sh); */
/* int	builtin_set(char *argv[], struct s_42sh *sh); */
/* int	builtin_varlist(char *argv[], struct s_42sh *sh); */
/* int	builtin_funclist(char *argv[], struct s_42sh *sh); */
/* int	builtin_exec(char *argv[], struct s_42sh *sh); */
/* int	builtin_history(char *argv[], struct s_42sh *sh); */
Seblu's avatar
Seblu committed

#endif /* ! BUILTIN_H_ */