Deleted Added
full compact
ucred.9 (98081) ucred.9 (99576)
1.\"
2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
1.\"
2.\" Copyright (C) 2001 Chad David <davidc@acns.ab.ca>. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice(s), this list of conditions and the following disclaimer as

--- 10 unchanged lines hidden (view full) ---

19.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25.\" DAMAGE.
26.\"
27.\" $FreeBSD: head/share/man/man9/ucred.9 98081 2002-06-10 05:18:00Z davidc $
27.\" $FreeBSD: head/share/man/man9/ucred.9 99576 2002-07-08 07:34:46Z julian $
28.\"
29.Dd March 3, 2002
30.Dt UCRED 9
31.Os
32.Sh NAME
33.Nm ucred ,
34.Nm crget ,
35.Nm crhold ,

--- 102 unchanged lines hidden (view full) ---

138.Fn crdup
139all return a pointer to a
140.Vt ucred
141structure.
142.Pp
143.Fn crshared
144returns 0 if the credential has a reference count greater than 1;
145otherwise, 1 is returned.
28.\"
29.Dd March 3, 2002
30.Dt UCRED 9
31.Os
32.Sh NAME
33.Nm ucred ,
34.Nm crget ,
35.Nm crhold ,

--- 102 unchanged lines hidden (view full) ---

138.Fn crdup
139all return a pointer to a
140.Vt ucred
141structure.
142.Pp
143.Fn crshared
144returns 0 if the credential has a reference count greater than 1;
145otherwise, 1 is returned.
146.Sh USAGE NOTES
147In general in a system call,
148you should always use the
149.Vt ucred
150associated with the
151thread doing the work rather than that of the process attached to it,
152As that associated with the thread is guaranteed to be safely accessed
153under SMP, and will remain stable for the duration of the call, even
154in the face of a multithreaded application changing the process credentials
155from another thread.
146.Sh SEE ALSO
147.Xr uihold 9
148.Sh AUTHORS
149This man page was written by
150.An Chad David Aq davidc@acns.ab.ca .
156.Sh SEE ALSO
157.Xr uihold 9
158.Sh AUTHORS
159This man page was written by
160.An Chad David Aq davidc@acns.ab.ca .