Home
last modified time | relevance | path

Searched refs:grp (Results 1 – 25 of 130) sorted by relevance

123456

/external/aac/libAACenc/src/
Dgrp_data.cpp121 INT grp; /* counts through groups */ in FDKaacEnc_groupShortData() local
152 for (grp = 0; grp < noOfGroups; grp++) in FDKaacEnc_groupShortData()
156 groupedSfbOffset[i++] = offset + sfbOffset[sfb] * groupLen[grp]; in FDKaacEnc_groupShortData()
159 offset += groupLen[grp] * granuleLength_short; in FDKaacEnc_groupShortData()
165 for (grp = 0; grp < noOfGroups; grp++) in FDKaacEnc_groupShortData()
177 for (grp = 0; grp < noOfGroups; grp++) in FDKaacEnc_groupShortData()
182 for (j=1; j<groupLen[grp]; j++) in FDKaacEnc_groupShortData()
189 wnd += groupLen[grp]; in FDKaacEnc_groupShortData()
195 for (grp = 0; grp < noOfGroups; grp++) in FDKaacEnc_groupShortData()
200 for (j=1; j<groupLen[grp]; j++) in FDKaacEnc_groupShortData()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_pwd_common.c88 int compute_password_element(EAP_PWD_group *grp, u16 num, in compute_password_element() argument
143 grp->pwe = NULL; in compute_password_element()
144 grp->order = NULL; in compute_password_element()
145 grp->prime = NULL; in compute_password_element()
147 if ((grp->group = EC_GROUP_new_by_curve_name(nid)) == NULL) { in compute_password_element()
154 ((grp->pwe = EC_POINT_new(grp->group)) == NULL) || in compute_password_element()
155 ((grp->order = BN_new()) == NULL) || in compute_password_element()
156 ((grp->prime = BN_new()) == NULL) || in compute_password_element()
162 if (!EC_GROUP_get_curve_GFp(grp->group, grp->prime, NULL, NULL, NULL)) in compute_password_element()
168 if (!EC_GROUP_get_order(grp->group, grp->order, NULL)) { in compute_password_element()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_pwd.c31 EAP_PWD_group *grp; member
151 if (data->grp) { in eap_pwd_reset()
152 EC_GROUP_free(data->grp->group); in eap_pwd_reset()
153 EC_POINT_clear_free(data->grp->pwe); in eap_pwd_reset()
154 BN_clear_free(data->grp->order); in eap_pwd_reset()
155 BN_clear_free(data->grp->prime); in eap_pwd_reset()
156 os_free(data->grp); in eap_pwd_reset()
214 ((data->my_element = EC_POINT_new(data->grp->group)) == NULL) || in eap_pwd_build_commit_req()
222 if (BN_rand_range(data->private_value, data->grp->order) != 1 || in eap_pwd_build_commit_req()
223 BN_rand_range(mask, data->grp->order) != 1 || in eap_pwd_build_commit_req()
[all …]
/external/wpa_supplicant_8/src/eap_peer/
Deap_pwd.c31 EAP_PWD_group *grp; member
165 if (data->grp) { in eap_pwd_deinit()
166 EC_GROUP_free(data->grp->group); in eap_pwd_deinit()
167 EC_POINT_clear_free(data->grp->pwe); in eap_pwd_deinit()
168 BN_clear_free(data->grp->order); in eap_pwd_deinit()
169 BN_clear_free(data->grp->prime); in eap_pwd_deinit()
170 os_free(data->grp); in eap_pwd_deinit()
282 data->grp = os_zalloc(sizeof(EAP_PWD_group)); in eap_pwd_perform_id_exchange()
283 if (data->grp == NULL) { in eap_pwd_perform_id_exchange()
323 res = compute_password_element(data->grp, data->group_num, in eap_pwd_perform_id_exchange()
[all …]
/external/toybox/toys/posix/
Did.c89 struct group *grp; in do_id() local
107 grp = xgetgrgid(i ? gid : egid); in do_id()
108 if (flags & FLAG_g) s_or_u(grp->gr_name, grp->gr_gid, 1); in do_id()
112 showid(" gid=", grp->gr_gid, grp->gr_name); in do_id()
120 grp = xgetgrgid(egid); in do_id()
121 showid(" egid=", grp->gr_gid, grp->gr_name); in do_id()
125 showid(" groups=", grp->gr_gid, grp->gr_name); in do_id()
139 if (!(grp = getgrgid(groups[i]))) perror_msg(0); in do_id()
140 else if (toys.optflags&FLAG_G) s_or_u(grp->gr_name, grp->gr_gid, 0); in do_id()
141 else if (grp->gr_gid != egid) showid("", grp->gr_gid, grp->gr_name); in do_id()
Dchgrp.c83 char *grp; in chgrp_main() local
86 if ((grp = strchr(own, ':')) || (grp = strchr(own, '.'))) { in chgrp_main()
87 *(grp++) = 0; in chgrp_main()
88 TT.group_name = grp; in chgrp_main()
/external/toybox/toys/pending/
Dgroupdel.c25 struct group *grp = xgetgrnam(toys.optargs[toys.optc-1]); in groupdel_main() local
34 if (grp->gr_mem) for (i = 0; grp->gr_mem[i]; i++) { in groupdel_main()
35 if (!found && !strcmp(*toys.optargs, grp->gr_mem[i])) found++; in groupdel_main()
36 else len += strlen(grp->gr_mem[i]) + 1; in groupdel_main()
42 for (i = 0; grp->gr_mem[i]; ) { in groupdel_main()
44 s = stpcpy(s, grp->gr_mem[i]); in groupdel_main()
52 if (pw->pw_gid == grp->gr_gid) break; in groupdel_main()
58 update_password("/etc/group", grp->gr_name, entry); in groupdel_main()
59 update_password("/etc/gshadow", grp->gr_name, entry); in groupdel_main()
Dgroupadd.c62 struct group *grp = NULL; in groupadd_main() local
71 if (!(grp = getgrnam(toys.optargs[1]))) in groupadd_main()
73 if (!grp->gr_mem) entry = xmprintf("%s", *toys.optargs); in groupadd_main()
77 for (i = 0; grp->gr_mem[i]; i++) in groupadd_main()
78 if (!strcmp(grp->gr_mem[i], *toys.optargs)) return; in groupadd_main()
81 for (i=0; grp->gr_mem[i]; i++) { in groupadd_main()
82 entry = xrealloc(entry, strlen(entry) + strlen(grp->gr_mem[i]) + 2); in groupadd_main()
83 strcat(entry, grp->gr_mem[i]); in groupadd_main()
89 update_password(GROUP_PATH, grp->gr_name, entry); in groupadd_main()
90 update_password(SECURE_GROUP_PATH, grp->gr_name, entry); in groupadd_main()
/external/libnl/lib/genl/
Dfamily.c49 struct genl_family_grp *grp, *t_grp; in family_free_data() local
59 nl_list_for_each_entry_safe(grp, t_grp, &family->gf_mc_grps, list) { in family_free_data()
60 nl_list_del(&grp->list); in family_free_data()
61 free(grp); in family_free_data()
71 struct genl_family_grp *grp; in family_clone() local
80 nl_list_for_each_entry(grp, &src->gf_mc_grps, list) { in family_clone()
81 err = genl_family_add_grp(dst, grp->id, grp->name); in family_clone()
112 struct genl_family_grp *grp; in family_dump_details() local
139 nl_list_for_each_entry(grp, &family->gf_mc_grps, list) { in family_dump_details()
140 nl_dump_line(p, " grp %s (0x%02x)\n", grp->name, grp->id); in family_dump_details()
[all …]
/external/elfutils/libasm/
Dasm_newscn_ingrp.c41 GElf_Xword flags, AsmScnGrp_t *grp) in asm_newscn_ingrp() argument
49 if (grp->nmembers == 0) in asm_newscn_ingrp()
51 assert (grp->members == NULL); in asm_newscn_ingrp()
52 grp->members = result->data.main.next_in_group = result; in asm_newscn_ingrp()
57 = grp->members->data.main.next_in_group; in asm_newscn_ingrp()
58 grp->members = grp->members->data.main.next_in_group = result; in asm_newscn_ingrp()
61 ++grp->nmembers; in asm_newscn_ingrp()
Dasm_scngrp_newsignature.c38 asm_scngrp_newsignature (AsmScnGrp_t *grp, AsmSym_t *signature) in asm_scngrp_newsignature() argument
40 if (grp == NULL || signature == NULL) in asm_scngrp_newsignature()
43 grp->signature = signature; in asm_scngrp_newsignature()
/external/python/cpython2/Lib/test/
Dtest_grp.py6 grp = test_support.import_module('grp') variable
24 entries = grp.getgrall()
30 entries = grp.getgrall()
35 e2 = grp.getgrgid(e.gr_gid)
42 e2 = grp.getgrnam(name)
50 self.assertRaises(TypeError, grp.getgrgid)
51 self.assertRaises(TypeError, grp.getgrnam)
52 self.assertRaises(TypeError, grp.getgrall, 42)
57 for (n, p, g, mem) in grp.getgrall():
86 self.assertRaises(KeyError, grp.getgrnam, fakename)
[all …]
/external/openssh/openbsd-compat/
Dgetgrouplist.c48 struct group *grp; in getgrouplist() local
70 while ((grp = getgrent())) { in getgrouplist()
71 if (grp->gr_gid == agroup) in getgrouplist()
74 if (groups[i] == grp->gr_gid) in getgrouplist()
78 for (i = 0; grp->gr_mem[i]; i++) { in getgrouplist()
79 if (!strcmp(grp->gr_mem[i], uname)) { in getgrouplist()
84 groups[ngroups++] = grp->gr_gid; in getgrouplist()
/external/libevent/
Dbufferevent_ratelim.c878 struct bufferevent_rate_limit_group *grp) in bufferevent_rate_limit_group_get_read_limit() argument
881 LOCK_GROUP(grp); in bufferevent_rate_limit_group_get_read_limit()
882 r = grp->rate_limit.read_limit; in bufferevent_rate_limit_group_get_read_limit()
883 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_get_read_limit()
891 struct bufferevent_rate_limit_group *grp) in bufferevent_rate_limit_group_get_write_limit() argument
894 LOCK_GROUP(grp); in bufferevent_rate_limit_group_get_write_limit()
895 r = grp->rate_limit.write_limit; in bufferevent_rate_limit_group_get_write_limit()
896 UNLOCK_GROUP(grp); in bufferevent_rate_limit_group_get_write_limit()
958 struct bufferevent_rate_limit_group *grp, ev_ssize_t decr) in bufferevent_rate_limit_group_decrement_read() argument
962 LOCK_GROUP(grp); in bufferevent_rate_limit_group_decrement_read()
[all …]
/external/iptables/extensions/
Dlibxt_owner.c141 struct group *grp; in owner_mt_parse_v0() local
157 if ((grp = getgrnam(cb->arg)) != NULL) in owner_mt_parse_v0()
158 id = grp->gr_gid; in owner_mt_parse_v0()
188 struct group *grp; in owner_mt6_parse_v0() local
204 if ((grp = getgrnam(cb->arg)) != NULL) in owner_mt6_parse_v0()
205 id = grp->gr_gid; in owner_mt6_parse_v0()
246 struct group *grp; in owner_mt_parse() local
263 if ((grp = getgrnam(cb->arg)) != NULL) in owner_mt_parse()
264 from = to = grp->gr_gid; in owner_mt_parse()
314 struct group *grp = getgrgid(info->gid); in owner_mt_print_item_v0() local
[all …]
/external/elfutils/tests/
Dasm-tst6.c61 AsmScnGrp_t *grp; in main() local
66 grp = asm_newscngrp (ctx, buf, NULL, 0); in main()
67 if (grp == NULL) in main()
75 SHF_ALLOC | SHF_WRITE, grp); in main()
105 if (asm_scngrp_newsignature (grp, sym) != 0) in main()
114 scn = asm_newscn_ingrp (ctx, ".stab", SHT_PROGBITS, 0, grp); in main()
/external/iw/
Dgenl.c37 struct handler_args *grp = arg; in family_handler() local
59 grp->group, nla_len(tb_mcgrp[CTRL_ATTR_MCAST_GRP_NAME]))) in family_handler()
61 grp->id = nla_get_u32(tb_mcgrp[CTRL_ATTR_MCAST_GRP_ID]); in family_handler()
73 struct handler_args grp = { in nl_get_multicast_id() local
104 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, family_handler, &grp); in nl_get_multicast_id()
110 ret = grp.id; in nl_get_multicast_id()
/external/libnl/lib/
Dcache.c837 struct nl_af_group *grp; in nl_cache_resync() local
857 grp = cache->c_ops->co_groups; in nl_cache_resync()
859 if (grp && grp->ag_group && in nl_cache_resync()
861 nl_cache_set_arg1(cache, grp->ag_family); in nl_cache_resync()
874 if (grp) in nl_cache_resync()
875 grp++; in nl_cache_resync()
876 } while (grp && grp->ag_group && in nl_cache_resync()
962 struct nl_af_group *grp; in nl_cache_refill() local
969 grp = cache->c_ops->co_groups; in nl_cache_refill()
971 if (grp && grp->ag_group && in nl_cache_refill()
[all …]
Dcache_mngr.c225 struct nl_af_group *grp; in nl_cache_mngr_add_cache() local
264 for (grp = ops->co_groups; grp->ag_group; grp++) { in nl_cache_mngr_add_cache()
265 err = nl_socket_add_membership(mngr->cm_sock, grp->ag_group); in nl_cache_mngr_add_cache()
287 for (grp = ops->co_groups; grp->ag_group; grp++) in nl_cache_mngr_add_cache()
288 nl_socket_drop_membership(mngr->cm_sock, grp->ag_group); in nl_cache_mngr_add_cache()
/external/libbrillo/brillo/
Duserdb_utils.cc43 struct group* grp = nullptr; in GetGroupInfo() local
45 if (getgrnam_r(group.c_str(), &grp_buf, buf.data(), buf_len, &grp) || !grp) { in GetGroupInfo()
51 *gid = grp->gr_gid; in GetGroupInfo()
/external/ltp/testcases/kernel/syscalls/getgroups/
Dgetgroups03.c93 struct group *grp; in readgroups() local
101 while ((grp = getgrent()) != 0) { in readgroups()
102 for (i = 0; grp->gr_mem[i]; i++) { in readgroups()
103 if (strcmp(grp->gr_mem[i], TESTUSER) == 0) { in readgroups()
104 groups[ngrps++] = grp->gr_gid; in readgroups()
/external/valgrind/memcheck/tests/
Dvarinfo6.stdout.exp5 pass 1: size is 17143, grp uses are 38 62 2 92 6 71
6 pass 2: size is 6506, grp uses are 28 71 0 86 9 77
7 pass 3: size is 6479, grp uses are 26 70 0 81 11 83
8 pass 4: size is 6469, grp uses are 26 69 0 74 17 85
Dvcpu_bz2.stdout.exp5 pass 1: size is 17143, grp uses are 38 62 2 92 6 71
6 pass 2: size is 6506, grp uses are 28 71 0 86 9 77
7 pass 3: size is 6479, grp uses are 26 70 0 81 11 83
8 pass 4: size is 6469, grp uses are 26 69 0 74 17 85
Dorigin5-bz2.stdout.exp6 pass 1: size is 17143, grp uses are 38 62 2 92 6 71
7 pass 2: size is 6506, grp uses are 28 71 0 86 9 77
8 pass 3: size is 6479, grp uses are 26 70 0 81 11 83
9 pass 4: size is 6469, grp uses are 26 69 0 74 17 85
/external/valgrind/exp-sgcheck/tests/
Dhackedbz2.stdout.exp5 pass 1: size is 17143, grp uses are 38 62 2 92 6 71
6 pass 2: size is 6506, grp uses are 28 71 0 86 9 77
7 pass 3: size is 6479, grp uses are 26 70 0 81 11 83
8 pass 4: size is 6469, grp uses are 26 69 0 74 17 85

123456