reindent-20030715
[openafs.git] / src / afs / NBSD / osi_misc.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 /* 
11  * osi_misc.c
12  *
13  * Implements:
14  * afs_suser
15  */
16
17 #include <afsconfig.h>
18 #include "afs/param.h"
19
20 RCSID
21     ("$Header$");
22
23 #include "afs/sysincludes.h"    /* Standard vendor system headers */
24 #include "afsincludes.h"        /* Afs-based standard headers */
25
26 /*
27  * afs_suser() returns true if the caller is superuser, false otherwise.
28  *
29  * Note that it must NOT set errno.
30  */
31
32 afs_suser()
33 {
34     int error;
35
36     if (suser(curproc) == 0) {
37         return (1);
38     }
39     return (0);
40 }