Home
last modified time | relevance | path

Searched full:grp (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_qfq.c174 * grp->index is the index of the group; and grp->slot_shift
215 struct qfq_group *grp; member
324 cl->grp = &q->groups[i]; in qfq_new_queue()
355 * First compute eligibility comparing grp->S, q->V,
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()
434 * roundedS is always cl->S rounded on grp->slot_shift bits.
437 qfq_slot_insert(struct qfq_group *grp, struct qfq_class *cl, uint64_t roundedS) in qfq_slot_insert() argument
[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.c39 #include <grp.h>
363 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
[all …]
H A Dgrupd.c30 #include <grp.h>
49 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/lib/libc/tests/nss/
H A Dgetgr_test.c30 #include <grp.h>
115 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()
[all …]
/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/sys/contrib/device-tree/src/arm/nxp/imx/
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 …]
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 …]
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx8mp-dhcom-som.dtsi647 pinctrl_dhcom_a: dhcom-a-grp {
654 pinctrl_dhcom_b: dhcom-b-grp {
661 pinctrl_dhcom_c: dhcom-c-grp {
668 pinctrl_dhcom_d: dhcom-d-grp {
675 pinctrl_dhcom_e: dhcom-e-grp {
682 pinctrl_dhcom_f: dhcom-f-grp {
689 pinctrl_dhcom_g: dhcom-g-grp {
696 pinctrl_dhcom_h: dhcom-h-grp {
703 pinctrl_dhcom_i: dhcom-i-grp {
710 pinctrl_dhcom_j: dhcom-j-grp {
[all …]
H A Dimx8mp-data-modul-edm-sbc.dts643 pinctrl_ecspi1: ecspi1-grp {
652 pinctrl_ecspi2: ecspi2-grp {
661 pinctrl_ecspi3: ecspi3-grp {
670 pinctrl_eqos: eqos-grp {
693 pinctrl_fec: fec-grp {
716 pinctrl_flexcan1: flexcan1-grp {
723 pinctrl_hdmi: hdmi-grp {
730 pinctrl_hog_feature: hog-feature-grp {
742 pinctrl_hog_panel: hog-panel-grp {
749 pinctrl_hog_misc: hog-misc-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.dts485 pinctrl_ecspi1: ecspi1-grp {
494 pinctrl_ecspi2: ecspi2-grp {
503 pinctrl_ecspi3: ecspi3-grp {
512 pinctrl_fec1: fec1-grp {
537 pinctrl_hog_feature: hog-feature-grp {
553 pinctrl_hog_panel: hog-panel-grp {
560 pinctrl_hog_misc: hog-misc-grp {
586 pinctrl_hog_sbc: hog-sbc-grp {
620 pinctrl_i2c1: i2c1-grp {
627 pinctrl_i2c1_gpio: i2c1-gpio-grp {
[all …]
H A Dimx8mm-innocomm-wb15.dtsi292 pinctrl_i2c1: i2c1-grp {
299 pinctrl_i2c1_gpio: i2c1-gpio-grp {
306 pinctrl_i2c2: i2c2-grp {
313 pinctrl_i2c2_gpio: i2c2-gpio-grp {
320 pinctrl_i2c3: i2c3-grp {
327 pinctrl_i2c3_gpio: i2c3-gpio-grp {
334 pinctrl_pcie0: pcie0-grp {
341 pinctrl_modem_bt: modem-bt-grp {
351 pinctrl_modem_regulator: modem-reg-grp {
357 pinctrl_pmic: pmic-irq-grp {
[all …]
/freebsd/lib/libc/gen/
H A Dgetgrent.c48 #include <grp.h>
212 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()
[all …]
/freebsd/usr.bin/logins/
H A Dlogins.c33 #include <grp.h>
126 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()
[all …]
/freebsd/sys/arm/nvidia/
H A Dtegra_pinmux.c391 #define GRP(r, nm, dn_s, dn_w, up_s, up_w) \ macro
403 GRP(0x868, ao1, 12, 5, 20, 5),
404 GRP(0x86C, ao2, 12, 5, 20, 5),
405 GRP(0x870, at1, 12, 7, 20, 7),
406 GRP(0x874, at2, 12, 7, 20, 7),
407 GRP(0x878, at3, 12, 7, 20, 7),
408 GRP(0x87C, at4, 12, 7, 20, 7),
409 GRP(0x880, at5, 14, 5, 19, 5),
410 GRP(0x884, cdev1, 12, 5, 20, 5),
411 GRP(0x888, cdev2, 12, 5, 20, 5),
[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/sys/arm64/nvidia/tegra210/
H A Dtegra210_pinmux.c174 #define GRP(r, nm, dn_s, dn_w, up_s, up_w) \ macro
186 GRP(0x9c0, pa6, 12, 5, 20, 5),
187 GRP(0x9c4, pcc7, 12, 5, 20, 5),
188 GRP(0x9c8, pe6, 12, 5, 20, 5),
189 GRP(0x9cc, pe7, 12, 5, 20, 5),
190 GRP(0x9d0, ph6, 12, 5, 20, 5),
191 GRP(0x9d4, pk0, 0, 0, 0, 0),
192 GRP(0x9d8, pk1, 0, 0, 0, 0),
193 GRP(0x9dc, pk2, 0, 0, 0, 0),
194 GRP(0x9e0, pk3, 0, 0, 0, 0),
[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/openssl/test/
H A Dec_internal_test.c249 EC_GROUP *grp = NULL; in underflow_test() local
275 grp = EC_GROUP_new_by_curve_name(NID_secp521r1); in underflow_test()
276 P = EC_POINT_new(grp); in underflow_test()
277 Q = EC_POINT_new(grp); in underflow_test()
278 R = EC_POINT_new(grp); in underflow_test()
279 if (!TEST_ptr(grp) || !TEST_ptr(P) || !TEST_ptr(Q) || !TEST_ptr(R)) in underflow_test()
286 || !TEST_true(ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp(grp, P, x1, in underflow_test()
288 || !TEST_true(EC_POINT_mul(grp, Q, NULL, P, k, ctx)) in underflow_test()
289 || !TEST_true(EC_POINT_get_affine_coordinates(grp, Q, x1, y1, ctx)) in underflow_test()
290 || !TEST_true(EC_POINT_dbl(grp, R, P, ctx)) in underflow_test()
[all …]
/freebsd/lib/libcasper/services/cap_grp/
H A Dcap_grp.355 .Fn cap_getgrent_r "cap_channel_t *chan" "struct group *grp" "char *buffer" "size_t bufsize" "struc…
57 .Fn cap_getgrnam_r "cap_channel_t *chan" "const char *name" "struct group *grp" "char *buffer" "siz…
59 .Fn cap_getgrgid_r "cap_channel_t *chan" "gid_t gid" "struct group *grp" "char *buffer" "size_t buf…
96 .Nm system.grp
163 .Nm system.grp
181 /* Use Casper capability to create capability to the system.grp service. */
182 capgrp = cap_service_open(capcas, "system.grp");
184 err(1, "Unable to open system.grp service");
191 err(1, "Unable to limit access to system.grp service");
195 err(1, "Unable to limit access to system.grp service");
[all …]
/freebsd/usr.sbin/mountd/
H A Dmountd.c64 #include <grp.h>
1500 struct grouplist *grp; in put_exlist() local
1529 grp = hp->ht_grp; in put_exlist()
1530 if (grp->gr_type == GT_HOST) { in put_exlist()
1533 strp = grp->gr_ptr.gt_addrinfo->ai_canonname; in put_exlist()
1537 } else if (grp->gr_type == GT_NET) { in put_exlist()
1540 strp = grp->gr_ptr.gt_net.nt_name; in put_exlist()
1585 struct grouplist *grp, *tgrp, *savgrp; in get_exportlist_one() local
1644 tgrp = grp = get_grp(); in get_exportlist_one()
1659 if (do_opt(&cp, &endcp, ep, grp, &has_host, in get_exportlist_one()
[all …]
/freebsd/sys/netinet/
H A Din_pcb.c259 struct inpcblbgroup *grp; in in_pcblbgroup_alloc() local
263 grp = malloc(bytes, M_PCB, M_ZERO | M_NOWAIT); in in_pcblbgroup_alloc()
264 if (grp == NULL) in in_pcblbgroup_alloc()
266 LIST_INIT(&grp->il_pending); 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_fibnum = fib; in in_pcblbgroup_alloc()
272 grp->il_dependladdr = *addr; in in_pcblbgroup_alloc()
[all …]
/freebsd/usr.bin/newgrp/
H A Dnewgrp.c37 #include <grp.h>
152 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()
[all …]
/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 …]

12345678910>>...18