Home
last modified time | relevance | path

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

12345678

/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_qfq.c215 struct qfq_group *grp; member
324 cl->grp = &q->groups[i]; in qfq_new_queue()
359 qfq_calc_state(struct qfq_sched *q, struct qfq_group *grp) in qfq_calc_state() argument
362 unsigned int state = qfq_gt(grp->S, q->V); in qfq_calc_state()
363 unsigned long mask = mask_from(q->bitmaps[ER], grp->index); in qfq_calc_state()
368 if (qfq_gt(grp->F, next->F)) in qfq_calc_state()
437 qfq_slot_insert(struct qfq_group *grp, struct qfq_class *cl, uint64_t roundedS) in qfq_slot_insert() argument
439 uint64_t slot = (roundedS - grp->S) >> grp->slot_shift; in qfq_slot_insert()
440 unsigned int i = (grp->front + slot) % QFQ_MAX_SLOTS; in qfq_slot_insert()
442 cl->next = grp->slots[i]; in qfq_slot_insert()
[all …]
/freebsd/usr.sbin/pw/
H A Dpw_group.c31 #include <grp.h>
43 static void delete_members(struct group *grp, char *list);
44 static int print_group(struct group * grp, bool pretty);
48 grp_set_passwd(struct group *grp, bool update, int fd, bool precrypted) in grp_set_passwd() argument
60 grp->gr_passwd = "*"; /* No access */ in grp_set_passwd()
74 grp->gr_name); in grp_set_passwd()
95 grp->gr_passwd = line; in grp_set_passwd()
97 grp->gr_passwd = pw_pwcrypt(line); in grp_set_passwd()
115 struct group *grp; in getgroup() local
119 grp in getgroup()
151 delete_members(struct group * grp,char * list) delete_members() argument
175 struct group *grp; gr_gidpolicy() local
236 print_group(struct group * grp,bool pretty) print_group() argument
289 struct group *grp = NULL; pw_group_show() local
361 struct group *grp = NULL; pw_group_del() local
417 grp_has_member(struct group * grp,const char * name) grp_has_member() argument
428 grp_add_members(struct group ** grp,char * members) grp_add_members() argument
448 struct group *grp; groupadd() local
577 struct group *grp = NULL; pw_group_mod() local
[all...]
H A Dpw_user.c363 struct group *grp; in pw_gidpolicy() local
371 if ((grp = GETGRNAM(grname)) == NULL) { in pw_gidpolicy()
373 grp = GETGRGID(gid); in pw_gidpolicy()
375 gid = grp->gr_gid; in pw_gidpolicy()
376 } else if ((grp = GETGRNAM(nam)) != NULL) { in pw_gidpolicy()
377 gid = grp->gr_gid; /* Already created? Use it anyway... */ in pw_gidpolicy()
398 if ((grp = GETGRNAM(nam)) != NULL) in pw_gidpolicy()
399 gid = grp->gr_gid; in pw_gidpolicy()
532 struct group *grp = GETGRGID(pwd->pw_gid); in print_user() local
579 grp ? grp->gr_name : "(invalid)", (uintmax_t)pwd->pw_gid, in print_user()
[all …]
H A Dgrupd.c49 gr_update(struct group * grp, char const * group) in gr_update() argument
55 if (grp != NULL) in gr_update()
56 gr = gr_dup(grp); in gr_update()
90 addgrent(struct group * grp) in addgrent() argument
92 return gr_update(grp, NULL); in addgrent()
96 chggrent(char const * login, struct group * grp) in chggrent() argument
98 return gr_update(grp, login); in chggrent()
102 delgrent(struct group * grp) in delgrent() argument
105 return (gr_update(NULL, grp->gr_name)); in delgrent()
/freebsd/sys/rpc/
H A Dsvc.c74 static void svc_new_thread(SVCGROUP *grp);
90 SVCGROUP *grp; in svcpool_create() local
105 grp = &pool->sp_groups[g]; in svcpool_create()
106 mtx_init(&grp->sg_lock, "sg_lock", NULL, MTX_DEF); in svcpool_create()
107 grp->sg_pool = pool; in svcpool_create()
108 grp->sg_state = SVCPOOL_ACTIVE; in svcpool_create()
109 TAILQ_INIT(&grp->sg_xlist); in svcpool_create()
110 TAILQ_INIT(&grp->sg_active); in svcpool_create()
111 LIST_INIT(&grp->sg_idlethreads); in svcpool_create()
112 grp->sg_minthreads = 1; in svcpool_create()
[all …]
/freebsd/lib/libc/tests/nss/
H A Dgetgr_test.c115 free_group(struct group *grp) in free_group() argument
119 ATF_REQUIRE(grp != NULL); in free_group()
121 free(grp->gr_name); in free_group()
122 free(grp->gr_passwd); in free_group()
124 for (cp = grp->gr_mem; *cp; ++cp) in free_group()
126 free(grp->gr_mem); in free_group()
171 sdump_group(struct group *grp, char *buffer, size_t buflen) in sdump_group() argument
177 grp->gr_name, grp->gr_passwd, grp->gr_gid); in sdump_group()
183 if (grp->gr_mem != NULL) { in sdump_group()
184 if (*(grp->gr_mem) != NULL) { in sdump_group()
[all …]
/freebsd/usr.bin/logins/
H A Dlogins.c126 struct group *grp; in get_groups() local
136 if ((grp = getgrent()) == NULL) in get_groups()
138 grps[ngrps].gr_name = xstrdup(grp->gr_name); in get_groups()
139 grps[ngrps].gr_passwd = xstrdup(grp->gr_passwd); in get_groups()
140 grps[ngrps].gr_gid = grp->gr_gid; in get_groups()
142 for (i = 0, len = 1; grp->gr_mem[i] != NULL; ++i) in get_groups()
143 len += strlen(grp->gr_mem[i]) + 1; in get_groups()
145 for (i = 0, len = 0; grp->gr_mem[i] != NULL; ++i) in get_groups()
147 i ? ",%s" : "%s", grp->gr_mem[i]); in get_groups()
233 struct xgroup *grp; in select_users() local
[all …]
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx6ull-dhcom-som.dtsi347 pinctrl_dhcom_i: dhcom-i-grp {
351 pinctrl_dhcom_j: dhcom-j-grp {
355 pinctrl_dhcom_k: dhcom-k-grp {
359 pinctrl_dhcom_l: dhcom-l-grp {
363 pinctrl_dhcom_m: dhcom-m-grp {
367 pinctrl_dhcom_n: dhcom-n-grp {
371 pinctrl_dhcom_o: dhcom-o-grp {
375 pinctrl_dhcom_p: dhcom-p-grp {
379 pinctrl_dhcom_q: dhcom-q-grp {
383 pinctrl_dhcom_r: dhcom-r-grp {
[all …]
H A Dimx6qdl-dhcom-som.dtsi458 pinctrl_hog_base: hog-base-grp {
471 pinctrl_dhcom_a: dhcom-a-grp {
475 pinctrl_dhcom_b: dhcom-b-grp {
479 pinctrl_dhcom_c: dhcom-c-grp {
483 pinctrl_dhcom_d: dhcom-d-grp {
487 pinctrl_dhcom_e: dhcom-e-grp {
491 pinctrl_dhcom_f: dhcom-f-grp {
495 pinctrl_dhcom_g: dhcom-g-grp {
499 pinctrl_dhcom_h: dhcom-h-grp {
503 pinctrl_dhcom_i: dhcom-i-grp {
[all …]
/freebsd/crypto/openssl/test/
H A Dec_internal_test.c199 EC_GROUP *grp = NULL; in underflow_test() local
225 grp = EC_GROUP_new_by_curve_name(NID_secp521r1); in underflow_test()
226 P = EC_POINT_new(grp); in underflow_test()
227 Q = EC_POINT_new(grp); in underflow_test()
228 R = EC_POINT_new(grp); in underflow_test()
229 if (!TEST_ptr(grp) || !TEST_ptr(P) || !TEST_ptr(Q) || !TEST_ptr(R)) in underflow_test()
236 || !TEST_true(ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(grp, P, x1, in underflow_test()
238 || !TEST_true(EC_POINT_mul(grp, Q, NULL, P, k, ctx)) in underflow_test()
239 || !TEST_true(EC_POINT_get_affine_coordinates(grp, Q, x1, y1, ctx)) in underflow_test()
240 || !TEST_true(EC_POINT_dbl(grp, R, P, ctx)) in underflow_test()
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_pwd_common.c91 EAP_PWD_group *grp; in get_eap_pwd_group() local
97 grp = os_zalloc(sizeof(EAP_PWD_group)); in get_eap_pwd_group()
98 if (!grp) in get_eap_pwd_group()
100 grp->group = crypto_ec_init(num); in get_eap_pwd_group()
101 if (!grp->group) { in get_eap_pwd_group()
103 os_free(grp); in get_eap_pwd_group()
107 grp->group_num = num; in get_eap_pwd_group()
110 return grp; in get_eap_pwd_group()
118 int compute_password_element(EAP_PWD_group *grp, u16 num, in compute_password_element() argument
145 if (grp->pwe) in compute_password_element()
[all …]
/freebsd/lib/libc/gen/
H A Dgetgrent.c212 struct group *grp; in grp_marshal_func() local
233 grp = va_arg(ap, struct group *); in grp_marshal_func()
239 if (grp->gr_name != NULL) in grp_marshal_func()
240 desired_size += strlen(grp->gr_name) + 1; in grp_marshal_func()
241 if (grp->gr_passwd != NULL) in grp_marshal_func()
242 desired_size += strlen(grp->gr_passwd) + 1; in grp_marshal_func()
244 if (grp->gr_mem != NULL) { in grp_marshal_func()
246 for (mem = grp->gr_mem; *mem; ++mem) { in grp_marshal_func()
260 memcpy(&new_grp, grp, sizeof(struct group)); in grp_marshal_func()
306 struct group *grp; in grp_unmarshal_func() local
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx8mp-dhcom-som.dtsi642 pinctrl_dhcom_a: dhcom-a-grp {
649 pinctrl_dhcom_b: dhcom-b-grp {
656 pinctrl_dhcom_c: dhcom-c-grp {
663 pinctrl_dhcom_d: dhcom-d-grp {
670 pinctrl_dhcom_e: dhcom-e-grp {
677 pinctrl_dhcom_f: dhcom-f-grp {
684 pinctrl_dhcom_g: dhcom-g-grp {
691 pinctrl_dhcom_h: dhcom-h-grp {
698 pinctrl_dhcom_i: dhcom-i-grp {
705 pinctrl_dhcom_j: dhcom-j-grp {
[all...]
H A Dimx8mp-data-modul-edm-sbc.dts532 pinctrl_ecspi1: ecspi1-grp {
541 pinctrl_ecspi2: ecspi2-grp {
550 pinctrl_ecspi3: ecspi3-grp {
559 pinctrl_eqos: eqos-grp {
582 pinctrl_fec: fec-grp {
605 pinctrl_flexcan1: flexcan1-grp {
612 pinctrl_hog_feature: hog-feature-grp {
624 pinctrl_hog_panel: hog-panel-grp {
631 pinctrl_hog_misc: hog-misc-grp {
660 pinctrl_hog_sbc: hog-sbc-grp {
[all...]
H A Dimx8mm-emcon.dtsi111 pinctrl_csi_pwn: csi-pwn-grp {
117 pinctrl_ecspi1: ecspi1-grp {
125 pinctrl_ecspi1_cs: ecspi1cs-grp {
132 pinctrl_fec1: fec1-grp {
152 pinctrl_flexspi0: flexspi0-grp {
164 pinctrl_flexspi1: flexspi1-grp {
175 pinctrl_gpio_led: gpio-led-grp {
182 pinctrl_i2c1: i2c1-grp {
196 pinctrl_i2c3: i2c3-grp {
203 pinctrl_lvds: lvds-grp {
[all...]
H A Dimx8mm-data-modul-edm-sbc.dts470 pinctrl_ecspi1: ecspi1-grp {
479 pinctrl_ecspi2: ecspi2-grp {
488 pinctrl_ecspi3: ecspi3-grp {
497 pinctrl_fec1: fec1-grp {
522 pinctrl_hog_feature: hog-feature-grp {
538 pinctrl_hog_panel: hog-panel-grp {
545 pinctrl_hog_misc: hog-misc-grp {
571 pinctrl_hog_sbc: hog-sbc-grp {
605 pinctrl_i2c1: i2c1-grp {
612 pinctrl_i2c1_gpio: i2c1-gpio-grp {
[all …]
/freebsd/libexec/revnetgroup/
H A Dparse_netgroup.c178 struct netgrp *grp; in parse_netgrp() local
209 grp = (struct netgrp *)malloc(sizeof (struct netgrp)); in parse_netgrp()
210 bzero((char *)grp, sizeof (struct netgrp)); in parse_netgrp()
211 grp->ng_next = grouphead.gr; in parse_netgrp()
212 grouphead.gr = grp; in parse_netgrp()
231 grp->ng_str[strpos] = (char *) in parse_netgrp()
233 bcopy(spos, grp->ng_str[strpos], in parse_netgrp()
243 grp->ng_str[strpos] = NULL; in parse_netgrp()
255 grp->ng_str[NG_HOST] == NULL ? "" : grp->ng_str[NG_HOST], in parse_netgrp()
256 grp->ng_str[NG_USER] == NULL ? "" : ",", in parse_netgrp()
[all …]
/freebsd/usr.sbin/mountd/
H A Dmountd.c1475 struct grouplist *grp; in put_exlist() local
1504 grp = hp->ht_grp; in put_exlist()
1505 if (grp->gr_type == GT_HOST) { in put_exlist()
1508 strp = grp->gr_ptr.gt_addrinfo->ai_canonname; in put_exlist()
1512 } else if (grp->gr_type == GT_NET) { in put_exlist()
1515 strp = grp->gr_ptr.gt_net.nt_name; in put_exlist()
1560 struct grouplist *grp, *tgrp, *savgrp; in get_exportlist_one() local
1618 tgrp = grp = get_grp(); in get_exportlist_one()
1633 if (do_opt(&cp, &endcp, ep, grp, &has_host, in get_exportlist_one()
1766 grp->gr_next = get_grp(); in get_exportlist_one()
[all …]
/freebsd/usr.bin/newgrp/
H A Dnewgrp.c152 struct group *grp; in addgroup() local
159 if ((grp = getgrnam(grpname)) == NULL) in addgroup()
161 (grp = getgrgid((gid_t)lgid)) == NULL ) { in addgroup()
171 if (pwd->pw_gid == grp->gr_gid) in addgroup()
173 for (p = grp->gr_mem; *p != NULL; p++) in addgroup()
178 if (!dbmember && *grp->gr_passwd != '\0' && getuid() != 0) { in addgroup()
182 cryptpw = crypt(pass, grp->gr_passwd); in addgroup()
183 if (cryptpw == NULL || strcmp(grp->gr_passwd, cryptpw) != 0) { in addgroup()
198 if (grp->gr_gid != egid && inarray(grp->gr_gid, grps, ngrps)) { in addgroup()
200 if (grps[i] == grp->gr_gid) in addgroup()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c35 EAP_PWD_group *grp; member
157 if (data->grp) { in eap_pwd_reset()
158 crypto_ec_deinit(data->grp->group); in eap_pwd_reset()
159 crypto_ec_point_deinit(data->grp->pwe, 1); in eap_pwd_reset()
160 os_free(data->grp); in eap_pwd_reset()
250 prime_len = crypto_ec_prime_len(data->grp->group); in eap_pwd_build_commit_req()
251 order_len = crypto_ec_order_len(data->grp->group); in eap_pwd_build_commit_req()
254 data->my_element = crypto_ec_point_init(data->grp->group); in eap_pwd_build_commit_req()
264 if (eap_pwd_get_rand_mask(data->grp, data->private_value, mask, in eap_pwd_build_commit_req()
268 if (crypto_ec_point_mul(data->grp->group, data->grp->pwe, mask, in eap_pwd_build_commit_req()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A 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()
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dsz.h60 pszind_t grp = shift << SC_LG_NGROUP; in sz_psz2ind() local
69 pszind_t ind = grp + mod; in sz_psz2ind()
78 size_t grp = pind >> SC_LG_NGROUP; in sz_pind2sz_compute() local
81 size_t grp_size_mask = ~((!!grp)-1); in sz_pind2sz_compute()
82 size_t grp_size = ((ZU(1) << (LG_PAGE + (SC_LG_NGROUP-1))) << grp) in sz_pind2sz_compute()
85 size_t shift = (grp == 0) ? 1 : grp; in sz_pind2sz_compute()
140 szind_t grp = shift << SC_LG_NGROUP; in sz_size2index_compute() local
149 szind_t index = SC_NTINY + grp + mod; in sz_size2index_compute()
180 size_t grp = reduced_index >> SC_LG_NGROUP; in sz_index2size_compute() local
184 size_t grp_size_mask = ~((!!grp)-1); in sz_index2size_compute()
[all …]
/freebsd/sys/arm/ti/twl/
H A Dtwl_clks.c195 uint8_t grp, state; in twl_clks_is_enabled() local
212 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_is_enabled()
214 *enabled = (grp & TWL4030_P1_GRP); in twl_clks_is_enabled()
221 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_is_enabled()
227 if (!(grp & TWL6030_P1_GRP)) { in twl_clks_is_enabled()
268 uint8_t grp; in twl_clks_set_state() local
277 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_set_state()
286 grp |= TWL4030_P1_GRP; in twl_clks_set_state()
288 grp &= ~(TWL4030_P1_GRP | TWL4030_P2_GRP | TWL4030_P3_GRP); in twl_clks_set_state()
290 err = twl_clks_write_1(sc, clk, TWL_CLKS_GRP, grp); in twl_clks_set_state()
[all …]
/freebsd/sys/netinet/
H A Din_pcb.c260 struct inpcblbgroup *grp; in in_pcblbgroup_alloc() local
264 grp = malloc(bytes, M_PCB, M_ZERO | M_NOWAIT); in in_pcblbgroup_alloc()
265 if (grp == NULL) in in_pcblbgroup_alloc()
267 grp->il_cred = crhold(cred); in in_pcblbgroup_alloc()
268 grp->il_vflag = vflag; in in_pcblbgroup_alloc()
269 grp->il_lport = port; in in_pcblbgroup_alloc()
270 grp->il_numa_domain = numa_domain; in in_pcblbgroup_alloc()
271 grp->il_dependladdr = *addr; in in_pcblbgroup_alloc()
272 grp->il_inpsiz = size; in in_pcblbgroup_alloc()
273 CK_LIST_INSERT_HEAD(hdr, grp, il_list); in in_pcblbgroup_alloc()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_pwd.c37 EAP_PWD_group *grp; member
191 if (data->grp) { in eap_pwd_deinit()
192 crypto_ec_deinit(data->grp->group); in eap_pwd_deinit()
193 crypto_ec_point_deinit(data->grp->pwe, 1); in eap_pwd_deinit()
194 os_free(data->grp); in eap_pwd_deinit()
310 if (data->id_server || data->grp) { in eap_pwd_perform_id_exchange()
327 data->grp = get_eap_pwd_group(data->group_num); in eap_pwd_perform_id_exchange()
328 if (data->grp == NULL) { in eap_pwd_perform_id_exchange()
376 if (!data->grp) { in eap_pwd_perform_commit_exchange()
383 prime_len = crypto_ec_prime_len(data->grp->group); in eap_pwd_perform_commit_exchange()
[all …]

12345678