| /openbsd-src/gnu/usr.bin/perl/cpan/libnet/t/ |
| H A D | nntp.t | 40 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[1]) or print "not "; 61 if(@grp) {
|
| /openbsd-src/regress/lib/libpthread/group/ |
| H A D | group.c | 33 struct group *grp; in test() local 53 CHECKr(getgrgid_r(gid, &grpbuf, buffer, sizeof(buffer), &grp)); in test() 56 ASSERT(grp->gr_name != fail); in test() 59 ASSERT(grp->gr_gid == gid); in test() 65 strlcpy(oname = s, grp->gr_name, len); in test() 70 strlcpy(opasswd = s, grp->gr_passwd, len); in test() 75 ogid = grp->gr_gid; in test() 78 for (i = 0, p = grp->gr_mem; *p; p++) { in test() 87 printf("now: %s:%s:%d:", grp->gr_name, grp->gr_passwd, grp->gr_gid); in test() 88 for (p = grp->gr_mem; *p; p++) in test() [all …]
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/opcodes/ |
| H A D | maxq-dis.c | 304 group_info grp) in maxq_print_arg() argument 337 if ((grp.flag & BIT_NO) == BIT_NO) in maxq_print_arg() 338 info->fprintf_func (info->stream, ".%d", grp.bit_no); in maxq_print_arg() 560 group_info grp; in print_insn() local 579 get_insn_opcode (((insn[0] << 8) | (insn[1])), &grp); in print_insn() 581 get_insn_opcode (((insn[1] << 8) | (insn[0])), &grp); in print_insn() 583 derived_code = ((grp.group_no << 4) | grp.sub_opcode); in print_insn() 598 if ((grp.bit_no == 0) && (opcode->arg[1] != A_BIT_0)) in print_insn() 600 if ((grp.bit_no == 1) && (opcode->arg[1] != A_BIT_1)) in print_insn() 602 if ((grp.bit_no == 3) && (opcode->arg[0] != 0)) in print_insn() [all …]
|
| /openbsd-src/sbin/mountd/ |
| H A D | mountd.c | 56 #include <grp.h> 995 struct grouplist *grp; in put_exlist() 1015 grp = hp->ht_grp; in put_exlist() 1016 if (grp->gr_type == GT_HOST) { in put_exlist() 1019 strp = grp->gr_ptr.gt_hostent->h_name; in put_exlist() 1023 } else if (grp->gr_type == GT_NET) { in put_exlist() 1026 strp = grp->gr_ptr.gt_net.nt_name; in put_exlist() 1066 struct grouplist *grp, *tgrp; in get_exportlist() 1088 grp = grphead; in get_exportlist() 1089 while (grp) { in get_exportlist() 980 struct grouplist *grp; put_exlist() local 1051 struct grouplist *grp, *tgrp; get_exportlist() local 1444 getexp_err(struct exportlist * ep,struct grouplist * grp) getexp_err() argument 1502 hang_dirp(struct dirlist * dp,struct grouplist * grp,struct exportlist * ep,int flags) hang_dirp() argument 1540 add_dlist(struct dirlist ** dpp,struct dirlist * newdp,struct grouplist * grp,int flags) add_dlist() argument 1607 struct grouplist *grp; chk_host() local 1682 do_opt(char ** cpp,char ** endcpp,struct exportlist * ep,struct grouplist * grp,int * has_hostp,int * exflagsp,struct xucred * cr) do_opt() argument 1776 get_host(char * cp,struct grouplist * grp,struct grouplist * tgrp) get_host() argument 1913 do_mount(struct exportlist * ep,struct grouplist * grp,int exflags,struct xucred * anoncrp,char * dirp,int dirplen) do_mount() argument 2336 free_grp(struct grouplist * grp) free_grp() argument [all...] |
| /openbsd-src/usr.sbin/ypserv/revnetgroup/ |
| H A D | parse_netgroup.c | 172 struct netgrp *grp; in parse_netgrp() local 202 grp = malloc(sizeof(struct netgrp)); in parse_netgrp() 203 bzero(grp, sizeof(struct netgrp)); in parse_netgrp() 204 grp->ng_next = grouphead.gr; in parse_netgrp() 205 grouphead.gr = grp; in parse_netgrp() 224 grp->ng_str[strpos] = malloc(len + 1); in parse_netgrp() 225 bcopy(spos, grp->ng_str[strpos], in parse_netgrp() 235 grp->ng_str[strpos] = NULL; in parse_netgrp() 247 grp->ng_str[NG_HOST] == NULL ? "" : grp in parse_netgrp() [all...] |
| /openbsd-src/lib/libc/gen/ |
| H A D | getnetgrent.c | 356 addgroup(char *ypdom, struct stringlist *sl, char *grp) in addgroup() argument 363 (void) fprintf(stderr, "addgroup(%s)\n", grp); in addgroup() 366 if (_ng_sl_find(sl, grp) != NULL) { in addgroup() 367 warnx("netgroup: Cycle in group `%s'", grp); in addgroup() 368 free(grp); in addgroup() 371 if (_ng_sl_add(sl, grp) == -1) { in addgroup() 372 free(grp); in addgroup() 377 if (!lookup(ypdom, grp, &line, _NG_KEYBYNAME)) in addgroup() 435 in_find(char *ypdom, struct stringlist *sl, char *grp, const char *host, in in_find() argument 444 (void) fprintf(stderr, "in_find(%s)\n", grp); in in_find() [all …]
|
| H A D | getgrouplist.c | 41 #include <grp.h> 151 struct group *grp; in getgrouplist() local 165 while ((grp = _getgrent_yp(skipyp)) || foundyp) { in getgrouplist() 174 if (grp->gr_gid == agroup) in getgrouplist() 178 if (groups[i] == grp->gr_gid) in getgrouplist() 183 for (i = 0; grp->gr_mem[i]; i++) { in getgrouplist() 184 if (!strcmp(grp->gr_mem[i], uname)) { in getgrouplist() 188 groups[ngroups++] = grp->gr_gid; in getgrouplist()
|
| H A D | getgrent.c | 129 getgrnam_r(const char *name, struct group *grp, char *buffer, in getgrnam_r() argument 139 *result = getgrnam_gs(name, grp, (struct group_storage *)buffer); in getgrnam_r() 177 getgrgid_r(gid_t gid, struct group *grp, char *buffer, size_t bufsize, in getgrgid_r() argument 187 *result = getgrgid_gs(gid, grp, (struct group_storage *)buffer); in getgrgid_r()
|
| /openbsd-src/sys/arch/octeon/dev/ |
| H A D | cn30xxpowvar.h | 163 int grp, /* 0-7 */ in cn30xxpow_store() argument 180 __BITS64_SET(POW_STORE_DATA_GRP, grp) | in cn30xxpow_store() 208 cn30xxpow_ops_swtag_full(paddr_t addr, int grp, int type, uint32_t tag) in cn30xxpow_ops_swtag_full() argument 217 grp, in cn30xxpow_ops_swtag_full() 225 cn30xxpow_ops_swtag_desched(int no_sched, int grp, int type, uint32_t tag) in cn30xxpow_ops_swtag_desched() argument 234 grp, in cn30xxpow_ops_swtag_desched() 259 cn30xxpow_ops_addwq(paddr_t addr, int qos, int grp, int type, uint32_t tag) in cn30xxpow_ops_addwq() argument 268 grp, in cn30xxpow_ops_addwq() 276 cn30xxpow_ops_upd_wqp_grp(paddr_t addr, int grp) in cn30xxpow_ops_upd_wqp_grp() argument 285 grp, in cn30xxpow_ops_upd_wqp_grp()
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | sshpty.c | 137 struct group *grp; in pty_setowner() local 143 grp = getgrnam("tty"); in pty_setowner() 144 if (grp == NULL) in pty_setowner() 146 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; in pty_setowner() 147 mode = (grp != NULL) ? 0620 : 0600; in pty_setowner()
|
| /openbsd-src/usr.bin/wall/ |
| H A D | wall.c | 88 struct group *grp; in main() local 103 if ((grp = getgrnam(optarg)) == NULL) in main() 105 addgroup(grp, optarg); in main() 261 addgroup(struct group *grp, char *name) in addgroup() argument 266 for (i = 0; grp->gr_mem[i]; i++) in addgroup() 272 g->gid = grp->gr_gid; in addgroup() 277 for (i = 0; grp->gr_mem[i] != NULL; i++) { in addgroup() 278 g->mem[i] = strdup(grp->gr_mem[i]); in addgroup()
|
| /openbsd-src/usr.bin/rsync/ |
| H A D | ids.c | 104 struct group *grp; in idents_remap() local 118 grp = getgrnam(ids[i].name); in idents_remap() 119 if (grp) { in idents_remap() 120 id = grp->gr_gid; in idents_remap() 160 struct group *grp; in idents_add() local 181 if ((grp = getgrgid((gid_t)id)) == NULL) { in idents_add() 185 name = grp->gr_name; in idents_add()
|
| /openbsd-src/usr.sbin/mrouted/ |
| H A D | kern.c | 68 void k_join(u_int32_t grp, u_int32_t ifa) in k_join() argument 72 mreq.imr_multiaddr.s_addr = grp; in k_join() 78 inet_fmt(grp, s1), inet_fmt(ifa, s2)); in k_join() 82 void k_leave(u_int32_t grp, u_int32_t ifa) in k_leave() argument 86 mreq.imr_multiaddr.s_addr = grp; in k_leave() 92 inet_fmt(grp, s1), inet_fmt(ifa, s2)); in k_leave()
|
| H A D | defs.h | 249 extern void k_join(u_int32_t grp, u_int32_t ifa); 250 extern void k_leave(u_int32_t grp, u_int32_t ifa); 264 u_int32_t grp);
|
| /openbsd-src/usr.bin/showmount/ |
| H A D | showmount.c | 96 struct grouplist *grp; in main() local 208 grp = exp->ex_groups; in main() 209 if (grp == NULL) { in main() 212 while (grp) { in main() 213 strnvis(vn, grp->gr_name, sizeof vn, in main() 216 grp = grp->gr_next; in main()
|
| /openbsd-src/usr.sbin/user/ |
| H A D | user.c | 576 struct group *grp; in append_group() local 598 if ((grp = getgrnam(groups[i])) == NULL) { in append_group() 602 for (j = 0 ; grp->gr_mem[j] ; j++) { in append_group() 603 if (strcmp(user, grp->gr_mem[j]) == 0) { in append_group() 1025 struct group *grp; in find_group_info() local 1029 if ((grp = getgrnam(name)) == NULL) { in find_group_info() 1032 grp = getgrgid(gid); in find_group_info() 1034 return grp; in find_group_info() 1041 struct group *grp; in adduser() local 1155 if ((grp = find_group_info(up->u_primgrp)) == NULL) { in adduser() [all …]
|
| /openbsd-src/usr.bin/quota/ |
| H A D | quota.c | 226 struct group *grp = getgrgid(gid); in showgid() local 232 if (grp == NULL) in showgid() 235 name = grp->gr_name; in showgid() 260 struct group *grp = getgrnam(name); in showgrpname() local 265 if (grp == NULL) { in showgrpname() 275 if (grp->gr_gid != mygid) { in showgrpname() 277 if (grp->gr_gid == gidset[i]) in showgrpname() 281 grp->gr_name, grp->gr_gid); in showgrpname() 285 showquotas(GRPQUOTA, grp->gr_gid, grp->gr_name); in showgrpname()
|
| /openbsd-src/lib/libkeynote/ |
| H A D | keynote.y | 492 char grp[10], *gr; variable 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-src/usr.sbin/chroot/ |
| H A D | chroot.c | 52 struct group *grp; in main() local 100 if ((grp = getgrnam(group)) == NULL) in main() 102 gidlist[ngids++] = grp->gr_gid; in main()
|
| /openbsd-src/libexec/login_token/ |
| H A D | tokendb.c | 166 struct group *grp; in tokendb_open() local 169 if ((grp = getgrnam(TOKEN_GROUP)) == NULL) { in tokendb_open() 184 if (statb.st_uid != 0 || statb.st_gid != grp->gr_gid) { in tokendb_open() 217 if (must_set_perms && fchown((tokendb->fd)(tokendb), 0, grp->gr_gid)) in tokendb_open()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/cpu/ |
| H A D | iq10.cpu | 570 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32AND) 576 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32ANDN) 582 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32OR) 594 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32RD) 600 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32RI) 612 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SA) 618 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SD) 624 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SI) 630 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SS) 636 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32XOR) [all …]
|
| /openbsd-src/gnu/usr.bin/binutils/cpu/ |
| H A D | iq10.cpu | 570 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32AND) 576 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32ANDN) 582 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32OR) 594 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32RD) 600 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32RI) 612 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SA) 618 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SD) 624 (+ OP_COP3 (f-rs 0) rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SI) 630 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32SS) 636 (+ OP_COP3 rs rt rd (f-cp-op 0) (f-cp-grp 2) FUNC10_CM32XOR) [all …]
|
| /openbsd-src/gnu/usr.bin/texinfo/m4/ |
| H A D | check-decl.m4 | 36 # include <grp.h> 73 AC_CHECK_HEADERS(grp.h memory.h pwd.h string.h strings.h stdlib.h \
|
| /openbsd-src/gnu/usr.bin/texinfo/util/ |
| H A D | texi-docstring-magic.el | 209 (defun texi-docstring-magic-texi (env grp name docstring args &optional endtext) 211 (concat "@def" env (if grp (concat " " grp) "") " " name
|
| /openbsd-src/gnu/usr.bin/perl/cpan/libnet/lib/Net/ |
| H A D | NNTP.pm | 272 my $grp = ${*$nntp}{'net_nntp_group'}; 274 return $grp 279 $newgrp = (defined($grp) and length($grp)) ? $grp : ""
|