• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* +++ GENERATED FILE +++ DO NOT EDIT +++ */
2/*-
3 * Copyright (c) 2013, 2014, 2015, 2017
4 *	mirabilos <m@mirbsd.org>
5 *
6 * Provided that these terms and disclaimer and all copyright notices
7 * are retained or reproduced in an accompanying document, permission
8 * is granted to deal in this work without restriction, including un-
9 * limited rights to use, publicly perform, distribute, sell, modify,
10 * merge, give away, or sublicence.
11 *
12 * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
13 * the utmost extent permitted by applicable law, neither express nor
14 * implied; without malicious intent or gross negligence. In no event
15 * may a licensor, author or contributor be held liable for indirect,
16 * direct, other damage, loss, or other issues arising in any way out
17 * of dealing in the work, even if advised of the possibility of such
18 * damage or existence of a defect, except proven that it results out
19 * of said person's immediate fault when using the work as intended.
20 */
21
22#ifndef SHFLAGS_OPTCS
23#if defined(SHFLAGS_DEFNS)
24__RCSID("$MirOS: src/bin/mksh/sh_flags.opt,v 1.6 2018/08/10 02:53:39 tg Exp $");
25#elif defined(SHFLAGS_ENUMS)
26#define FN(sname,cname,flags,ochar)	cname,
27#define F0(sname,cname,flags,ochar)	cname = 0,
28#elif defined(SHFLAGS_ITEMS)
29#define FN(sname,cname,flags,ochar)	((const char *)(&shoptione_ ## cname)) + 2,
30#endif
31#ifndef F0
32#define F0 FN
33#endif
34F0("allexport", FEXPORT, OF_ANY, 'a')
35#if HAVE_NICE
36FN("bgnice", FBGNICE, OF_ANY, 0)
37#endif
38FN("braceexpand", FBRACEEXPAND, OF_ANY, 0)
39#ifndef MKSH_NO_CMDLINE_EDITING
40FN("emacs", FEMACS, OF_ANY, 0)
41#endif
42FN("errexit", FERREXIT, OF_ANY, 'e')
43#ifndef MKSH_NO_CMDLINE_EDITING
44FN("gmacs", FGMACS, OF_ANY, 0)
45#endif
46FN("ignoreeof", FIGNOREEOF, OF_ANY, 0)
47FN("inherit-xtrace", FXTRACEREC, OF_ANY, 0)
48#ifndef SHFLAGS_NOT_CMD
49FN("interactive", FTALKING, OF_CMDLINE, 'i')
50#endif
51FN("keyword", FKEYWORD, OF_ANY, 'k')
52#ifndef SHFLAGS_NOT_CMD
53FN("login", FLOGIN, OF_CMDLINE, 'l')
54#endif
55FN("markdirs", FMARKDIRS, OF_ANY, 'X')
56#ifndef MKSH_UNEMPLOYED
57FN("monitor", FMONITOR, OF_ANY, 'm')
58#endif
59FN("noclobber", FNOCLOBBER, OF_ANY, 'C')
60FN("noexec", FNOEXEC, OF_ANY, 'n')
61FN("noglob", FNOGLOB, OF_ANY, 'f')
62FN("nohup", FNOHUP, OF_ANY, 0)
63FN("nolog", FNOLOG, OF_ANY, 0)
64#ifndef MKSH_UNEMPLOYED
65FN("notify", FNOTIFY, OF_ANY, 'b')
66#endif
67FN("nounset", FNOUNSET, OF_ANY, 'u')
68FN("physical", FPHYSICAL, OF_ANY, 0)
69FN("pipefail", FPIPEFAIL, OF_ANY, 0)
70FN("posix", FPOSIX, OF_ANY, 0)
71FN("privileged", FPRIVILEGED, OF_ANY, 'p')
72#ifndef SHFLAGS_NOT_CMD
73FN("restricted", FRESTRICTED, OF_CMDLINE, 'r')
74#endif
75FN("sh", FSH, OF_ANY, 0)
76#ifndef SHFLAGS_NOT_CMD
77FN("stdin", FSTDIN, OF_CMDLINE, 's')
78#endif
79FN("trackall", FTRACKALL, OF_ANY, 'h')
80FN("utf8-mode", FUNNYCODE, OF_ANY, 'U')
81FN("verbose", FVERBOSE, OF_ANY, 'v')
82#ifndef MKSH_NO_CMDLINE_EDITING
83FN("vi", FVI, OF_ANY, 0)
84#endif
85#ifndef MKSH_NO_CMDLINE_EDITING
86FN("vi-esccomplete", FVIESCCOMPLETE, OF_ANY, 0)
87#endif
88#ifndef MKSH_NO_CMDLINE_EDITING
89FN("vi-tabcomplete", FVITABCOMPLETE, OF_ANY, 0)
90#endif
91#ifndef MKSH_NO_CMDLINE_EDITING
92FN("viraw", FVIRAW, OF_ANY, 0)
93#endif
94FN("xtrace", FXTRACE, OF_ANY, 'x')
95#ifndef SHFLAGS_NOT_CMD
96FN("", FCOMMAND, OF_CMDLINE, 'c')
97#endif
98FN("", FAS_BUILTIN, OF_INTERNAL, 0)
99FN("", FTALKING_I, OF_INTERNAL, 0)
100#undef F0
101#undef FN
102#undef SHFLAGS_DEFNS
103#undef SHFLAGS_ENUMS
104#undef SHFLAGS_ITEMS
105#else
106#ifndef SHFLAGS_NOT_SET
107"A:"
108#endif
109"a"
110#ifndef MKSH_UNEMPLOYED
111"b"
112#endif
113"C"
114#ifndef SHFLAGS_NOT_CMD
115"c"
116#endif
117"e"
118"f"
119"h"
120#ifndef SHFLAGS_NOT_CMD
121"i"
122#endif
123"k"
124#ifndef SHFLAGS_NOT_CMD
125"l"
126#endif
127#ifndef MKSH_UNEMPLOYED
128"m"
129#endif
130"n"
131#ifndef SHFLAGS_NOT_CMD
132"o:"
133#endif
134#ifndef SHFLAGS_NOT_SET
135"o;"
136#endif
137"p"
138#ifndef SHFLAGS_NOT_CMD
139"r"
140#endif
141#ifndef SHFLAGS_NOT_CMD
142"s"
143#endif
144#ifndef SHFLAGS_NOT_SET
145"s"
146#endif
147#ifndef SHFLAGS_NOT_CMD
148"T:"
149#endif
150"U"
151"u"
152"v"
153"X"
154"x"
155#undef SHFLAGS_OPTCS
156#endif
157