diff options
author | davidc <davidc@FreeBSD.org> | 2002-06-10 05:18:00 +0000 |
---|---|---|
committer | davidc <davidc@FreeBSD.org> | 2002-06-10 05:18:00 +0000 |
commit | 9508c40671d1c4440e8da9877d59deaf7b60ae07 (patch) | |
tree | 357f0fcbb2788011011208e2452f453d414af878 | |
parent | dcf74a7fe19f15091b2be06c596ed050bad6017b (diff) | |
download | FreeBSD-src-9508c40671d1c4440e8da9877d59deaf7b60ae07.zip FreeBSD-src-9508c40671d1c4440e8da9877d59deaf7b60ae07.tar.gz |
Document the cred_update_thread() function, and fix the RETURN VALUES.
-rw-r--r-- | share/man/man9/ucred.9 | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/share/man/man9/ucred.9 b/share/man/man9/ucred.9 index 73fac3c..aa80cc9 100644 --- a/share/man/man9/ucred.9 +++ b/share/man/man9/ucred.9 @@ -37,7 +37,8 @@ .Nm crshared , .Nm crcopy , .Nm crdup , -.Nm cru2x +.Nm cru2x , +.NM cred_update_thread .Nd "functions related to user credentials" .Sh SYNOPSIS .In sys/param.h @@ -56,6 +57,8 @@ .Fn crdup "struct ucred *cr" .Ft void .Fn cru2x "struct ucred *cr" "struct xucred *xcr" +.Ft void +.Fn cred_update_thread "struct thread *td" .Sh DESCRIPTION The .Nm @@ -122,10 +125,24 @@ and appropriately sets fields in the latter that are not present in the former (e.g., .Va cr_version ) . +.Pp +The +.Fn cred_update_thread +function sets the credentials of +.Fa td +to that of its process, freeing its old credential if required. .Sh RETURN VALUES -The functions that return values all return a pointer to a +.Fn crget , +.Fn crhold +and +.Fn crdup +all return a pointer to a .Vt ucred structure. +.Pp +.Fn crshared +returns 0 if the credential has a reference count greater than 1; +otherwise, 1 is returned. .Sh SEE ALSO .Xr uihold 9 .Sh AUTHORS |