Annotation of researchv10no/libc/gen/setlimits.c, revision 1.1.1.1

1.1       root        1: /*LINTLIBRARY*/
                      2: 
                      3: /*
                      4: **     Install lnode pointed at by arg.
                      5: **
                      6: **     If this lnode is a member of a group, install the group first, recursively.
                      7: **
                      8: **     Returns 0 for success, or SYSERROR.
                      9: */ 
                     10: 
                     11: #include       <shares.h>
                     12: 
                     13: 
                     14: 
                     15: setlimits(lp)
                     16:        register struct lnode * lp;
                     17: {
                     18:        struct lnode            gl;
                     19: 
                     20:        if ( lp->l_group != 0 )
                     21:        {
                     22:                if ( getshares(&gl, lp->l_group, 0) == 0 )
                     23:                        lp->l_group = 0;
                     24:                else
                     25:                if ( setlimits(&gl) == SYSERROR )
                     26:                        return SYSERROR;
                     27:        }
                     28: 
                     29:        return limits(lp, L_SETLIM);
                     30: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.