Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / afs / SOLARIS / osi_gcpags.c
blob1b12cab944e88a2d8ccacb68aa00c74d362ebe4a
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 /* afs_osi_TraverseProcTable() - Walk through the systems process
20 * table, calling afs_GCPAGs_perproc_func() for each process.
23 void
24 afs_osi_TraverseProcTable(void)
26 afs_proc_t *prp;
27 for (prp = practive; prp != NULL; prp = prp->p_next) {
28 afs_GCPAGs_perproc_func(prp);
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.
36 const afs_ucred_t *
37 afs_osi_proc2cred(afs_proc_t * pr)
39 afs_ucred_t *rv = NULL;
41 if (pr == NULL) {
42 return NULL;
44 rv = pr->p_cred;
46 return rv;
49 #endif /* AFS_GCPAGS */