View | Details | Raw Unified | Return to bug 213527 | Differences between
and this patch

Collapse All | Expand All

(-)share/man/man9/ucred.9 (-2 / +14 lines)
Lines 32-37 Link Here
32
.Sh NAME
32
.Sh NAME
33
.Nm ucred ,
33
.Nm ucred ,
34
.Nm crget ,
34
.Nm crget ,
35
.Nm crextend ,
35
.Nm crhold ,
36
.Nm crhold ,
36
.Nm crfree ,
37
.Nm crfree ,
37
.Nm crshared ,
38
.Nm crshared ,
Lines 44-50 Link Here
44
.In sys/param.h
45
.In sys/param.h
45
.In sys/ucred.h
46
.In sys/ucred.h
46
.Ft "struct ucred *"
47
.Ft "struct ucred *"
47
.Fn crget void
48
.Fn crget "int ngroups"
49
.Ft void
50
.Fn crextend "struct ucred *cr, int n"
48
.Ft "struct ucred *"
51
.Ft "struct ucred *"
49
.Fn crhold "struct ucred *cr"
52
.Fn crhold "struct ucred *cr"
50
.Ft void
53
.Ft void
Lines 74-82 Link Here
74
.Fn crget
77
.Fn crget
75
function allocates memory
78
function allocates memory
76
for a new structure, sets its reference count to 1, and
79
for a new structure, sets its reference count to 1, and
77
initializes its lock.
80
initializes its lock.  Memory to hold
81
.Vt ngroups
82
is allocated.  Values less than 16 have no effect as that
83
is the minimum group buffer size used.
78
.Pp
84
.Pp
79
The
85
The
86
.Fn crextend
87
function increases the buffer size for holding groups to to
88
.Vt n
89
items.  Previously stored groups will be lost after this operation.
90
.Pp
91
The
80
.Fn crhold
92
.Fn crhold
81
function increases the reference count on the credential.
93
function increases the reference count on the credential.
82
.Pp
94
.Pp

Return to bug 213527