summaryrefslogtreecommitdiffstats
path: root/share/man/man9/ucred.9
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2002-03-03 03:27:28 +0000
committerdd <dd@FreeBSD.org>2002-03-03 03:27:28 +0000
commit0b0f95c996a65fe36cd196f1007df7629f36a48e (patch)
tree5f805ee7cccc96ac34ec6c246477b7bd7e7d451e /share/man/man9/ucred.9
parent431516592f9204a7b18fa5bfb5722d5a2434e356 (diff)
downloadFreeBSD-src-0b0f95c996a65fe36cd196f1007df7629f36a48e.zip
FreeBSD-src-0b0f95c996a65fe36cd196f1007df7629f36a48e.tar.gz
Document cru2x().
Diffstat (limited to 'share/man/man9/ucred.9')
-rw-r--r--share/man/man9/ucred.927
1 files changed, 25 insertions, 2 deletions
diff --git a/share/man/man9/ucred.9 b/share/man/man9/ucred.9
index 1911dbf..73fac3c 100644
--- a/share/man/man9/ucred.9
+++ b/share/man/man9/ucred.9
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 9, 2001
+.Dd March 3, 2002
.Dt UCRED 9
.Os
.Sh NAME
@@ -36,7 +36,8 @@
.Nm crfree ,
.Nm crshared ,
.Nm crcopy ,
-.Nm crdup
+.Nm crdup ,
+.Nm cru2x
.Nd "functions related to user credentials"
.Sh SYNOPSIS
.In sys/param.h
@@ -53,6 +54,8 @@
.Fn crcopy "struct ucred *dest" "struct ucred *src"
.Ft "struct ucred *"
.Fn crdup "struct ucred *cr"
+.Ft void
+.Fn cru2x "struct ucred *cr" "struct xucred *xcr"
.Sh DESCRIPTION
The
.Nm
@@ -99,6 +102,26 @@ contents of
into it.
The actual copying is performed by
.Fn crcopy .
+.Pp
+The
+.Fn cru2x
+function converts a
+.Vt ucred
+structure to an
+.Vt xucred
+structure.
+That is,
+it copies data from
+.Fa cr
+to
+.Fa xcr ;
+it ignores fields in the former that are not present in the latter
+(e.g.,
+.Va cr_uidinfo ) ,
+and appropriately sets fields in the latter that are not present in
+the former
+(e.g.,
+.Va cr_version ) .
.Sh RETURN VALUES
The functions that return values all return a pointer to a
.Vt ucred
OpenPOWER on IntegriCloud