|
|
1.1 root 1: .TH SETLIMITS 3 SHARE
2: .SH NAME
3: setlimits \- set limits structure
4: .SH SYNOPSIS
5: .B #include <sys/types.h>
6: .br
7: .B #include <sys/lnode.h>
8: .P
9: .B setlimits(limits)
10: .br
11: .B struct lnode *limits;
12: .SH DESCRIPTION
13: This library routine sets an in\-core limits structure.
14: If necessary, it also sets any group limits structures.
15: .I Limits
16: points to an
17: .IR lnode .
18: .PP
19: The
20: .I lnode
21: pointed to by the argument
22: .I limits
23: is first examined to see if its scheduling group is
24: .IR root .
25: If not,
26: the
27: .I lnode
28: for the group is obtained (via
29: .IR getshares (3))
30: and passed to a recursive call to
31: .IR setlimits .
32: Finally the original
33: .I lnode
34: is set with the
35: .SM L_SETLIM
36: call to the
37: .IR limits (2)
38: system call.
39: .PP
40: If the details for any group encountered cannot be found in the
41: .I limits
42: data-base, then the group is set to
43: .IR root .
44: .PP
45: Note that the
46: .I /etc/shares
47: file may be left open by this routine.
48: .SH DIAGNOSTICS
49: As for the
50: .IR limits (2)
51: system call.
52: .P
53: Any error cause a -1 to be returned.
54: .SH "SEE ALSO"
55: limits(2),
56: closeshares(3),
57: getshares(3),
58: setupshares(3).
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.