Move contents of afs_osi_gcpags to per-OS files
[openafs.git] / src / afs / DFBSD / osi_gcpags.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
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  */
9
10 #include <afsconfig.h>
11 #include "afs/param.h"
12
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 */
16
17 #if AFS_GCPAGS
18
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.
22  */
23
24 const afs_ucred_t *
25 afs_osi_proc2cred(afs_proc_t * pr)
26 {
27     afs_ucred_t *rv = NULL;
28
29     if (pr == NULL) {
30         return NULL;
31     }
32     rv = pr->p_cred;
33
34     return rv;
35 }
36
37 #endif /* AFS_GCPAGS */
38