/third_party/selinux/libsepol/cil/src/ |
H A D | cil_copy_ast.c | 53 struct cil_list *new; in cil_copy_list() local 56 cil_list_init(&new, data->flavor); in cil_copy_list() 61 cil_list_append(new, CIL_STRING, orig_item->data); in cil_copy_list() 66 cil_list_append(new, CIL_LIST, new_sub); in cil_copy_list() 75 cil_list_append(new, CIL_PARAM, pn); in cil_copy_list() 80 cil_list_append(new, orig_item->flavor, orig_item->data); in cil_copy_list() 85 *copy = new; in cil_copy_list() 90 char *new = NULL; in cil_copy_node() local 93 new = data; in cil_copy_node() 95 *copy = new; in cil_copy_node() 117 struct cil_block *new; cil_copy_block() local 128 struct cil_blockabstract *new = NULL; cil_copy_blockabstract() local 142 struct cil_blockinherit *new = NULL; cil_copy_blockinherit() local 162 struct cil_policycap *new; cil_copy_policycap() local 180 struct cil_perm *new; cil_copy_perm() local 190 cil_copy_classperms(struct cil_classperms *orig, struct cil_classperms **new) cil_copy_classperms() argument 197 cil_copy_classperms_set(struct cil_classperms_set *orig, struct cil_classperms_set **new) cil_copy_classperms_set() argument 203 cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new) cil_copy_classperms_list() argument 228 struct cil_classmapping *new = NULL; cil_copy_classmapping() local 245 struct cil_class *new = NULL; cil_copy_class() local 267 struct cil_classorder *new = NULL; cil_copy_classorder() local 282 struct cil_classpermission *new = NULL; cil_copy_classpermission() local 306 struct cil_classpermissionset *new = NULL; cil_copy_classpermissionset() local 322 struct cil_classcommon *new = NULL; cil_copy_classcommon() local 342 struct cil_sid *new; cil_copy_sid() local 355 struct cil_sidcontext *new = NULL; cil_copy_sidcontext() local 374 struct cil_sidorder *new = NULL; cil_copy_sidorder() local 394 struct cil_user *new; cil_copy_user() local 407 struct cil_userattribute *new = NULL; cil_copy_userattribute() local 425 struct cil_userattributeset *new = NULL; cil_copy_userattributeset() local 442 struct cil_userrole *new = NULL; cil_copy_userrole() local 457 struct cil_userlevel *new = NULL; cil_copy_userlevel() local 477 struct cil_userrange *new = NULL; cil_copy_userrange() local 498 struct cil_userprefix *new = NULL; cil_copy_userprefix() local 518 struct cil_role *new; cil_copy_role() local 531 struct cil_roletype *new = NULL; cil_copy_roletype() local 551 struct cil_roleattribute *new; cil_copy_roleattribute() local 564 struct cil_roleattributeset *new = NULL; cil_copy_roleattributeset() local 581 struct cil_roleallow *new = NULL; cil_copy_roleallow() local 595 struct cil_type *new; cil_copy_type() local 606 struct cil_typepermissive *new = NULL; cil_copy_typepermissive() local 619 struct cil_typeattribute *new; cil_copy_typeattribute() local 630 struct cil_typeattributeset *new = NULL; cil_copy_typeattributeset() local 647 struct cil_expandtypeattribute *new = NULL; cil_copy_expandtypeattribute() local 669 struct cil_alias *new = NULL; cil_copy_alias() local 689 struct cil_aliasactual *new = NULL; cil_copy_aliasactual() local 704 struct cil_roletransition *new = NULL; cil_copy_roletransition() local 721 struct cil_nametypetransition *new = NULL; cil_copy_nametypetransition() local 740 struct cil_rangetransition *new = NULL; cil_copy_rangetransition() local 763 struct cil_bool *new = NULL; cil_copy_bool() local 783 struct cil_tunable *new = NULL; cil_copy_tunable() local 800 cil_copy_fill_permissionx(struct cil_db *db, struct cil_permissionx *orig, struct cil_permissionx *new) cil_copy_fill_permissionx() argument 810 struct cil_avrule *new = NULL; cil_copy_avrule() local 838 struct cil_permissionx *new = NULL; cil_copy_permissionx() local 860 struct cil_type_rule *new = NULL; cil_copy_type_rule() local 883 struct cil_sens *new; cil_copy_sens() local 901 struct cil_cat *new; cil_copy_cat() local 911 cil_copy_cats(struct cil_db *db, struct cil_cats *orig, struct cil_cats **new) cil_copy_cats() argument 921 struct cil_catset *new = NULL; cil_copy_catset() local 943 struct cil_senscat *new = NULL; cil_copy_senscat() local 959 struct cil_catorder *new = NULL; cil_copy_catorder() local 974 struct cil_sensorder *new = NULL; cil_copy_sensitivityorder() local 986 cil_copy_fill_level(struct cil_db *db, struct cil_level *orig, struct cil_level **new) cil_copy_fill_level() argument 1000 struct cil_level *new = NULL; cil_copy_level() local 1019 cil_copy_fill_levelrange(struct cil_db *db, struct cil_levelrange *data, struct cil_levelrange *new) cil_copy_fill_levelrange() argument 1037 struct cil_levelrange *new = NULL; cil_copy_levelrange() local 1057 cil_copy_fill_context(struct cil_db *db, struct cil_context *data, struct cil_context *new) cil_copy_fill_context() argument 1074 struct cil_context *new = NULL; cil_copy_context() local 1097 struct cil_netifcon *new = NULL; cil_copy_netifcon() local 1125 struct cil_genfscon *new = NULL; cil_copy_genfscon() local 1147 struct cil_filecon *new = NULL; cil_copy_filecon() local 1169 struct cil_nodecon *new = NULL; cil_copy_nodecon() local 1202 struct cil_ibpkeycon *new = NULL; cil_copy_ibpkeycon() local 1225 struct cil_ibendportcon *new = NULL; cil_copy_ibendportcon() local 1247 struct cil_portcon *new = NULL; cil_copy_portcon() local 1270 struct cil_pirqcon *new = NULL; cil_copy_pirqcon() local 1291 struct cil_iomemcon *new = NULL; cil_copy_iomemcon() local 1313 struct cil_ioportcon *new = NULL; cil_copy_ioportcon() local 1335 struct cil_pcidevicecon *new = NULL; cil_copy_pcidevicecon() local 1356 struct cil_devicetreecon *new = NULL; cil_copy_devicetreecon() local 1377 struct cil_fsuse *new = NULL; cil_copy_fsuse() local 1396 cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new) cil_copy_expr() argument 1440 struct cil_constrain *new = NULL; cil_copy_constrain() local 1456 struct cil_validatetrans *new = NULL; cil_copy_validatetrans() local 1473 struct cil_call *new = NULL; cil_copy_call() local 1517 struct cil_macro *new; cil_copy_macro() local 1530 struct cil_optional *new; cil_copy_optional() local 1538 cil_copy_fill_ipaddr(struct cil_ipaddr *data, struct cil_ipaddr *new) cil_copy_fill_ipaddr() argument 1547 struct cil_ipaddr *new = NULL; cil_copy_ipaddr() local 1568 struct cil_condblock *new = *copy; cil_copy_condblock() local 1579 struct cil_booleanif *new = NULL; cil_copy_boolif() local 1595 struct cil_tunableif *new = NULL; cil_copy_tunif() local 1610 struct cil_default *new = NULL; cil_copy_default() local 1630 struct cil_defaultrange *new = NULL; cil_copy_defaultrange() local 1648 struct cil_handleunknown *new = NULL; cil_copy_handleunknown() local 1660 struct cil_mls *new = NULL; cil_copy_mls() local 1672 struct cil_bounds *new = NULL; cil_copy_bounds() local 1687 struct cil_src_info *new = NULL; cil_copy_src_info() local 1704 struct cil_tree_node *new = NULL; __cil_copy_node_helper() local [all...] |
/third_party/rust/crates/clap/clap_bench/benches/ |
H A D | 06_rustup.rs | 25 Command::new("rustup") in build_cli() 30 Arg::new("verbose") in build_cli() 37 Command::new("show") in build_cli() 42 Command::new("install") in build_cli() 46 .arg(Arg::new("toolchain").required(true)), in build_cli() 49 Command::new("update") in build_cli() 52 .arg(Arg::new("toolchain").required(true)) in build_cli() 54 Arg::new("no-self-update") in build_cli() 62 Command::new("default") in build_cli() 65 .arg(Arg::new("toolchai in build_cli() [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | require.rs | 9 let result = Command::new("flag_required") in flag_required() 20 let m = Command::new("flag_required") in flag_required_2() 35 let result = Command::new("option_required") in option_required() 46 let m = Command::new("option_required") in option_required_2() 62 let result = Command::new("positional_required") in positional_required() 63 .arg(Arg::new("flag").index(1).required(true)) in positional_required() 72 let m = Command::new("positional_required") in positional_required_2() 73 .arg(Arg::new("flag").index(1).required(true)) in positional_required_2() 96 let cmd = Command::new("positional_required") in positional_required_with_requires() 97 .arg(Arg::new("fla in positional_required_with_requires() [all...] |
H A D | flag_subcommands.rs | 7 let matches = Command::new("test") in flag_subcommand_normal() 9 Command::new("some").short_flag('S').long_flag("some").arg( in flag_subcommand_normal() 10 Arg::new("test") in flag_subcommand_normal() 28 let matches = Command::new("test") in flag_subcommand_normal_with_alias() 30 Command::new("some") in flag_subcommand_normal_with_alias() 34 Arg::new("test") in flag_subcommand_normal_with_alias() 53 let matches = Command::new("test") in flag_subcommand_short() 55 Command::new("some").short_flag('S').arg( in flag_subcommand_short() 56 Arg::new("test") in flag_subcommand_short() 74 let matches = Command::new("tes in flag_subcommand_short_with_args() [all...] |
H A D | subcommands.rs | 7 let m = Command::new("test") in subcommand() 9 Command::new("some").arg( in subcommand() 10 Arg::new("test") in subcommand() 17 .arg(Arg::new("other").long("other")) in subcommand() 32 let m = Command::new("test") in subcommand_none_given() 34 Command::new("some").arg( in subcommand_none_given() 35 Arg::new("test") in subcommand_none_given() 42 .arg(Arg::new("other").long("other")) in subcommand_none_given() 51 let m = Command::new("test") in subcommand_multiple() 53 Command::new("som in subcommand_multiple() [all...] |
H A D | help.rs | 8 Command::new("test") in setup() 46 Command::new("test") in help_subcommand() 59 let cmd = Command::new("ctest").subcommand( in help_multi_subcommand_error() 60 Command::new("subcmd").subcommand( in help_multi_subcommand_error() 61 Command::new("multi") in help_multi_subcommand_error() 105 let cmd = Command::new("example") in req_last_arg_usage() 107 .arg(Arg::new("FIRST").help("First").num_args(1..).required(true)) in req_last_arg_usage() 109 Arg::new("SECOND") in req_last_arg_usage() 135 let cmd = Command::new("flamegraph") in args_with_last_usage() 138 Arg::new("verbos in args_with_last_usage() [all...] |
H A D | derive_order.rs | 21 let cmd = Command::new("test") in no_derive_order() 25 Arg::new("flag_b") in no_derive_order() 29 Arg::new("option_b") in no_derive_order() 33 Arg::new("flag_a") in no_derive_order() 37 Arg::new("option_a") in no_derive_order() 60 let cmd = Command::new("test").version("1.2").args([ in derive_order() 61 Arg::new("flag_b") in derive_order() 65 Arg::new("option_b") in derive_order() 69 Arg::new("flag_a") in derive_order() 73 Arg::new("option_ in derive_order() [all...] |
H A D | multiple_values.rs | 5 let m = Command::new("multiple_values") in option_long() 7 Arg::new("option") in option_long() 33 let m = Command::new("multiple_values") in option_short() 35 Arg::new("option") in option_short() 59 let m = Command::new("multiple_values") in option_mixed() 61 Arg::new("option") in option_mixed() 88 let m = Command::new("multiple_values") in option_exact_exact() 90 Arg::new("option") in option_exact_exact() 115 let m = Command::new("multiple_values") in option_exact_exact_not_mult() 117 Arg::new("optio in option_exact_exact_not_mult() [all...] |
H A D | possible_values.rs | 8 let m = Command::new("possible_values") in possible_values_of_positional() 9 .arg(Arg::new("positional").index(1).value_parser(["test123"])) in possible_values_of_positional() 24 let m = Command::new("possible_values") in possible_value_arg_value() 26 Arg::new("arg_value") in possible_value_arg_value() 28 .value_parser([PossibleValue::new("test123") in possible_value_arg_value() 46 let m = Command::new("possible_values") in possible_values_of_positional_fail() 47 .arg(Arg::new("positional").index(1).value_parser(["test123"])) in possible_values_of_positional_fail() 56 let m = Command::new("possible_values") in possible_values_of_positional_multiple() 58 Arg::new("positional") in possible_values_of_positional_multiple() 81 let m = Command::new("possible_value in possible_values_of_positional_multiple_fail() [all...] |
H A D | groups.rs | 7 let result = Command::new("group") in required_group_missing_arg() 10 .group(ArgGroup::new("req").args(["flag", "color"]).required(true)) in required_group_missing_arg() 21 let _ = Command::new("group") in non_existing_arg() 24 .group(ArgGroup::new("req").args(["flg", "color"]).required(true)) in non_existing_arg() 32 let _ = Command::new("group") in unique_group_name() 35 .group(ArgGroup::new("req").args(["flag"]).required(true)) in unique_group_name() 36 .group(ArgGroup::new("req").args(["color"]).required(true)) in unique_group_name() 44 let _ = Command::new("group") in groups_new_of_arg_name() 45 .arg(Arg::new("a").long("a").group("a")) in groups_new_of_arg_name() 53 let _ = Command::new("grou in arg_group_new_of_arg_name() [all...] |
H A D | hidden_args.rs | 19 let cmd = Command::new("test") in hide_args() 27 Arg::new("DUMMY").hide(true), in hide_args() 46 let cmd = Command::new("test") in hide_short_args() 51 Arg::new("cfg") in hide_short_args() 57 Arg::new("visible") in hide_short_args() 89 let cmd = Command::new("test") in hide_short_args_long_help() 94 Arg::new("cfg") in hide_short_args_long_help() 100 Arg::new("visible") in hide_short_args_long_help() 128 let cmd = Command::new("test") in hide_long_args() 133 Arg::new("cf in hide_long_args() [all...] |
H A D | indices.rs | 5 let m = Command::new("ind") in indices_mult_opts() 8 Arg::new("exclude") in indices_mult_opts() 15 Arg::new("include") in indices_mult_opts() 32 let m = Command::new("ind") in index_mult_opts() 35 Arg::new("exclude") in index_mult_opts() 42 Arg::new("include") in index_mult_opts() 56 let m = Command::new("ind") in index_flag() 58 .arg(Arg::new("exclude").short('e').action(ArgAction::SetTrue)) in index_flag() 59 .arg(Arg::new("include").short('i').action(ArgAction::SetTrue)) in index_flag() 69 let m = Command::new("in in index_flags() [all...] |
/third_party/musl/porting/linux/user/src/locale/ |
H A D | locale_map.c | 59 struct __locale_map *new = 0; in __get_locale() local 97 if (!new && (new = malloc(sizeof *new))) { in __get_locale() 98 new->map = __c_dot_utf8.map; in __get_locale() 99 new->map_size = __c_dot_utf8.map_size; in __get_locale() 100 memcpy(new->name, val, n); in __get_locale() 101 new->name[n] = 0; in __get_locale() 102 new->next = loc_head; in __get_locale() 103 new in __get_locale() [all...] |
/third_party/musl/src/locale/ |
H A D | locale_map.c | 60 struct __locale_map *new = 0; in __get_locale() local 98 if (!new && (new = malloc(sizeof *new))) { in __get_locale() 99 new->map = __c_dot_utf8.map; in __get_locale() 100 new->map_size = __c_dot_utf8.map_size; in __get_locale() 101 memcpy(new->name, val, n); in __get_locale() 102 new->name[n] = 0; in __get_locale() 103 new->next = loc_head; in __get_locale() 104 new in __get_locale() [all...] |
/third_party/rust/crates/clap/clap_mangen/tests/ |
H A D | common.rs | 4 clap::Command::new(name) in basic_command() 6 clap::Arg::new("config") in basic_command() 12 clap::Arg::new("v") in basic_command() 18 clap::Command::new("test").about("Subcommand").arg( in basic_command() 19 clap::Arg::new("debug") in basic_command() 27 clap::Command::new(name) in basic_command() 32 clap::Arg::new("file") in basic_command() 37 clap::Arg::new("config") in basic_command() 45 .arg(clap::Arg::new("choice").value_parser(["first", "second"])) in basic_command() 47 clap::Command::new("tes in basic_command() [all...] |
/third_party/protobuf/ruby/tests/ |
H A D | basic.rb | 15 pool = Google::Protobuf::DescriptorPool.new 35 m = TestSingularFields.new 37 m.singular_msg = TestMessage2.new 41 m = OneofMessage.new 50 m = TestSingularFields.new 72 m = TestMessage.new 82 m = TestSingularFields.new 97 m = TestSingularFields.new 119 m.singular_msg = TestMessage2.new(:foo => 42) 120 assert_equal TestMessage2.new( [all...] |
H A D | type_errors.rb | 12 IntegerType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4') ? Fixnum : Integer 17 A::B::C::TestMessage.new(optional_string: 4) 21 A::B::C::TestMessage.new(oneof_string: 4) 25 A::B::C::TestMessage.new(repeated_string: '4') 32 A::B::C::TestMessage.new(optional_float: true) 36 A::B::C::TestMessage.new(oneof_float: true) 40 A::B::C::TestMessage.new(repeated_float: 'true') 47 A::B::C::TestMessage.new(optional_double: :double) 51 A::B::C::TestMessage.new(oneof_doubl [all...] |
H A D | common_tests.rb | 13 FrozenErrorType = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5') ? RuntimeError : FrozenError 16 m = proto_module::TestMessage.new 31 m = proto_module::TestMessage.new 52 m.optional_msg = proto_module::TestMessage2.new(:foo => 42) 53 assert m.optional_msg == proto_module::TestMessage2.new(:foo => 42) 63 m = proto_module::TestMessage.new(:optional_int32 => -42, 64 :optional_msg => proto_module::TestMessage2.new, 77 m = proto_module::TestMessage.new(:optional_enum => 'C', :repeated_enum => ['A', 'B']) 81 m = proto_module::TestMessage.new( [all...] |
/third_party/rust/crates/clap/clap_complete/tests/ |
H A D | common.rs | 4 clap::Command::new(name) in basic_command() 6 clap::Arg::new("config") in basic_command() 12 clap::Arg::new("v") in basic_command() 18 clap::Command::new("test").about("Subcommand").arg( in basic_command() 19 clap::Arg::new("debug") in basic_command() 27 clap::Command::new(name) in basic_command() 32 clap::Arg::new("file") in basic_command() 37 clap::Arg::new("config") in basic_command() 45 .arg(clap::Arg::new("choice").value_parser(["first", "second"])) in basic_command() 47 clap::Command::new("tes in basic_command() [all...] |
/third_party/ltp/testscripts/ |
H A D | ltpdmmapper.sh | 134 dmsetup rename dm-test-1 dm-test-1-new 135 dmsetup rename dm-test-2 dm-test-2-new 136 dmsetup rename dm-test-3 dm-test-3-new 137 dmsetup rename dm-test-4 dm-test-4-new 141 dmsetup suspend dm-test-1-new 142 dmsetup suspend dm-test-2-new 143 dmsetup suspend dm-test-3-new 144 dmsetup suspend dm-test-4-new 153 dmsetup reload dm-test-1-new ltp-dev-mapper-table1 154 dmsetup reload dm-test-2-new lt [all...] |
/third_party/rust/crates/once_cell/tests/ |
H A D | it.rs | 11 let c = OnceCell::new(); in once_cell() 29 let mut c = OnceCell::new(); in once_cell_get_mut() 38 static DROP_CNT: AtomicUsize = AtomicUsize::new(0); in once_cell_drop() 46 let x = OnceCell::new(); in once_cell_drop() 55 let x = OnceCell::<String>::new(); in unsync_once_cell_drop_empty() 61 let s = OnceCell::new(); in clone() 81 assert!(OnceCell::<String>::new() == OnceCell::new()); in partialeq_impl() 82 assert!(OnceCell::<String>::new() != OnceCell::from("value".to_owned())); in partialeq_impl() 87 let cell: OnceCell<String> = OnceCell::new(); in into_inner() [all...] |
/third_party/toybox/toys/posix/ |
H A D | find.c | 96 static int flush_exec(struct dirtree *new, struct exec_range *aa) in flush_exec() argument 109 if (aa->dir && new && new->parent) { in flush_exec() 111 rc = fchdir(new->parent->dirfd); in flush_exec() 114 perror_msg_raw(revert ? new->name : "."); in flush_exec() 164 static void do_print(struct dirtree *new, char c) in do_print() argument 166 char *s=dirtree_path(new, 0); in do_print() 173 static void execdir(struct dirtree *new, int flush) in execdir() argument 179 if (new && TT.topdir == -1) return; in execdir() 184 if (!aa->plus || (new in execdir() 211 do_find(struct dirtree *new) do_find() argument [all...] |
H A D | ln.c | 35 char *dest = TT.t ? TT.t : toys.optargs[--toys.optc], *new; in ln_main() local 58 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try)); in ln_main() 59 else new = dest; in ln_main() 64 oldnew = new; in ln_main() 66 new = xmprintf("%s_XXXXXX", new); in ln_main() 67 rc = mkstemp(new); in ln_main() 70 if (unlink(new)) perror_msg("unlink '%s'", new); in ln_main() 74 rc = FLAG(s) ? symlink(try, new) in ln_main() [all...] |
/third_party/selinux/libsepol/src/ |
H A D | ebitmap.c | 21 ebitmap_node_t *new, *prev; in ebitmap_or() local 29 new = (ebitmap_node_t *) malloc(sizeof(ebitmap_node_t)); in ebitmap_or() 30 if (!new) { in ebitmap_or() 35 new->startbit = n1->startbit; in ebitmap_or() 36 new->map = n1->map | n2->map; in ebitmap_or() 40 new->startbit = n1->startbit; in ebitmap_or() 41 new->map = n1->map; in ebitmap_or() 44 new->startbit = n2->startbit; in ebitmap_or() 45 new->map = n2->map; in ebitmap_or() 49 new in ebitmap_or() 77 ebitmap_node_t *new, *prev = NULL; ebitmap_and() local 120 ebitmap_node_t *new, *prev = NULL; ebitmap_xor() local 170 ebitmap_node_t *new, *prev = NULL; ebitmap_not() local 281 ebitmap_node_t *new, *prev; ebitmap_cpy() local 379 ebitmap_node_t *n, *prev, *new; ebitmap_set_bit() local 453 ebitmap_node_t *new, *prev = NULL; ebitmap_init_range() local [all...] |
/third_party/rust/crates/clap/clap_complete_fig/tests/ |
H A D | common.rs | 2 clap::Command::new(name) in basic_command() 4 clap::Arg::new("config") in basic_command() 10 clap::Arg::new("v") in basic_command() 16 clap::Command::new("test").about("Subcommand").arg( in basic_command() 17 clap::Arg::new("debug") in basic_command() 25 clap::Command::new(name) in basic_command() 30 clap::Arg::new("file") in basic_command() 35 clap::Arg::new("config") in basic_command() 43 .arg(clap::Arg::new("choice").value_parser(["first", "second"])) in basic_command() 45 clap::Command::new("tes in basic_command() [all...] |