Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / afs / UKERNEL / osi_gcpags.c
blob96ebfe4564bfca0807ba4f3466bed7c9a14825c2
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
10 #include <afsconfig.h>
11 #include "afs/param.h"
13 #include "afs/sysincludes.h" /* Standard vendor system headers */
14 #include "afsincludes.h" /* Afs-based standard headers */
15 #include "afs/afs_stats.h" /* afs statistics */
17 #if AFS_GCPAGS
19 /* return a pointer (sometimes a static copy ) to the cred for a
20 * given afs_proc_t.
21 * subsequent calls may overwrite the previously returned value.
25 const afs_ucred_t *
26 afs_osi_proc2cred(afs_proc_t * pr)
28 afs_ucred_t *rv = NULL;
30 if (pr == NULL) {
31 return NULL;
33 rv = pr->p_cred;
35 return rv;
38 #endif /* AFS_GCPAGS */