# 2.11BSD#431 - /usr/src/lib/libc/gen/getgrnam.c

##### Functions

    getgrnam          X

       1: #if defined(LIBC_SCCS) && !defined(lint)
       2: static char sccsid[] = "@(#)getgrnam.c	5.2 (Berkeley) 3/9/86";
       3: #endif LIBC_SCCS and not lint
       4:
       5: #include <grp.h>
       6:
       7: struct group *
       8: getgrnam(name)
       9: register char *name;
      10: {
      11:     register struct group *p;
      12:     struct group *getgrent();
      13:
      14:     setgrent();
      15:     while( (p = getgrent()) && strcmp(p->gr_name,name) );
      16:     endgrent();
      17:     return(p);
      18: }

#### Defined functions

getgrnam defined in line 7; used 24 times

- in /usr/include/grp.h line 10
- in /usr/src/bin/chgrp.c line 24, 70
- in /usr/src/bin/chpass/field.c line 118
- in /usr/src/bin/login/login.c line 379
- in /usr/src/include/grp.h line 10
- in /usr/src/libexec/identd/src/identd.c line 367
- in /usr/src/libexec/tcpd/options.c line 250-252(2)
- in /usr/src/new/notes/src/access.c line 53, 186
- in /usr/src/new/notes/src/acssort.c line 206
- in /usr/src/new/notes/src/nfaccess.c line 28
- in /usr/src/old/dump/dumpoptr.c line 4, 100
- in /usr/src/sbin/dump/dumpoptr.c line 7, 104
- in /usr/src/sbin/quotacheck/quotacheck.c line 372
- in /usr/src/ucb/rdist/server.c line 1036
- in /usr/src/usr.bin/find/find.c line 1052-1054(2)
- in /usr/src/usr.bin/xinstall/xinstall.c line 123
- in /usr/src/usr.sbin/chown/chown.c line 73
- in /usr/src/usr.sbin/lpr/lpr.c line 225

#### Defined variables

sccsid defined in line 2; never used

Last modified: 1986-03-10 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 493 |