1 /* +++ GENERATED FILE +++ DO NOT EDIT +++ */ 2 /*- 3 * Copyright (c) 2013, 2014, 2015 4 * mirabilos <m (at) 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.4 2015/12/12 21:08:44 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 34 F0("allexport", FEXPORT, OF_ANY, 'a') 35 #if HAVE_NICE 36 FN("bgnice", FBGNICE, OF_ANY, 0) 37 #endif 38 FN("braceexpand", FBRACEEXPAND, OF_ANY, 0) 39 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 40 FN("emacs", FEMACS, OF_ANY, 0) 41 #endif 42 FN("errexit", FERREXIT, OF_ANY, 'e') 43 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 44 FN("gmacs", FGMACS, OF_ANY, 0) 45 #endif 46 FN("ignoreeof", FIGNOREEOF, OF_ANY, 0) 47 FN("inherit-xtrace", FXTRACEREC, OF_ANY, 0) 48 #ifndef SHFLAGS_NOT_CMD 49 FN("interactive", FTALKING, OF_CMDLINE, 'i') 50 #endif 51 FN("keyword", FKEYWORD, OF_ANY, 'k') 52 #ifndef SHFLAGS_NOT_CMD 53 FN("login", FLOGIN, OF_CMDLINE, 'l') 54 #endif 55 FN("markdirs", FMARKDIRS, OF_ANY, 'X') 56 #ifndef MKSH_UNEMPLOYED 57 FN("monitor", FMONITOR, OF_ANY, 'm') 58 #endif 59 FN("noclobber", FNOCLOBBER, OF_ANY, 'C') 60 FN("noexec", FNOEXEC, OF_ANY, 'n') 61 FN("noglob", FNOGLOB, OF_ANY, 'f') 62 FN("nohup", FNOHUP, OF_ANY, 0) 63 FN("nolog", FNOLOG, OF_ANY, 0) 64 #ifndef MKSH_UNEMPLOYED 65 FN("notify", FNOTIFY, OF_ANY, 'b') 66 #endif 67 FN("nounset", FNOUNSET, OF_ANY, 'u') 68 FN("physical", FPHYSICAL, OF_ANY, 0) 69 FN("pipefail", FPIPEFAIL, OF_ANY, 0) 70 FN("posix", FPOSIX, OF_ANY, 0) 71 FN("privileged", FPRIVILEGED, OF_ANY, 'p') 72 #ifndef SHFLAGS_NOT_CMD 73 FN("restricted", FRESTRICTED, OF_CMDLINE, 'r') 74 #endif 75 FN("sh", FSH, OF_ANY, 0) 76 #ifndef SHFLAGS_NOT_CMD 77 FN("stdin", FSTDIN, OF_CMDLINE, 's') 78 #endif 79 FN("trackall", FTRACKALL, OF_ANY, 'h') 80 FN("utf8-mode", FUNICODE, OF_ANY, 'U') 81 FN("verbose", FVERBOSE, OF_ANY, 'v') 82 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 83 FN("vi", FVI, OF_ANY, 0) 84 #endif 85 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 86 FN("vi-esccomplete", FVIESCCOMPLETE, OF_ANY, 0) 87 #endif 88 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 89 FN("vi-tabcomplete", FVITABCOMPLETE, OF_ANY, 0) 90 #endif 91 #if !defined(MKSH_NO_CMDLINE_EDITING) || defined(MKSH_LEGACY_MODE) 92 FN("viraw", FVIRAW, OF_ANY, 0) 93 #endif 94 FN("xtrace", FXTRACE, OF_ANY, 'x') 95 #ifndef SHFLAGS_NOT_CMD 96 FN("", FCOMMAND, OF_CMDLINE, 'c') 97 #endif 98 FN("", FAS_BUILTIN, OF_INTERNAL, 0) 99 FN("", 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