Home
last modified time | relevance | path

Searched refs:opt (Results 1 – 25 of 5765) sorted by relevance

12345678910>>...231

/external/syslinux/com32/chain/
Doptions.c40 struct options opt; variable
172 memset(&opt, 0, sizeof opt); in opt_set_defs()
173 opt.sect = true; /* by def. load sector */ in opt_set_defs()
174 opt.maps = true; /* by def. map sector */ in opt_set_defs()
175 opt.hand = true; /* by def. prepare handover */ in opt_set_defs()
176 opt.brkchain = false; /* by def. do chainload */ in opt_set_defs()
177 opt.piflags = PIF_STRICT; /* by def. be strict, but ignore disk sizes */ in opt_set_defs()
178 opt.foff = opt.soff = opt.fip = opt.sip = 0x7C00; in opt_set_defs()
179 opt.drivename = "boot"; in opt_set_defs()
181 opt.warn = true; in opt_set_defs()
[all …]
Dmangle.c58 if (!(opt.file && opt.isolinux)) in manglef_isolinux()
87 file_lba = get_file_lba(opt.file); in manglef_isolinux()
161 if (!(opt.file && opt.grub)) in manglef_grub()
213 if (opt.grubcfg) { in manglef_grub()
214 if (strlen(opt.grubcfg) >= sizeof stage2->config_file) { in manglef_grub()
219 strcpy((char *)stage2->config_file, opt.grubcfg); in manglef_grub()
238 if (!(opt.file && opt.drmk))
258 opt.regs.ss = opt.regs.fs = opt.regs.gs = 0; /* Used before initialized */
266 opt.regs.ds = (tsize >> 4) + (opt.fseg - 2);
313 *(uint8_t *)((char *)data->data + off) = (opt.swap ? iter->di.disk & 0x80 : iter->di.disk); in mangle_bpb()
[all …]
Dchain.c74 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_sig()
101 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_guid()
130 if (!(iter = pi_begin(&diskinfo, opt.piflags))) in find_by_label()
151 uint8_t driveno = opt.regs.edx.b[0]; in do_boot()
176 if (opt.swap && driveno != swapdrive) { in do_boot()
222 *(uint16_t *) & swapstub[0x3a] = opt.regs.ds; in do_boot()
223 *(uint16_t *) & swapstub[0x3d] = opt.regs.es; in do_boot()
224 *(uint32_t *) & swapstub[0x45] = opt.regs.ecx.l; in do_boot()
225 *(uint32_t *) & swapstub[0x4b] = opt.regs.esi.l; in do_boot()
226 *(uint32_t *) & swapstub[0x51] = opt.regs.edi.l; in do_boot()
[all …]
/external/toybox/tests/
Ddd.test9 opt="2>/dev/null"
14 testing "count=2" "dd if=input count=2 ibs=1 $opt" "hi" "high\n" ""
15 testing "count= 2" "dd if=input 'count= 2' ibs=1 $opt" "hi" "high\n" ""
16 SKIP_HOST=1 testing "count=0x2" "dd if=input 'count=0x2' ibs=1 $opt" "hi" \
20 testing "if=(file)" "dd if=input $opt" "I WANT\n" "I WANT\n" ""
21 testing "of=(file)" "dd of=file $opt && cat file" "I WANT\n" "" "I WANT\n"
22 testing "if=file of=file" "dd if=input of=foo $opt && cat foo && rm -f foo" \
24 testing "if=file | dd of=file" "dd if=input $opt | dd of=foo $opt &&
26 testing "(stdout)" "dd $opt" "I WANT\n" "" "I WANT\n"
28 "dd if=input of=outFile seek=8860 bs=1M conv=sync,noerror $opt &&
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Demplace.pass.cpp53 Opt opt; in test_one_arg() local
54 auto & v = opt.emplace(); in test_one_arg()
56 assert(static_cast<bool>(opt) == true); in test_one_arg()
57 assert(*opt == T(0)); in test_one_arg()
58 assert(&v == &*opt); in test_one_arg()
61 Opt opt; in test_one_arg() local
62 auto & v = opt.emplace(1); in test_one_arg()
64 assert(static_cast<bool>(opt) == true); in test_one_arg()
65 assert(*opt == T(1)); in test_one_arg()
66 assert(&v == &*opt); in test_one_arg()
[all …]
Dassign_value.pass.cpp90 optional<T> opt; in test_with_test_type() local
91 opt = 3; in test_with_test_type()
97 assert(static_cast<bool>(opt) == true); in test_with_test_type()
98 assert(*opt == T(3)); in test_with_test_type()
101 optional<T> opt(42); in test_with_test_type() local
103 opt = 3; in test_with_test_type()
109 assert(static_cast<bool>(opt) == true); in test_with_test_type()
110 assert(*opt == T(3)); in test_with_test_type()
113 optional<T> opt; in test_with_test_type() local
115 opt = {1, 2}; in test_with_test_type()
[all …]
/external/syslinux/com32/lib/
Ddhcpunpack.c16 struct dhcp_option opt[256]) in dhcp_unpack_field()
34 if (opt[op].len < 0) in dhcp_unpack_field()
35 opt[op].len = 0; in dhcp_unpack_field()
37 opt[op].data = realloc(opt[op].data, in dhcp_unpack_field()
38 opt[op].len + xlen + 1); in dhcp_unpack_field()
39 if (!opt[op].data) { in dhcp_unpack_field()
43 memcpy((char *)opt[op].data + opt[op].len, p, xlen); in dhcp_unpack_field()
44 opt[op].len += xlen; in dhcp_unpack_field()
46 *((char *)opt[op].data + opt[op].len) = 0; in dhcp_unpack_field()
60 struct dhcp_option opt[256]) in dhcp_unpack_packet()
[all …]
/external/ppp/pppd/
Doptions.c376 option_t *opt; local
385 opt = find_option(arg);
386 if (opt == NULL) {
391 n = n_arguments(opt);
396 if (!process_option(opt, arg, argv))
417 option_t *opt; local
453 opt = find_option(cmd);
454 if (opt == NULL) {
459 n = n_arguments(opt);
469 if (!process_option(opt, cmd, argv))
[all …]
/external/llvm/tools/llvm-pdbdump/
Dllvm-pdbdump.h19 extern llvm::cl::opt<bool> Compilands;
20 extern llvm::cl::opt<bool> Symbols;
21 extern llvm::cl::opt<bool> Globals;
22 extern llvm::cl::opt<bool> Types;
23 extern llvm::cl::opt<bool> All;
24 extern llvm::cl::opt<bool> ExcludeCompilerGenerated;
26 extern llvm::cl::opt<bool> NoClassDefs;
27 extern llvm::cl::opt<bool> NoEnumDefs;
37 extern llvm::cl::opt<bool> DumpHeaders;
38 extern llvm::cl::opt<bool> DumpStreamBlocks;
[all …]
/external/python/cpython2/Lib/
Dgetopt.py39 opt = '' variable in GetoptError
41 def __init__(self, msg, opt=''): argument
43 self.opt = opt
44 Exception.__init__(self, msg, opt)
144 def do_longs(opts, opt, longopts, args): argument
146 i = opt.index('=')
150 opt, optarg = opt[:i], opt[i+1:]
152 has_arg, opt = long_has_args(opt, longopts)
156 raise GetoptError('option --%s requires argument' % opt, opt)
159 raise GetoptError('option --%s must not have an argument' % opt, opt)
[all …]
/external/clang/lib/Driver/
DToolChains.h106 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args,
147 const llvm::opt::ArgList &Args,
153 const llvm::opt::ArgList &Args,
181 void init(const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args);
216 const llvm::opt::ArgList &Args);
245 const llvm::opt::ArgList &DriverArgs,
246 llvm::opt::ArgStringList &CC1Args) const;
268 const llvm::opt::ArgList &Args);
276 StringRef getMachOArchName(const llvm::opt::ArgList &Args) const;
279 virtual void AddLinkARCArgs(const llvm::opt::ArgList &Args, in AddLinkARCArgs()
[all …]
/external/python/cpython3/Lib/
Dgetopt.py44 opt = '' variable in GetoptError
46 def __init__(self, msg, opt=''): argument
48 self.opt = opt
49 Exception.__init__(self, msg, opt)
149 def do_longs(opts, opt, longopts, args): argument
151 i = opt.index('=')
155 opt, optarg = opt[:i], opt[i+1:]
157 has_arg, opt = long_has_args(opt, longopts)
161 raise GetoptError(_('option --%s requires argument') % opt, opt)
164 raise GetoptError(_('option --%s must not have an argument') % opt, opt)
[all …]
/external/syslinux/libinstaller/
Dsyslxopt.c32 struct sys_options opt = { variable
144 opt.force = 1; in parse_options()
147 opt.heads = 64; in parse_options()
148 opt.sectors = 32; in parse_options()
151 opt.sectors = strtoul(optarg, NULL, 0); in parse_options()
152 if (opt.sectors < 1 || opt.sectors > 63) { in parse_options()
155 program, opt.sectors); in parse_options()
160 opt.heads = strtoul(optarg, NULL, 0); in parse_options()
161 if (opt.heads < 1 || opt.heads > 256) { in parse_options()
164 program, opt.heads); in parse_options()
[all …]
/external/python/cpython3/Lib/test/
Dtest_regrtest.py49 for opt in '-h', '--help':
50 with self.subTest(opt=opt):
53 libregrtest._parse_args([opt])
74 for opt in '-S', '--start':
75 with self.subTest(opt=opt):
76 ns = libregrtest._parse_args([opt, 'foo'])
78 self.checkError([opt], 'expected one argument')
93 for opt in '-w', '--verbose2':
94 with self.subTest(opt=opt):
95 ns = libregrtest._parse_args([opt])
[all …]
/external/libxml2/win32/
Dconfigure.js85 function boolToStr(opt) argument
87 if (opt == false)
89 else if (opt == true)
97 function strToBool(opt) argument
99 if (opt == 0 || opt == "no")
101 else if (opt == 1 || opt == "yes")
459 var arg, opt; variable
461 opt = arg.substring(0, arg.indexOf("="));
462 if (opt.length == 0)
463 opt = arg.substring(0, arg.indexOf(":"));
[all …]
/external/iproute2/tc/
Dq_sfq.c41 struct tc_sfq_qopt_v1 opt = {}; in sfq_parse_opt() local
50 if (get_size(&opt.v0.quantum, *argv)) { in sfq_parse_opt()
57 if (get_integer(&opt.v0.perturb_period, *argv, 0)) { in sfq_parse_opt()
64 if (get_u32(&opt.v0.limit, *argv, 0)) { in sfq_parse_opt()
68 if (opt.v0.limit < 2) { in sfq_parse_opt()
75 if (get_u32(&opt.v0.divisor, *argv, 0)) { in sfq_parse_opt()
82 if (get_u32(&opt.v0.flows, *argv, 0)) { in sfq_parse_opt()
89 if (get_u32(&opt.depth, *argv, 0)) { in sfq_parse_opt()
95 opt.headdrop = 1; in sfq_parse_opt()
99 if (get_u32(&opt.limit, *argv, 0)) { in sfq_parse_opt()
[all …]
/external/libchrome/base/
Doptional_unittest.cc784 Optional<int> opt; in TEST() local
785 EXPECT_TRUE(opt == base::nullopt); in TEST()
788 Optional<int> opt(1); in TEST() local
789 EXPECT_FALSE(opt == base::nullopt); in TEST()
795 Optional<int> opt; in TEST() local
796 EXPECT_TRUE(base::nullopt == opt); in TEST()
799 Optional<int> opt(1); in TEST() local
800 EXPECT_FALSE(base::nullopt == opt); in TEST()
806 Optional<int> opt; in TEST() local
807 EXPECT_FALSE(opt != base::nullopt); in TEST()
[all …]
/external/dhcpcd-6.8.2/
Ddhcp-common.c47 dhcp_print_option_encoding(const struct dhcp_opt *opt, int cols) in dhcp_print_option_encoding() argument
55 if (opt->type & EMBED) in dhcp_print_option_encoding()
57 if (opt->type & ENCAP) in dhcp_print_option_encoding()
59 if (opt->type & INDEX) in dhcp_print_option_encoding()
61 if (opt->type & ARRAY) in dhcp_print_option_encoding()
63 if (opt->type & UINT8) in dhcp_print_option_encoding()
65 else if (opt->type & UINT16) in dhcp_print_option_encoding()
67 else if (opt->type & SINT16) in dhcp_print_option_encoding()
69 else if (opt->type & UINT32) in dhcp_print_option_encoding()
71 else if (opt->type & SINT32) in dhcp_print_option_encoding()
[all …]
/external/iproute2/ip/
Dip.c188 char *opt = argv[1]; in main() local
190 if (strcmp(opt, "--") == 0) { in main()
194 if (opt[0] != '-') in main()
196 if (opt[1] == '-') in main()
197 opt++; in main()
198 if (matches(opt, "-loops") == 0) { in main()
204 } else if (matches(opt, "-family") == 0) { in main()
215 } else if (strcmp(opt, "-4") == 0) { in main()
217 } else if (strcmp(opt, "-6") == 0) { in main()
219 } else if (strcmp(opt, "-0") == 0) { in main()
[all …]
/external/llvm/tools/llvm-objdump/
Dllvm-objdump.h29 extern cl::opt<std::string> TripleName;
30 extern cl::opt<std::string> ArchName;
31 extern cl::opt<std::string> MCPU;
34 extern cl::opt<bool> Disassemble;
35 extern cl::opt<bool> DisassembleAll;
36 extern cl::opt<bool> NoShowRawInsn;
37 extern cl::opt<bool> PrivateHeaders;
38 extern cl::opt<bool> FirstPrivateHeader;
39 extern cl::opt<bool> ExportsTrie;
40 extern cl::opt<bool> Rebase;
[all …]
/external/elfutils/libdwfl/
Dargp-std.c127 struct parse_opt *opt = calloc (1, sizeof (*opt)); in parse_opt() local
128 if (opt == NULL) in parse_opt()
130 state->hook = opt; in parse_opt()
140 struct parse_opt *opt = state->hook; in parse_opt() local
141 Dwfl *dwfl = opt->dwfl; in parse_opt()
147 opt->dwfl = dwfl; in parse_opt()
160 opt->e = arg; in parse_opt()
166 struct parse_opt *opt = state->hook; in parse_opt() local
167 if (opt->dwfl == NULL) in parse_opt()
177 opt->dwfl = dwfl; in parse_opt()
[all …]
/external/clang/include/clang/Driver/
DToolChain.h27 namespace opt {
72 const llvm::opt::ArgList &Args;
74 const llvm::opt::Arg *const CachedRTTIArg;
100 const llvm::opt::ArgList &Args);
108 static void addSystemInclude(const llvm::opt::ArgList &DriverArgs,
109 llvm::opt::ArgStringList &CC1Args,
111 static void addExternCSystemInclude(const llvm::opt::ArgList &DriverArgs,
112 llvm::opt::ArgStringList &CC1Args,
115 addExternCSystemIncludeIfExists(const llvm::opt::ArgList &DriverArgs,
116 llvm::opt::ArgStringList &CC1Args,
[all …]
/external/libcxx/test/std/utilities/optional/optional.object/optional.object.ctor/
Drvalue_T.pass.cpp46 constexpr optional<T> opt(T(5)); in main() local
47 static_assert(static_cast<bool>(opt) == true, ""); in main()
48 static_assert(*opt == 5, ""); in main()
58 constexpr optional<T> opt(T(3)); in main() local
59 static_assert(static_cast<bool>(opt) == true, ""); in main()
60 static_assert(*opt == 3, ""); in main()
76 optional<T> opt = T{3}; in main()
79 assert(static_cast<bool>(opt) == true); in main()
80 assert(opt.value().value == 3); in main()
86 optional<T> opt(T{3}); in main() local
[all …]
Din_place_t.pass.cpp65 constexpr optional<int> opt(in_place, 5); in main() local
66 static_assert(static_cast<bool>(opt) == true, ""); in main()
67 static_assert(*opt == 5, ""); in main()
78 optional<const int> opt(in_place, 5); in main() local
79 assert(*opt == 5); in main()
82 const optional<X> opt(in_place); in main() local
83 assert(static_cast<bool>(opt) == true); in main()
84 assert(*opt == X()); in main()
87 const optional<X> opt(in_place, 5); in main() local
88 assert(static_cast<bool>(opt) == true); in main()
[all …]
/external/toybox/lib/
Dargs.c115 struct opts *opt; member
132 static int gotflag(struct getoptflagstate *gof, struct opts *opt) in gotflag() argument
137 if (!opt) { in gotflag()
143 if (toys.optflags & opt->dex[0]) { in gotflag()
149 if (clr->arg && (i & toys.optflags & opt->dex[0])) *clr->arg = 0; in gotflag()
150 toys.optflags &= ~opt->dex[0]; in gotflag()
154 toys.optflags |= opt->dex[1]; in gotflag()
155 gof->excludes |= opt->dex[2]; in gotflag()
156 if (opt->flags&2) gof->stopearly=2; in gotflag()
163 if (opt == bad || !(i & toys.optflags)) continue; in gotflag()
[all …]

12345678910>>...231