2 * Copyright 2000, International Business Machines Corporation and others.
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
13 * OpenBSD version of afs_osi_suser() by Jim Rees.
14 * See osi_machdep.h for afs_suser macro. It simply calls afs_osi_suser()
15 * with the creds of the current process.
18 #include <afsconfig.h>
19 #include "afs/param.h"
23 #include "afs/sysincludes.h" /* Standard vendor system headers */
24 #include "afs/afsincludes.h" /* Afs-based standard headers */
27 * afs_suser() returns true if the caller is superuser, false otherwise.
29 * Note that it must NOT set errno.
33 afs_osi_suser(void *credp)
35 return (suser((struct ucred *) credp, &curproc->p_acflag) ? 0 : 1);
39 afs_syscall_icreate(dev, near_inode, param1, param2, param3, param4, retval)
41 long dev, near_inode, param1, param2, param3, param4;
47 afs_syscall_iopen(dev, inode, usrmod, retval)
49 int dev, inode, usrmod;
55 afs_syscall_iincdec(dev, inode, inode_p1, amount)
56 int dev, inode, inode_p1, amount;