Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afs / OBSD / osi_gcpags.c
CommitLineData
805e021f
CE
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
25const afs_ucred_t *
26afs_osi_proc2cred(afs_proc_t * pr)
27{
28 afs_ucred_t *rv = NULL;
29
30 if (pr == NULL) {
31 return NULL;
32 }
33 rv = pr->p_cred;
34
35 return rv;
36}
37
38#endif /* AFS_GCPAGS */