xref: /dragonfly/bin/sh/pregenerated/builtins.c (revision c6b7f0da)
1 /*
2  * This file was generated by the mkbuiltins program.
3  */
4 
5 #include <stdlib.h>
6 #include "shell.h"
7 #include "builtins.h"
8 
9 int (*const builtinfunc[])(int, char **) = {
10 	bltincmd,
11 	aliascmd,
12 	bgcmd,
13 	bindcmd,
14 	breakcmd,
15 	cdcmd,
16 	commandcmd,
17 	dotcmd,
18 	echocmd,
19 	evalcmd,
20 	execcmd,
21 	exitcmd,
22 	letcmd,
23 	exportcmd,
24 	falsecmd,
25 	fgcmd,
26 	getoptscmd,
27 	hashcmd,
28 	histcmd,
29 	jobidcmd,
30 	jobscmd,
31 	killcmd,
32 	localcmd,
33 	printfcmd,
34 	pwdcmd,
35 	readcmd,
36 	returncmd,
37 	setcmd,
38 	setvarcmd,
39 	shiftcmd,
40 	testcmd,
41 	timescmd,
42 	trapcmd,
43 	truecmd,
44 	typecmd,
45 	ulimitcmd,
46 	umaskcmd,
47 	unaliascmd,
48 	unsetcmd,
49 	waitcmd,
50 	wordexpcmd,
51 };
52 
53 const struct builtincmd builtincmd[] = {
54 	{ "builtin", 0, 0 },
55 	{ "alias", 1, 0 },
56 	{ "bg", 2, 0 },
57 	{ "bind", 3, 0 },
58 	{ "break", 4, 1 },
59 	{ "continue", 4, 1 },
60 	{ "cd", 5, 0 },
61 	{ "chdir", 5, 0 },
62 	{ "command", 6, 0 },
63 	{ ".", 7, 1 },
64 	{ "echo", 8, 0 },
65 	{ "eval", 9, 1 },
66 	{ "exec", 10, 1 },
67 	{ "exit", 11, 1 },
68 	{ "let", 12, 0 },
69 	{ "export", 13, 1 },
70 	{ "readonly", 13, 1 },
71 	{ "false", 14, 0 },
72 	{ "fg", 15, 0 },
73 	{ "getopts", 16, 0 },
74 	{ "hash", 17, 0 },
75 	{ "fc", 18, 0 },
76 	{ "jobid", 19, 0 },
77 	{ "jobs", 20, 0 },
78 	{ "kill", 21, 0 },
79 	{ "local", 22, 0 },
80 	{ "printf", 23, 0 },
81 	{ "pwd", 24, 0 },
82 	{ "read", 25, 0 },
83 	{ "return", 26, 1 },
84 	{ "set", 27, 1 },
85 	{ "setvar", 28, 0 },
86 	{ "shift", 29, 1 },
87 	{ "test", 30, 0 },
88 	{ "[", 30, 0 },
89 	{ "times", 31, 1 },
90 	{ "trap", 32, 1 },
91 	{ ":", 33, 1 },
92 	{ "true", 33, 0 },
93 	{ "type", 34, 0 },
94 	{ "ulimit", 35, 0 },
95 	{ "umask", 36, 0 },
96 	{ "unalias", 37, 0 },
97 	{ "unset", 38, 1 },
98 	{ "wait", 39, 0 },
99 	{ "wordexp", 40, 0 },
100 	{ NULL, 0, 0 }
101 };
102