Searched refs:grp (Results 1 - 25 of 151) sorted by relevance

1234567

/openbsd-current/gnu/usr.bin/perl/cpan/libnet/t/
H A Dnntp.t40 my @grp;
41 foreach my $grp (qw(test alt.test control news.announce.newusers)) {
42 @grp = $nntp->group($grp);
43 last if @grp;
52 print "not " unless @grp;
56 if(@grp && $grp[2] > $grp[1]) {
57 $nntp->head($grp[
[all...]
/openbsd-current/regress/lib/libpthread/group/
H A Dgroup.c10 #include <grp.h>
33 struct group *grp; local
53 CHECKr(getgrgid_r(gid, &grpbuf, buffer, sizeof(buffer), &grp));
56 ASSERT(grp->gr_name != fail);
59 ASSERT(grp->gr_gid == gid);
65 strlcpy(oname = s, grp->gr_name, len);
70 strlcpy(opasswd = s, grp->gr_passwd, len);
75 ogid = grp->gr_gid;
78 for (i = 0, p = grp->gr_mem; *p; p++) {
87 printf("now: %s:%s:%d:", grp
[all...]
/openbsd-current/lib/libc/hidden/
H A Dgrp.h1 /* $OpenBSD: grp.h,v 1.3 2018/09/13 12:31:15 millert Exp $ */
21 #include_next <grp.h>
/openbsd-current/usr.sbin/ypserv/revnetgroup/
H A Dparse_netgroup.c172 struct netgrp *grp; local
202 grp = malloc(sizeof(struct netgrp));
203 bzero(grp, sizeof(struct netgrp));
204 grp->ng_next = grouphead.gr;
205 grouphead.gr = grp;
224 grp->ng_str[strpos] = malloc(len + 1);
225 bcopy(spos, grp->ng_str[strpos],
235 grp->ng_str[strpos] = NULL;
247 grp->ng_str[NG_HOST] == NULL ? "" : grp
[all...]
/openbsd-current/gnu/usr.bin/binutils-2.17/opcodes/
H A Dmaxq-dis.c304 group_info grp)
337 if ((grp.flag & BIT_NO) == BIT_NO)
338 info->fprintf_func (info->stream, ".%d", grp.bit_no);
361 /* && condition with sec part added on 26 May for resolving 2 & 3 grp
560 group_info grp; local
579 get_insn_opcode (((insn[0] << 8) | (insn[1])), &grp);
581 get_insn_opcode (((insn[1] << 8) | (insn[0])), &grp);
583 derived_code = ((grp.group_no << 4) | grp.sub_opcode);
598 if ((grp
302 maxq_print_arg(MAX_ARG_TYPE arg, struct disassemble_info * info, group_info grp) argument
[all...]
/openbsd-current/sbin/mountd/
H A Dmountd.c56 #include <grp.h>
980 struct grouplist *grp; local
1000 grp = hp->ht_grp;
1001 if (grp->gr_type == GT_HOST) {
1004 strp = grp->gr_ptr.gt_hostent->h_name;
1008 } else if (grp->gr_type == GT_NET) {
1011 strp = grp->gr_ptr.gt_net.nt_name;
1051 struct grouplist *grp, *tgrp; local
1073 grp = grphead;
1074 while (grp) {
1444 getexp_err(struct exportlist *ep, struct grouplist *grp) argument
1502 hang_dirp(struct dirlist *dp, struct grouplist *grp, struct exportlist *ep, int flags) argument
1540 add_dlist(struct dirlist **dpp, struct dirlist *newdp, struct grouplist *grp, int flags) argument
1607 struct grouplist *grp; local
1682 do_opt(char **cpp, char **endcpp, struct exportlist *ep, struct grouplist *grp, int *has_hostp, int *exflagsp, struct xucred *cr) argument
1776 get_host(char *cp, struct grouplist *grp, struct grouplist *tgrp) argument
1913 do_mount(struct exportlist *ep, struct grouplist *grp, int exflags, struct xucred *anoncrp, char *dirp, int dirplen) argument
2336 free_grp(struct grouplist *grp) argument
[all...]
/openbsd-current/lib/libc/gen/
H A Dgetgrouplist.c41 #include <grp.h>
151 struct group *grp; local
166 while ((grp = _getgrent_yp(skipyp)) || foundyp) {
175 if (grp->gr_gid == agroup)
178 if (groups[i] == grp->gr_gid)
182 for (i = 0; grp->gr_mem[i]; i++) {
183 if (!strcmp(grp->gr_mem[i], uname)) {
188 groups[ngroups++] = grp->gr_gid;
H A Dgetnetgrent.c356 addgroup(char *ypdom, struct stringlist *sl, char *grp) argument
363 (void) fprintf(stderr, "addgroup(%s)\n", grp);
366 if (_ng_sl_find(sl, grp) != NULL) {
367 warnx("netgroup: Cycle in group `%s'", grp);
368 free(grp);
371 if (_ng_sl_add(sl, grp) == -1) {
372 free(grp);
377 if (!lookup(ypdom, grp, &line, _NG_KEYBYNAME))
435 in_find(char *ypdom, struct stringlist *sl, char *grp, const char *host, argument
444 (void) fprintf(stderr, "in_find(%s)\n", grp);
674 innetgr(const char *grp, const char *host, const char *user, const char *domain) argument
[all...]
H A Dgetgrent.c38 #include <grp.h>
129 getgrnam_r(const char *name, struct group *grp, char *buffer, argument
139 *result = getgrnam_gs(name, grp, (struct group_storage *)buffer);
177 getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, argument
187 *result = getgrgid_gs(gid, grp, (struct group_storage *)buffer);
/openbsd-current/usr.bin/ssh/
H A Dsshpty.c21 #include <grp.h>
137 struct group *grp; local
143 grp = getgrnam("tty");
144 if (grp == NULL)
146 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
147 mode = (grp != NULL) ? 0620 : 0600;
H A Dgroupaccess.c28 #include <grp.h>
/openbsd-current/sys/arch/octeon/dev/
H A Dcn30xxpowvar.h163 int grp, /* 0-7 */
180 __BITS64_SET(POW_STORE_DATA_GRP, grp) |
199 0, /* grp (not used for SWTAG) */
208 cn30xxpow_ops_swtag_full(paddr_t addr, int grp, int type, uint32_t tag) argument
217 grp,
225 cn30xxpow_ops_swtag_desched(int no_sched, int grp, int type, uint32_t tag) argument
234 grp,
251 0, /* grp (not used for DESCHED) */
259 cn30xxpow_ops_addwq(paddr_t addr, int qos, int grp, int type, uint32_t tag) argument
268 grp,
156 cn30xxpow_store( int subdid, uint64_t addr, int no_sched, int index, int op, int qos, int grp, int type, uint32_t tag) argument
276 cn30xxpow_ops_upd_wqp_grp(paddr_t addr, int grp) argument
[all...]
/openbsd-current/usr.sbin/chroot/
H A Dchroot.c36 #include <grp.h>
52 struct group *grp; local
100 if ((grp = getgrnam(group)) == NULL)
102 gidlist[ngids++] = grp->gr_gid;
/openbsd-current/usr.bin/wall/
H A Dwall.c45 #include <grp.h>
88 struct group *grp; local
103 if ((grp = getgrnam(optarg)) == NULL)
105 addgroup(grp, optarg);
261 addgroup(struct group *grp, char *name) argument
266 for (i = 0; grp->gr_mem[i]; i++)
272 g->gid = grp->gr_gid;
277 for (i = 0; grp->gr_mem[i] != NULL; i++) {
278 g->mem[i] = strdup(grp->gr_mem[i]);
/openbsd-current/usr.bin/rsync/
H A Dids.c18 #include <grp.h>
104 struct group *grp; local
118 grp = getgrnam(ids[i].name);
119 if (grp) {
120 id = grp->gr_gid;
160 struct group *grp; local
181 if ((grp = getgrgid((gid_t)id)) == NULL) {
185 name = grp->gr_name;
/openbsd-current/usr.bin/showmount/
H A Dshowmount.c96 struct grouplist *grp; local
208 grp = exp->ex_groups;
209 if (grp == NULL) {
212 while (grp) {
213 strnvis(vn, grp->gr_name, sizeof vn,
216 grp = grp->gr_next;
/openbsd-current/usr.sbin/mrouted/
H A Dkern.c68 void k_join(u_int32_t grp, u_int32_t ifa) argument
72 mreq.imr_multiaddr.s_addr = grp;
78 inet_fmt(grp, s1), inet_fmt(ifa, s2));
82 void k_leave(u_int32_t grp, u_int32_t ifa) argument
86 mreq.imr_multiaddr.s_addr = grp;
92 inet_fmt(grp, s1), inet_fmt(ifa, s2));
/openbsd-current/lib/libkeynote/
H A Dkeynote.y492 char grp[10], *gr;
504 memset(grp, 0, sizeof(grp));
522 snprintf(grp, sizeof grp, "%lu",
524 if (keynote_env_add("_0", grp, &keynote_temp_list,
547 snprintf(grp, sizeof grp, "_%d", i);
548 if (keynote_env_add(grp, gr, &keynote_temp_list,
/openbsd-current/libexec/login_token/
H A Dtokendb.c46 #include <grp.h>
166 struct group *grp; local
169 if ((grp = getgrnam(TOKEN_GROUP)) == NULL) {
184 if (statb.st_uid != 0 || statb.st_gid != grp->gr_gid) {
217 if (must_set_perms && fchown((tokendb->fd)(tokendb), 0, grp->gr_gid))
/openbsd-current/usr.bin/quota/
H A Dquota.c49 #include <grp.h>
226 struct group *grp = getgrgid(gid); local
232 if (grp == NULL)
235 name = grp->gr_name;
260 struct group *grp = getgrnam(name); local
265 if (grp == NULL) {
275 if (grp->gr_gid != mygid) {
277 if (grp->gr_gid == gidset[i])
281 grp->gr_name, grp
[all...]
/openbsd-current/usr.bin/find/
H A Dls.c43 #include <grp.h>
/openbsd-current/distrib/special/doas/
H A Ddoas.c28 #include <grp.h>
/openbsd-current/regress/sys/kern/ptmget/
H A Dptmget.c15 #include <grp.h>
/openbsd-current/usr.sbin/user/
H A Duser.c41 #include <grp.h>
576 struct group *grp; local
598 if ((grp = getgrnam(groups[i])) == NULL) {
602 for (j = 0 ; grp->gr_mem[j] ; j++) {
603 if (strcmp(user, grp->gr_mem[j]) == 0) {
1025 struct group *grp; local
1029 if ((grp = getgrnam(name)) == NULL) {
1032 grp = getgrgid(gid);
1034 return grp;
1041 struct group *grp; local
1447 struct group *grp; local
2270 struct group *grp; local
2359 struct group *grp; local
2421 struct group *grp; local
[all...]
/openbsd-current/lib/libutil/
H A Dpty.c41 #include <grp.h>

Completed in 325 milliseconds

1234567