Searched refs:opt (Results 26 - 50 of 1396) sorted by relevance

1234567891011>>

/macosx-10.10/xnu-2782.1.97/osfmk/mach/
H A Dthread_switch.h82 #define valid_switch_option(opt) (0 <= (opt) && (opt) <= 5)
/macosx-10.10/ruby-106/ruby/test/optparse/
H A Dtest_optarg.rb6 @opt.def_option("-x[VAL]") {|x| @flag = x}
7 @opt.def_option("--option[=VAL]") {|x| @flag = x}
8 @opt.def_option("--regexp[=REGEXP]", Regexp) {|x| @reopt = x}
13 assert_equal(%w"", no_error {@opt.parse!(%w"-x")})
16 assert_equal(%w"foo", no_error {@opt.parse!(%w"-x foo")})
18 assert_equal(%w"", no_error {@opt.parse!(%w"-xfoo")})
20 assert_equal(%w"", no_error {@opt.parse!(%w"-x=")})
25 assert_equal(%w"", no_error {@opt.parse!(%w"-o")})
28 assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")})
30 assert_equal(%w"", no_error {@opt
[all...]
H A Dtest_optparse.rb6 @opt = OptionParser.new
23 assert_equal(%w"", no_error {@opt.permute!(%w"")})
25 assert_equal(%w"foo bar", no_error {@opt.permute!(%w"foo bar")})
27 assert_equal(%w"- foo bar", no_error {@opt.permute!(%w"- foo bar")})
29 assert_equal(%w"foo bar", no_error {@opt.permute!(%w"-- foo bar")})
31 assert_equal(%w"foo - bar", no_error {@opt.permute!(%w"foo - bar")})
33 assert_equal(%w"foo bar", no_error {@opt.permute!(%w"foo -- bar")})
35 assert_equal(%w"foo --help bar", no_error {@opt.permute!(%w"foo -- --help bar")})
40 assert_equal(%w"", no_error {@opt.order!(%w"")})
42 assert_equal(%w"foo bar", no_error {@opt
[all...]
H A Dtest_autoconf.rb8 @opt = OptionParser::AC.new
10 @opt.ac_arg_enable("foo", "foo option") {|x| @foo = x}
11 @opt.ac_arg_disable("bar", "bar option") {|x| @bar = x}
12 @opt.ac_arg_with("zot", "zot option") {|x| @zot = x}
28 @opt.parse!(%w"--enable-foo")
30 @opt.parse!(%w"--enable-bar")
35 @opt.parse!(%w"--disable-foo")
37 @opt.parse!(%w"--disable-bar")
42 @opt.parse!(%w"--with-zot=foobar")
44 @opt
[all...]
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/contrib/ldapc++/src/
H A DTlsOptions.cpp41 static void checkOpt( TlsOptions::tls_option opt, opttype type ) { argument
42 if ( opt < TlsOptions::CACERTFILE || opt >= TlsOptions::LASTOPT ){
46 if ( optmap[opt].type != type ){
55 void TlsOptions::setOption( tls_option opt, const std::string& value ) const { argument
56 checkOpt(opt, STRING);
57 this->setOption( opt, value.empty() ? NULL : (void*) value.c_str() );
60 void TlsOptions::setOption( tls_option opt, int value ) const { argument
61 checkOpt(opt, INT);
62 this->setOption( opt, (voi
65 setOption( tls_option opt, void *value ) const argument
78 getOption( tls_option opt, void* value ) const argument
[all...]
H A DTlsOptions.h71 * @param opt The following string valued options are available:
99 void setOption(tls_option opt, const std::string& value) const;
103 * @param opt The following string valued options are available:
121 void setOption(tls_option opt, int value) const;
127 void setOption(tls_option opt, void *value) const;
135 int getIntOption(tls_option opt) const;
143 std::string getStringOption(tls_option opt) const;
152 void getOption(tls_option opt, void *value ) const;
/macosx-10.10/apr-32/apr/apr/test/
H A Dtestargs.c46 apr_getopt_t *opt; local
53 rv = apr_getopt_init(&opt, p, largc, largv);
56 while (apr_getopt(opt, "abcd", &ch, &optarg) == APR_SUCCESS) {
76 apr_getopt_t *opt; local
83 rv = apr_getopt_init(&opt, p, largc, largv);
86 opt->errfn = unknown_arg;
87 opt->errarg = str;
89 while (apr_getopt(opt, "efgh", &ch, &optarg) == APR_SUCCESS) {
108 apr_getopt_t *opt; local
115 rv = apr_getopt_init(&opt,
137 apr_getopt_t *opt; local
166 apr_getopt_t *opt; local
195 apr_getopt_t *opt; local
[all...]
/macosx-10.10/Heimdal-398.1.2/kadmin/
H A Dstash.c42 stash(struct stash_options *opt, int argc, char **argv) argument
54 ret = krb5_string_to_enctype(context, opt->enctype_string, &enctype);
56 krb5_warn(context, ret, "%s", opt->enctype_string);
60 if(opt->key_file_string == NULL) {
61 asprintf(&opt->key_file_string, "%s/m-key", hdb_db_dir(context));
62 if (opt->key_file_string == NULL)
66 ret = hdb_read_master_key(context, opt->key_file_string, &mkey);
69 opt->key_file_string);
73 if (opt->convert_file_flag) {
76 opt
[all...]
/macosx-10.10/bzip2-36/bzip2/
H A Dbzgrep67 -[ef]) opt="$opt $1"; shift; pat="$1"
71 -[ABCdm])opt="$opt $1 $2"; shift;;
72 --) opt="$opt $1"; after_dash_dash=1;;
73 -*) opt="$opt $1";;
90 bzip2 -cdfq | $grep $opt "$pat"
98 $grep $opt "
[all...]
/macosx-10.10/libutil-38/
H A Dgetmntopts.c63 getmntoptstr(mntoptparse_t mp, const char *opt) argument
68 if (strcasecmp(opt, m->m_option) == 0)
73 errx(1, errmsg, opt);
82 getmntoptnum(mntoptparse_t mp, const char *opt) argument
87 const char *val = getmntoptstr(mp, opt);
91 errx(1, "Missing %s argument", opt);
108 (*fun)(1, "Invalid %s argument `%s'", opt, val);
127 char *opt, *p, *ctx = NULL; local
153 for (opt = mp->optbuf; (opt
[all...]
/macosx-10.10/Heimdal-398.1.2/admin/
H A Dremove.c39 kt_remove(struct remove_options *opt, int argc, char **argv) argument
47 if(opt->principal_string) {
48 ret = krb5_parse_name(context, opt->principal_string, &principal);
50 krb5_warn(context, ret, "%s", opt->principal_string);
54 if(opt->enctype_string) {
55 ret = krb5_string_to_enctype(context, opt->enctype_string, &enctype);
58 if(sscanf(opt->enctype_string, "%d", &t) == 1)
61 krb5_warn(context, ret, "%s", opt->enctype_string);
68 if (!principal && !enctype && !opt->kvno_integer) {
83 entry.vno = opt
[all...]
/macosx-10.10/rsync-45/rsync/support/
H A Dcull_options56 foreach my $opt (sort keys %long_opt) {
57 my $val = $long_opt{$opt};
58 $val = 1 if $opt =~ /^(max-|min-)/;
59 $val = 3 if $opt eq 'files-from';
60 $val = '$ro ? -1 : ' . $val if $opt =~ /^remove-/;
61 print " '$opt' => $val,\n";
/macosx-10.10/ruby-106/ruby/test/socket/
H A Dtest_sockopt.rb16 opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true)
17 assert_equal(1, opt.int)
18 opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, false)
19 assert_equal(0, opt.int)
20 opt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 0)
21 assert_equal(false, opt.bool)
22 opt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
23 assert_equal(true, opt.bool)
24 opt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 2)
25 assert_equal(true, opt
[all...]
/macosx-10.10/ppp-786.1.1/Helpers/pppd/
H A Doptions.c446 option_t *opt; local
455 opt = find_option(arg);
456 if (opt == NULL) {
461 n = n_arguments(opt);
466 if (!process_option(opt, arg, argv))
487 option_t *opt; local
525 opt = find_option(cmd);
526 if (opt == NULL) {
531 n = n_arguments(opt);
541 if (!process_option(opt, cm
632 option_t *opt; local
697 option_t *opt; local
958 option_t *opt; local
1830 option_t *opt; local
[all...]
/macosx-10.10/bash-94.1.2/bash-3.2/examples/functions/
H A Dksh-cd7 while getopts "LP" opt
9 case $opt in
10 L|P) CDOPTS="$CDOPTS -$opt" ;;
H A Dwhich9 local aflag sflag ES a opt
12 while builtin getopts as opt ; do
13 case "$opt" in
/macosx-10.10/bash-94.1.2/bash-3.2/examples/loadables/
H A Dtemplate.c27 int opt, rval; local
31 while ((opt = internal_getopt (list, "")) != -1)
33 switch (opt)
H A Dtty.c17 int opt, sflag; local
22 while ((opt = internal_getopt (list, "s")) != -1)
24 switch (opt)
H A Dwhoami.c15 int opt; local
18 while ((opt = internal_getopt (list, "")) != -1)
20 switch (opt)
/macosx-10.10/bash-94.1.2/bash-3.2/examples/scripts.v2/
H A Dpages40 while getopts "n:h" opt; do
41 case "$opt" in
/macosx-10.10/dcerpc-61/dcerpc/rpcd/
H A Drc.dce-clean23 if [ -f /opt/dcelocal/var/rpc/rpcdep.dat ]; then
24 rm -f /opt/dcelocal/var/rpc/rpcdep.dat
/macosx-10.10/Heimdal-398.1.2/kuser/
H A Ddump.c45 dump_credentials(struct dump_credentials_options *opt, int argc, char **argv) argument
55 if (opt->type_string == NULL)
57 else if (strcasecmp(opt->type_string, "Kerberos") == 0)
59 else if (strcasecmp(opt->type_string, "NTLM") == 0)
61 else if (strcasecmp(opt->type_string, "Configuration") == 0)
63 else if (strcasecmp(opt->type_string, "Generic") == 0)
65 else if (strcasecmp(opt->type_string, "Schema") == 0)
68 printf("unknown type; %s\n", opt->type_string);
90 if (opt->verbose_flag) {
/macosx-10.10/tcl-105/tcl_ext/tklib/tklib/modules/tablelist/scripts/
H A Dmwutil.tcl186 foreach {opt val} $optValPairs {
187 if {[catch {fullConfigOpt $opt configSpecs} result] != 0} {
192 set result "value for \"$opt\" missing"
196 set opt $result
197 lappend cmdLineOpts $opt
198 lappend savedVals [eval $cgetCmd [list $win $opt]]
199 if {[catch {eval $configCmd [list $win $opt $val]} result] != 0} {
210 foreach opt $cmdLineOpts val $savedVals {
211 eval $configCmd [list $win $opt $val]
223 foreach opt [lsor
[all...]
/macosx-10.10/passwordserver_sasl-193/cyrus_sasl/lib/
H A Dconfig.c146 int opt; local
148 for (opt = 0; opt < nconfiglist; opt++) {
149 if (*key == configlist[opt].key[0] &&
150 !strcmp(key, configlist[opt].key))
151 return configlist[opt].value;
158 int opt; local
160 for (opt = 0; opt < nconfiglis
[all...]
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/log/
H A DloggerUtils.tcl117 array set opt $args
139 if {[info exists opt(-category)]} {
143 $opt(-category) \
149 [lindex [split $opt(-category) :: ] 0] \
153 if {[info exists opt(-priority)]} {
157 $opt(-priority) \
227 array set opt $args
231 if {[info exists opt(-conversionPattern)]} {
232 set text $opt(-conversionPattern)
246 if {[info exists opt(
[all...]

Completed in 303 milliseconds

1234567891011>>