/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#include <sys/lock.h>
#include <sys/time.h>
-#if defined(AFS_FBSD50_ENV)
#include <sys/mutex.h>
-#endif
#include <sys/vnode.h>
#if defined(AFS_FBSD80_ENV)
#include <sys/priv.h>
#endif
-/*
+/*
* Time related macros
*/
#define osi_Time() time_second
#define iodone biodone
#endif
+#ifdef AFS_FBSD80_ENV
#define VSUID S_ISUID
#define VSGID S_ISGID
+#endif
#define osi_vnhold(avc,r) vref(AFSTOV(avc))
#else
#define osi_vinvalbuf(vp, flags, slpflag, slptimeo) \
vinvalbuf((vp), (flags), (curthread), (slpflag), (slptimeo))
+#define osi_curproc() (curthread)
#endif
#undef gop_lookupname
extern void *osi_fbsd_alloc(size_t size, int dropglobal);
extern void osi_fbsd_free(void *p);
-#undef afs_osi_Alloc_NoSleep
#define afs_osi_Alloc_NoSleep(size) osi_fbsd_alloc((size), 0)
#ifdef AFS_FBSD80_ENV
#define VROOT VV_ROOT
#define v_flag v_vflag
#define osi_curcred() (curthread->td_ucred)
+#define osi_curproc() (curthread)
#define osi_getpid() (curthread->td_proc->p_pid)
#define simple_lock(x) mtx_lock(x)
#define simple_unlock(x) mtx_unlock(x)
# endif
#undef SPLVAR
-#define SPLVAR int splvar
+#define SPLVAR
#undef NETPRI
-#define NETPRI splvar=splnet()
+#define NETPRI
#undef USERPRI
-#define USERPRI splx(splvar)
+#define USERPRI
#define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size)