Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afs / SOLARIS / 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 /* afs_osi_TraverseProcTable() - Walk through the systems process
20 * table, calling afs_GCPAGs_perproc_func() for each process.
21 */
22
23 void
24 afs_osi_TraverseProcTable(void)
25 {
26 afs_proc_t *prp;
27 for (prp = practive; prp != NULL; prp = prp->p_next) {
28 afs_GCPAGs_perproc_func(prp);
29 }
30 }
31
32 /* return a pointer (sometimes a static copy ) to the cred for a
33 * given afs_proc_t.
34 * subsequent calls may overwrite the previously returned value.
35 */
36 const afs_ucred_t *
37 afs_osi_proc2cred(afs_proc_t * pr)
38 {
39 afs_ucred_t *rv = NULL;
40
41 if (pr == NULL) {
42 return NULL;
43 }
44 rv = pr->p_cred;
45
46 return rv;
47 }
48
49 #endif /* AFS_GCPAGS */