Home
last modified time | relevance | path

Searched +full:- +full:grp (Results 1 – 25 of 436) sorted by relevance

12345678910>>...18

/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_qfq.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
73 * We use the base-0 version __fls() to match the description in
89 return fls(word) - 1; in __fls()
125 /*-------------------------------------------*/
140 ^.__grp->index = 0
141 *.__grp->slot_shift
158 The per-scheduler-instance data contain all the data structures
169 * Shifts used for class<->group mapping. Class weights are
174 * grp->index is the index of the group; and grp->slot_shift
[all …]
/freebsd/usr.sbin/pw/
H A Dpw_group.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
31 #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
56 if (fd == - in grp_set_passwd()
115 struct group *grp; getgroup() local
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.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
39 #include <grp.h>
54 #define LOGNAMESIZE (MAXLOGNAME-1)
62 -1,
63 -1,
95 if (fstatat(dfd, dir, &st, 0) != -1) { in mkdir_home_parents()
113 if (fstatat(dfd, dirs, &st, 0) == -1) { in mkdir_home_parents()
116 if (fstatat(dfd, dirs, &st, 0) == -1) { in mkdir_home_parents()
117 if (mkdirat(dfd, dirs, _DEF_DIRMODE) == -1) in mkdir_home_parents()
[all …]
H A Dgrupd.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
30 #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()
64 if ((pfd = gr_lock()) == -1) { in gr_update()
68 if ((tfd = gr_tmp(-1)) == -1) { in gr_update()
72 if (gr_copy(pfd, tfd, gr, old_gr) == -1) { in gr_update()
79 if (gr_mkdb() == -1) { in gr_update()
[all …]
/freebsd/sys/rpc/
H A Dsvc.c3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
11 * - Redistributions of source code must retain the above copyright notice,
13 * - Redistributions in binary form must reproduce the above copyright notice,
16 * - Neither the name of Sun Microsystems, Inc. nor the names of its
35 * svc.c, Server-side remote procedure call interface.
70 #define version_keepquiet(xp) (SVC_EXT(xp)->xp_flags & SVC_VERSQUIET)
74 static void svc_new_thread(SVCGROUP *grp);
90 SVCGROUP *grp; in svcpool_create() local
95 mtx_init(&pool->sp_lock, "sp_lock", NULL, MTX_DEF); in svcpool_create()
[all …]
/freebsd/lib/libc/tests/nss/
H A Dgetgr_test.c1 /*-
30 #include <grp.h>
37 #include <atf-c.h>
88 if (src->gr_name != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT()
89 dest->gr_name = strdup(src->gr_name); in IMPLEMENT_TEST_FILE_SNAPSHOT()
90 ATF_REQUIRE(dest->gr_name != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT()
93 if (src->gr_passwd != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT()
94 dest->gr_passwd = strdup(src->gr_passwd); in IMPLEMENT_TEST_FILE_SNAPSHOT()
95 ATF_REQUIRE(dest->gr_passwd != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT()
97 dest->gr_gid = src->gr_gid; in IMPLEMENT_TEST_FILE_SNAPSHOT()
[all …]
/freebsd/sys/contrib/device-tree/src/arm/nxp/imx/
H A Dimx6qdl-dhcom-som.dtsi1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015-2021 DH electronics GmbH
7 #include <dt-bindings/pwm/pwm.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/clock/imx6qdl-clock.h>
10 #include <dt-bindings/input/input.h>
30 memory@10000000 { /* Appropriate memory size will be filled by U-Boot */
35 reg_3p3v: regulator-3P3V {
36 compatible = "regulator-fixed";
37 regulator-always-on;
[all …]
H A Dimx6ull-dhcom-som.dtsi1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
6 #include "imx6ull-dhcor-som.dtsi"
10 /delete-property/ spi2;
11 /delete-property/ spi3;
28 stdout-path = "serial0:115200n8";
31 reg_ext_3v3_ref: regulator-ext-3v3-ref {
32 compatible = "regulator-fixed";
33 regulator-always-on;
34 regulator-max-microvolt = <3300000>;
35 regulator-min-microvolt = <3300000>;
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/freescale/
H A Dimx8mp-dhcom-som.dtsi1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2021-2022 Marek Vasut <marex@denx.de>
10 compatible = "dh,imx8mp-dhcom-som", "fsl,imx8mp";
22 /* Memory size 512 MiB..8 GiB will be filled by U-Boot */
26 reg_eth_vio: regulator-eth-vio {
27 compatible = "regulator-fixed";
29 regulator-always-on;
30 regulator-boot-on;
31 regulator-min-microvolt = <3300000>;
32 regulator-max-microvolt = <3300000>;
[all …]
H A Dimx8mp-data-modul-edm-sbc.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/net/qca-ar803x.h>
9 #include <dt-bindings/phy/phy-imx8-pcie.h>
14 compatible = "dmo,imx8mp-data-modul-edm-sbc", "fsl,imx8mp";
22 stdout-path = &uart3;
32 compatible = "pwm-backlight";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_panel_backlight>;
35 brightness-levels = <0 1 10 20 30 40 50 60 70 75 80 90 100>;
[all …]
H A Dimx8mm-emcon.dtsi1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
7 /dts-v1/;
13 stdout-path = &uart1;
17 compatible = "gpio-leds";
18 pinctrl-names = "default";
19 pinctrl-0 = <&pinctrl_gpio_led>;
21 led-green {
24 default-stat
[all...]
H A Dimx8mm-data-modul-edm-sbc.dts1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
6 /dts-v1/;
8 #include <dt-bindings/net/qca-ar803x.h>
9 #include <dt-bindings/phy/phy-imx8-pcie.h>
14 compatible = "dmo,imx8mm-data-modul-edm-sbc", "fsl,imx8mm";
22 stdout-path = &uart3;
32 compatible = "pwm-backlight";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pinctrl_panel_backlight>;
35 brightness-levels = <0 1 10 20 30 40 50 60 70 75 80 90 100>;
[all …]
H A Dimx8mm-innocomm-wb15.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/phy/phy-imx8-pcie.h>
10 reg_modem: regulator-modem {
11 compatible = "regulator-fixed";
12 pinctrl-names = "default";
13 pinctrl-0 = <&pinctrl_modem_regulator>;
14 regulator-min-microvolt = <3300000>;
15 regulator-max-microvolt = <3300000>;
16 regulator-name = "epdev_on";
18 enable-active-high;
[all …]
/freebsd/usr.bin/logins/
H A Dlogins.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
4 * Copyright (c) 2004 Dag-Erling Smørgrav
33 #include <grp.h>
85 (p == list || p[-1] == ',') && in member()
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()
[all …]
/freebsd/lib/libc/gen/
H A Dgetgrent.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
10 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035
48 #include <grp.h>
57 #include "un-namespace.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()
[all …]
/freebsd/sys/arm/nvidia/
H A Dtegra_pinmux.c1 /*-
78 {"nvidia,tegra124-pinmux", 1},
109 {"nvidia,enable-input", PROP_ID_ENABLE_INPUT},
110 {"nvidia,open-drain", PROP_ID_OPEN_DRAIN},
112 {"nvidia,io-reset", PROP_ID_IORESET},
113 {"nvidia,rcv-sel", PROP_ID_RCV_SEL},
114 {"nvidia,high-speed-mode", PROP_ID_HIGH_SPEED_MODE},
116 {"nvidia,low-power-mode", PROP_ID_LOW_POWER_MODE},
117 {"nvidia,pull-down-strength", PROP_ID_DRIVE_DOWN_STRENGTH},
118 {"nvidia,pull-up-strength", PROP_ID_DRIVE_UP_STRENGTH},
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_pwd_common.c2 * EAP server/peer: EAP-pwd shared routines
21 /* The random function H(x) = HMAC-SHA256(0^32, x) */
44 /* a counter-based KDF based on NIST SP800-108 */
62 return -1; in eap_pwd_kdf()
70 return -1; in eap_pwd_kdf()
72 os_memcpy(result + len, digest, resultbytelen - len); in eap_pwd_kdf()
81 mask <<= (8 - (resultbitlen % 8)); in eap_pwd_kdf()
82 result[resultbytelen - 1] &= mask; in eap_pwd_kdf()
91 EAP_PWD_group *grp; in get_eap_pwd_group() local
94 wpa_printf(MSG_INFO, "EAP-pwd: unsuitable group %u", num); in get_eap_pwd_group()
[all …]
/freebsd/crypto/openssl/test/
H A Dec_internal_test.c2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved.
30 if (group->meth->field_inv == NULL || group->meth->field_mul == NULL) in group_field_tests()
38 || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx)) in group_field_tests()
41 || !TEST_true(BN_rand(a, BN_num_bits(group->field) - 1, in group_field_tests()
43 || !TEST_true(group->meth->field_inv(group, b, a, ctx)) in group_field_tests()
44 || (group->meth->field_encode && in group_field_tests()
45 !TEST_true(group->meth->field_encode(group, a, a, ctx))) in group_field_tests()
46 || (group->meth->field_encode && in group_field_tests()
47 !TEST_true(group->meth->field_encode(group, b, b, ctx))) in group_field_tests()
48 || !TEST_true(group->meth->field_mul(group, c, a, b, ctx)) in group_field_tests()
[all …]
/freebsd/sys/arm64/nvidia/tegra210/
H A Dtegra210_pinmux.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
78 {"nvidia,tegra210-pinmux", 1},
109 {"nvidia,enable-input", PROP_ID_ENABLE_INPUT},
110 {"nvidia,open-drain", PROP_ID_OPEN_DRAIN},
112 {"nvidia,io-reset", PROP_ID_IORESET},
113 {"nvidia,rcv-sel", PROP_ID_RCV_SEL},
114 {"nvidia,io-hv", PROP_ID_RCV_SEL},
115 {"nvidia,high-speed-mode", PROP_ID_HIGH_SPEED_MODE},
117 {"nvidia,low-power-mode", PROP_ID_LOW_POWER_MODE},
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_pwd.c2 * hostapd / EAP-pwd (RFC 5931) server
35 EAP_PWD_group *grp; member
62 return "PWD-ID-Req"; in eap_pwd_state_txt()
64 return "PWD-Commit-Req"; in eap_pwd_state_txt()
66 return "PWD-Confirm-Req"; in eap_pwd_state_txt()
72 return "PWD-Unk"; in eap_pwd_state_txt()
79 wpa_printf(MSG_DEBUG, "EAP-pwd: %s -> %s", in eap_pwd_state()
80 eap_pwd_state_txt(data->state), eap_pwd_state_txt(state)); in eap_pwd_state()
81 data->state = state; in eap_pwd_state()
89 if (sm->user == NULL || sm->user->password == NULL || in eap_pwd_init()
[all …]
/freebsd/usr.sbin/mountd/
H A Dmountd.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
64 #include <grp.h>
349 * which is a de-quoted version of the string if necessary.
371 * we take the next character as-is, without checking in strsep_quote()
416 * and "-n" to allow nonroot mount.
450 if (tngroups_max == -1) in main()
464 while ((c = getopt(argc, argv, "2Aadeh:lNnp:RrSs")) != -1) in main()
476 /* now a no-op, since this is the default */ in main()
515 hosts[nhosts - 1] = strdup(optarg); in main()
[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
156 All of these functions are reentrant but not thread-safe.
163 .Nm system.grp
165 .Bd -literal
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");
[all …]
/freebsd/usr.bin/newgrp/
H A Dnewgrp.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
30 * newgrp -- change to a new group
37 #include <grp.h>
83 while ((ch = getopt(argc, argv, "-l")) != -1) { in main()
85 case '-': /* Obsolescent */ in main()
93 argc -= optind; in main()
125 fprintf(stderr, "usage: newgrp [-l] [group]\n"); in usage()
135 initres = initgroups(pwd->pw_name, pwd->pw_gid); in restoregrps()
136 setres = setgid(pwd->pw_gid); in restoregrps()
[all …]
/freebsd/sys/netinet/
H A Din_pcb.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
6 * Copyright (c) 2007-2009 Robert N. M. Watson
7 * Copyright (c) 2010-2011 Juniper Networks, Inc.
8 * Copyright (c) 2021-2022 Gleb Smirnoff <glebius@FreeBSD.org>
120 VNET_DEFINE(int, ipport_lowfirstauto) = IPPORT_RESERVED - 1; /* 1023 */
132 VNET_DEFINE(int, ipport_reservedhigh) = IPPORT_RESERVED - 1; /* 1023 */
155 RANGECHK(V_ipport_lowfirstauto, 1, IPPORT_RESERVED - 1); in sysctl_net_ipport_check()
156 RANGECHK(V_ipport_lowlastauto, 1, IPPORT_RESERVED - 1); in sysctl_net_ipport_check()
259 struct inpcblbgroup *grp; in in_pcblbgroup_alloc() local
[all …]
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dsz.h57 pszind_t x = lg_floor((psz<<1)-1); in sz_psz2ind()
59 0 : x - (SC_LG_NGROUP + LG_PAGE); in sz_psz2ind()
60 pszind_t grp = shift << SC_LG_NGROUP; in sz_psz2ind() local
63 LG_PAGE : x - SC_LG_NGROUP - 1; in sz_psz2ind()
65 size_t delta_inverse_mask = ZU(-1) << lg_delta; in sz_psz2ind()
66 pszind_t mod = ((((psz-1) & delta_inverse_mask) >> lg_delta)) & in sz_psz2ind()
67 ((ZU(1) << SC_LG_NGROUP) - 1); in sz_psz2ind()
69 pszind_t ind = grp + mod; in sz_psz2ind()
78 size_t grp = pind >> SC_LG_NGROUP; in sz_pind2sz_compute() local
79 size_t mod = pind & ((ZU(1) << SC_LG_NGROUP) - 1); in sz_pind2sz_compute()
[all …]

12345678910>>...18