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

##### Functions

    getgrgid          X

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

#### Defined functions

getgrgid defined in line 7; used 23 times

- in /usr/include/grp.h line 10
- in /usr/src/bin/chgrp.c line 24, 66
- in /usr/src/bin/ls/ls.c line 693
- in /usr/src/bin/su.c line 80
- in /usr/src/include/grp.h line 10
- in /usr/src/libexec/identd/src/parse.c line 554
- in /usr/src/local/afio/afio.c line 295, 2569
- in /usr/src/new/crash/crashsubs.c line 559-561(2)
- in /usr/src/new/notes/src/perms.c line 48, 81
- in /usr/src/ucb/rdist/server.c line 298, 1035
- in /usr/src/usr.bin/id/id.c line 115, 178, 207-211(2), 222, 240, 250, 279

#### 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: 589 |