|
|
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 <sys/types.h>
12: #include <sys/lnode.h>
13: #include <shares.h>
14:
15:
16:
17: setlimits(lp)
18: register struct lnode * lp;
19: {
20: struct lnode gl;
21:
22: if ( lp->l_group != 0 )
23: {
24: if ( getshares(&gl, lp->l_group, 0) == 0 )
25: lp->l_group = 0;
26: else
27: if ( setlimits(&gl) == SYSERROR )
28: return SYSERROR;
29: }
30:
31: return limits(lp, L_SETLIM);
32: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.