Home
last modified time | relevance | path

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

12345678

/freebsd-13.1/sys/netpfil/ipfw/
H A Ddn_sched_qfq.c454 struct qfq_class **h = &grp->slots[grp->front]; in qfq_front_slot_remove()
471 ND("grp %d full %x", grp->index, grp->full_slots); in qfq_slot_scan()
477 grp->front = (grp->front + i) % QFQ_MAX_SLOTS; in qfq_slot_scan()
481 return grp->slots[grp->front]; in qfq_slot_scan()
500 grp->front = (grp->front - i) % QFQ_MAX_SLOTS; in qfq_slot_rotate()
566 cl = grp->slots[grp->front]; in qfq_dequeue()
592 grp->F = roundedS + (2ULL << grp->slot_shift); in qfq_dequeue()
674 grp = cl->grp; in qfq_enqueue()
721 offset = (roundedS - grp->S) >> grp->slot_shift;
777 } else if (!grp->slots[grp->front]) {
[all …]
/freebsd-13.1/usr.sbin/pw/
H A Dpw_group.c78 grp->gr_name); in grp_set_passwd()
119 struct group *grp; in getgroup() local
124 if (grp == NULL) { in getgroup()
131 return (grp); in getgroup()
172 grp->gr_mem[k] = grp->gr_mem[k+1]; in delete_members()
248 grp->gr_name, (long) grp->gr_gid); in print_group()
351 if (grp == NULL) in pw_group_show()
352 grp = &fakegroup; in pw_group_show()
419 for (j = 0; grp->gr_mem != NULL && grp->gr_mem[j] != NULL; j++) in grp_has_member()
438 *grp = gr_add(*grp, pwd->pw_name); in grp_add_members()
[all …]
H A Dpw_user.c998 grp->gr_mem[j] = grp->gr_mem[j+1]; in pw_user_del()
1435 grp = gr_add(grp, pwd->pw_name); in pw_user_add()
1444 chggrent(grp->gr_name, grp); in pw_user_add()
1456 grp ? grp->gr_name : "unknown", in pw_user_add()
1776 grp->gr_mem[j] = grp->gr_mem[j+1]; in pw_user_mod()
1777 chggrent(grp->gr_name, grp); in pw_user_mod()
1785 grp = gr_add(grp, pwd->pw_name); in pw_user_mod()
1788 chggrent(grp->gr_name, grp); in pw_user_mod()
1802 chggrent(grp->gr_name, grp); in pw_user_mod()
1817 grp ? grp->gr_name : "unknown", in pw_user_mod()
[all …]
H A Dgrupd.c54 gr_update(struct group * grp, char const * group) in gr_update() argument
60 if (grp != NULL) in gr_update()
61 gr = gr_dup(grp); in gr_update()
95 addgrent(struct group * grp) in addgrent() argument
97 return gr_update(grp, NULL); in addgrent()
101 chggrent(char const * login, struct group * grp) in chggrent() argument
103 return gr_update(grp, login); in chggrent()
107 delgrent(struct group * grp) in delgrent() argument
110 return (gr_update(NULL, grp->gr_name)); in delgrent()
/freebsd-13.1/sys/rpc/
H A Dsvc.c92 SVCGROUP *grp; in svcpool_create() local
187 SVCGROUP *grp; in svcpool_cleanup() local
228 SVCGROUP *grp; in svcpool_destroy() local
253 SVCGROUP *grp; in svcpool_close() local
348 SVCGROUP *grp; in xprt_register() local
427 && grp->sg_threadcount < grp->sg_maxthreads) { in xprt_assignthread()
1094 SVCGROUP *grp; in svc_assign_waiting_sockets() local
1215 grp->sg_threadcount > grp->sg_minthreads)) in svc_run_internal()
1333 wakeup(grp); in svc_run_internal()
1364 SVCGROUP *grp; in svc_run() local
[all …]
/freebsd-13.1/lib/libc/tests/nss/
H A Dgetgr_test.c124 free(grp->gr_name); in free_group()
125 free(grp->gr_passwd); in free_group()
129 free(grp->gr_mem); in free_group()
180 grp->gr_name, grp->gr_passwd, grp->gr_gid); in sdump_group()
235 free(grp->gr_name); in group_read_snapshot_func()
269 free(grp->gr_name); in group_read_snapshot_func()
298 struct group *grp; in group_fill_test_data() local
319 dump_group(grp); in group_test_correctness()
321 if (grp == NULL) in group_test_correctness()
356 struct group *grp; in group_test_getgrnam() local
[all …]
/freebsd-13.1/sys/contrib/device-tree/src/arm/
H A Dimx6ull-colibri.dtsi223 pinctrl_enet2: enet2-grp {
287 pinctrl_gpio1: gpio1-grp {
317 pinctrl_gpio4: gpio4-grp {
367 pinctrl_i2c1: i2c1-grp {
381 pinctrl_i2c2: i2c2-grp {
427 pinctrl_pwm4: pwm4-grp {
433 pinctrl_pwm5: pwm5-grp {
439 pinctrl_pwm6: pwm6-grp {
445 pinctrl_pwm7: pwm7-grp {
451 pinctrl_uart1: uart1-grp {
[all …]
H A Dimx6q-dhcom-som.dtsi230 pinctrl_ecspi1: ecspi1-grp {
240 pinctrl_ecspi2: ecspi2-grp {
281 pinctrl_i2c1: i2c1-grp {
288 pinctrl_i2c2: i2c2-grp {
295 pinctrl_i2c3: i2c3-grp {
320 pinctrl_uart1: uart1-grp {
333 pinctrl_uart4: uart4-grp {
340 pinctrl_uart5: uart5-grp {
349 pinctrl_usbh1: usbh1-grp {
355 pinctrl_usbotg: usbotg-grp {
[all …]
/freebsd-13.1/usr.bin/logins/
H A Dlogins.c130 struct group *grp; in get_groups() local
140 if ((grp = getgrent()) == NULL) in get_groups()
144 grps[ngrps].gr_gid = grp->gr_gid; in get_groups()
147 len += strlen(grp->gr_mem[i]) + 1; in get_groups()
237 struct xgroup *grp; in select_users() local
252 for (j = 0, grp = grps; j < ngrps; ++j, ++grp) { in select_users()
297 struct xgroup *grp; in display_user() local
304 pwd->pw_name, (long)pwd->pw_uid, grp ? grp->gr_name : "", in display_user()
307 for (i = 0, grp = grps; i < ngrps; ++i, ++grp) { in display_user()
308 if (grp->gr_gid == pwd->pw_gid || in display_user()
[all …]
/freebsd-13.1/contrib/wpa/src/eap_common/
H A Deap_pwd_common.c91 EAP_PWD_group *grp; in get_eap_pwd_group() local
98 if (!grp) 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()
145 if (grp->pwe) in compute_password_element()
289 grp->pwe = crypto_ec_point_from_bin(grp->group, x_y); in compute_password_element()
290 if (!grp->pwe) { in compute_password_element()
300 if (!crypto_ec_point_is_on_curve(grp->group, grp->pwe)) { in compute_password_element()
[all …]
/freebsd-13.1/lib/libcasper/services/cap_grp/
H A Dcap_grp.c160 explicit_bzero(grp, sizeof(*grp)); in group_unpack()
240 *result = grp; in cap_getgrcommon_r()
593 if (grp == NULL) in grp_pack()
599 if (!grp_allowed_group(limits, grp->gr_name, grp->gr_gid)) in grp_pack()
633 struct group *grp; in grp_getgrent() local
637 grp = getgrent(); in grp_getgrent()
640 if (grp_pack(limits, grp, nvlout)) in grp_getgrent()
650 struct group *grp; in grp_getgrnam() local
659 grp = getgrnam(name); in grp_getgrnam()
671 struct group *grp; in grp_getgrgid() local
[all …]
H A Dcap_grp.h48 int cap_getgrent_r(cap_channel_t *chan, struct group *grp, char *buffer,
50 int cap_getgrnam_r(cap_channel_t *chan, const char *name, struct group *grp,
52 int cap_getgrgid_r(cap_channel_t *chan, gid_t gid, struct group *grp,
83 #define cap_getgrent_r(chan, grp, buffer, bufsize, result) \
84 getgrent_r(grp, buffer, bufsize, result)
85 #define cap_getgrnam_r(chan, name, grp, buffer, bufsize, result) \
86 getgrnam_r(name, grp, buffer, bufsize, result)
87 #define cap_getgrgid_r(chan, gid, grp, buffer, bufsize, result) \
88 getgrgid_r(gid, grp, buffer, bufsize, result)
/freebsd-13.1/lib/libc/gen/
H A Dgetgrent.c215 struct group *grp; in grp_marshal_func() local
242 if (grp->gr_name != NULL) in grp_marshal_func()
309 struct group *grp; in grp_unmarshal_func() local
474 struct group grp; in getgroupmembership_fallback() local
689 static struct group grp; variable
847 struct group *grp; in files_group() local
960 struct group *grp; in dns_group() local
1098 struct group *grp; in nis_group() local
1320 struct group *grp; in compat_group() local
1545 memset(grp, 0, sizeof(*grp)); in __gr_parse_entry()
[all …]
/freebsd-13.1/libexec/revnetgroup/
H A Dparse_netgroup.c183 struct netgrp *grp; in parse_netgrp() local
215 bzero((char *)grp, sizeof (struct netgrp)); in parse_netgrp()
216 grp->ng_next = grouphead.gr; in parse_netgrp()
217 grouphead.gr = grp; in parse_netgrp()
236 grp->ng_str[strpos] = (char *) in parse_netgrp()
238 bcopy(spos, grp->ng_str[strpos], in parse_netgrp()
248 grp->ng_str[strpos] = NULL; in parse_netgrp()
260 grp->ng_str[NG_HOST] == NULL ? "" : grp->ng_str[NG_HOST], in parse_netgrp()
262 grp->ng_str[NG_USER] == NULL ? "" : grp->ng_str[NG_USER], in parse_netgrp()
263 grp->ng_str[NG_DOM] == NULL ? "" : ",", in parse_netgrp()
[all …]
/freebsd-13.1/usr.bin/newgrp/
H A Dnewgrp.c155 struct group *grp; in addgroup() local
162 if ((grp = getgrnam(grpname)) == NULL) in addgroup()
164 (grp = getgrgid((gid_t)lgid)) == NULL ) { in addgroup()
174 if (pwd->pw_gid == grp->gr_gid) in addgroup()
176 for (p = grp->gr_mem; *p != NULL; p++) in addgroup()
185 cryptpw = crypt(pass, grp->gr_passwd); in addgroup()
201 if (grp->gr_gid != egid && inarray(grp->gr_gid, grps, ngrps)) { in addgroup()
203 if (grps[i] == grp->gr_gid) in addgroup()
217 if (setgid(grp->gr_gid)) { in addgroup()
223 grps[0] = grp->gr_gid; in addgroup()
[all …]
/freebsd-13.1/usr.sbin/mountd/
H A Dmountd.c1727 grp = grp->gr_next; in get_exportlist_one()
1776 grp = grp->gr_next; in get_exportlist_one()
1807 } while (grp->gr_next && (grp = grp->gr_next)); in get_exportlist_one()
2239 grp = grp->gr_next; in compare_nmount_exportlist()
2275 for (grp = ep->ex_grphead; grp != NULL; grp = grp->gr_next) { in compare_export()
2454 grp = grp->gr_next; in getexp_err()
2535 grp = grp->gr_next; in hang_dirp()
2597 grp = grp->gr_next; in add_dlist()
2974 grp = grp->gr_next; in free_exp()
3063 ret = do_mount(ep, grp, grp->gr_exflags, &grp->gr_anon, in do_export_mount()
[all …]
/freebsd-13.1/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c35 EAP_PWD_group *grp; member
157 if (data->grp) { in eap_pwd_reset()
160 os_free(data->grp); in eap_pwd_reset()
268 if (crypto_ec_point_mul(data->grp->group, data->grp->pwe, mask, in eap_pwd_build_commit_req()
316 u16 grp; in eap_pwd_build_confirm_req() local
382 grp = htons(data->group_num); in eap_pwd_build_confirm_req()
593 if (data->id_peer || data->grp) { in eap_pwd_process_id_resp()
608 if (data->grp == NULL) { in eap_pwd_process_id_resp()
704 if ((crypto_ec_point_mul(data->grp->group, data->grp->pwe, in eap_pwd_process_commit_resp()
749 u16 grp; in eap_pwd_process_confirm_resp() local
[all …]
/freebsd-13.1/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-13.1/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()
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()
186 (SC_LG_NGROUP-1))) << grp) & grp_size_mask; in sz_index2size_compute()
[all …]
/freebsd-13.1/sys/contrib/octeon-sdk/
H A Dcvmx-pow.h257 uint8_t grp; member
718 uint64_t grp : 4;
751 uint64_t grp : 6;
1368 result.grp = load_resp.s.grp; in cvmx_pow_get_current_tag()
1381 result.grp = load_resp.s_sstatus2.grp; in cvmx_pow_get_current_tag()
1790 tag_req.s_cn38xx.grp = group; in cvmx_pow_tag_sw_full_nocheck()
1931 wqp->word1.cn68xx.grp = grp; in cvmx_pow_work_submit()
1937 tag_req.s_cn68xx_add.grp = grp; in cvmx_pow_work_submit()
1942 wqp->word1.cn38xx.grp = grp; in cvmx_pow_work_submit()
1948 tag_req.s_cn38xx.grp = grp; in cvmx_pow_work_submit()
[all …]
/freebsd-13.1/sys/arm/ti/twl/
H A Dtwl_clks.c197 uint8_t grp, state; in twl_clks_is_enabled() local
214 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_is_enabled()
216 *enabled = (grp & TWL4030_P1_GRP); in twl_clks_is_enabled()
223 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_is_enabled()
229 if (!(grp & TWL6030_P1_GRP)) { in twl_clks_is_enabled()
270 uint8_t grp; in twl_clks_set_state() local
279 err = twl_clks_read_1(sc, clk, TWL_CLKS_GRP, &grp); in twl_clks_set_state()
288 grp |= TWL4030_P1_GRP; in twl_clks_set_state()
292 err = twl_clks_write_1(sc, clk, TWL_CLKS_GRP, grp); in twl_clks_set_state()
297 grp |= TWL6030_P1_GRP; in twl_clks_set_state()
[all …]
/freebsd-13.1/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()
194 os_free(data->grp); in eap_pwd_deinit()
310 if (data->id_server || data->grp) { 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()
589 if (crypto_ec_point_mul(data->grp->group, data->grp->pwe, mask, in eap_pwd_perform_commit_exchange()
627 if (crypto_ec_point_mul(data->grp->group, data->grp->pwe, in eap_pwd_perform_commit_exchange()
694 u16 grp; in eap_pwd_perform_confirm_exchange() local
[all …]
/freebsd-13.1/sys/compat/linuxkpi/common/include/linux/
H A Dsysfs.h180 sysfs_create_group(struct kobject *kobj, const struct attribute_group *grp) in sysfs_create_group() argument
186 if (grp->name) in sysfs_create_group()
188 OID_AUTO, grp->name, CTLFLAG_RD|CTLFLAG_MPSAFE, NULL, grp->name); in sysfs_create_group()
191 for (attr = grp->attrs; *attr != NULL; attr++) { in sysfs_create_group()
201 sysfs_remove_group(struct kobject *kobj, const struct attribute_group *grp) in sysfs_remove_group() argument
205 sysctl_remove_name(kobj->oidp, grp->name, 1, 1); in sysfs_remove_group()
236 sysfs_merge_group(struct kobject *kobj, const struct attribute_group *grp) in sysfs_merge_group() argument
240 return (sysfs_create_group(kobj, grp)); in sysfs_merge_group()
244 sysfs_unmerge_group(struct kobject *kobj, const struct attribute_group *grp) in sysfs_unmerge_group() argument
250 if (strcmp(oidp->oid_name, grp->name) != 0) in sysfs_unmerge_group()
[all …]
/freebsd-13.1/sys/netinet/
H A Din_pcb.c268 if (!grp) in in_pcblbgroup_alloc()
276 return (grp); in in_pcblbgroup_alloc()
317 return (grp); in in_pcblbgroup_resize()
330 grp = *grpp; in in_pcblbgroup_reorder()
332 grp->il_inp[i] = grp->il_inp[i + 1]; in in_pcblbgroup_reorder()
336 grp->il_inpcnt <= grp->il_inpsiz / 4) { in in_pcblbgroup_reorder()
338 new_grp = in_pcblbgroup_resize(hdr, grp, grp->il_inpsiz / 2); in in_pcblbgroup_reorder()
397 } else if (grp->il_inpcnt == grp->il_inpsiz) { in in_pcbinslbgrouphash()
406 grp = in_pcblbgroup_resize(hdr, grp, grp->il_inpsiz * 2); in in_pcbinslbgrouphash()
411 KASSERT(grp->il_inpcnt < grp->il_inpsiz, in in_pcbinslbgrouphash()
[all …]
/freebsd-13.1/lib/libc/net/
H A Dnss_compat.c100 struct group *grp; in __nss_compat_getgrnam_r() local
108 grp = va_arg(ap, struct group *); in __nss_compat_getgrnam_r()
115 *(struct group **)retval = grp; in __nss_compat_getgrnam_r()
125 struct group *grp; in __nss_compat_getgrgid_r() local
133 grp = va_arg(ap, struct group *); in __nss_compat_getgrgid_r()
137 nss_status = fn(gid, grp, buffer, bufsize, errnop); in __nss_compat_getgrgid_r()
140 *(struct group **)retval = grp; in __nss_compat_getgrgid_r()
149 struct group *grp; in __nss_compat_getgrent_r() local
158 grp = va_arg(ap, struct group *); in __nss_compat_getgrent_r()
162 nss_status = fn(grp, buffer, bufsize, errnop); in __nss_compat_getgrent_r()
[all …]

12345678