#include <ulimit.h>
#define get_ulimit() (ulimit(GET_FSIZE, 0) << UBSHIFT)
-#ifdef KERNEL
#include <sys/lockl.h>
#include <sys/lock_def.h>
#include <sys/lock_alloc.h>
#endif
#define ifnet_flags(x) (x?(x)->if_flags:0)
-#endif
#endif /* _OSI_MACHDEP_H_ */
#undef afs_suser
-#ifdef KERNEL
extern thread_t afs_global_owner;
/* simple locks cannot be used since sleep can happen at any time */
#ifdef AFS_DARWIN80_ENV
# define SetAfsVnode(v) /* nothing; done in getnewvnode() */
#endif
-#endif /* KERNEL */
-
#endif /* _OSI_MACHDEP_H_ */
#define afs_strcat(s1, s2) strcat((s1), (s2))
-#ifdef KERNEL
-
#undef afs_osi_Alloc_NoSleep
#define afs_osi_Alloc_NoSleep(size) osi_fbsd_alloc((size), 0)
#define NETPRI splvar=splnet()
#undef USERPRI
#define USERPRI splx(splvar)
-#endif /* KERNEL */
#define ifnet_flags(x) (x?(x)->if_flags:0)
#define getppid() (afs_uint32)p_ppid(u.u_procp)
-#ifdef KERNEL
/*
* Global lock support.
*
#define SPLVAR register ulong_t splvar
#define NETPRI NET_SPLNET(splvar)
#define USERPRI NET_SPLX(splvar)
-#endif /* KERNEL */
#if !defined(AFS_HPUX110_ENV)
/*
#undef afs_suser
-#ifdef KERNEL
extern struct simplelock afs_global_lock;
#if 0
extern thread_t afs_global_owner;
#define IsAfsVnode(v) ((v)->v_op == afs_vnodeop_p)
#define SetAfsVnode(v) /* nothing; done in getnewvnode() */
-#endif /* KERNEL */
-
#endif /* _OSI_MACHDEP_H_ */
#define afs_osi_lockmgr(l, f, i, p) lockmgr((l), (f), (i), (p))
#endif
-#ifdef KERNEL
-
#ifdef AFS_OBSD44_ENV
/* Revert to classical, BSD locks */
#define NETPRI splvar=splnet()
#undef USERPRI
#define USERPRI splx(splvar)
-#endif /* KERNEL */
#define osi_InitGlock() \
do { \
#define afs_suser(x) suser(x)
#endif
-#ifdef KERNEL
/*
* Global lock support.
*/
int metric;
ipaddr_t dstaddr;
};
-#endif
#endif /* _OSI_MACHDEP_H_ */
afs_mem_dcache_id_t mem;
} afs_dcache_id_t;
-#ifdef KERNEL
/* it does not compile outside kernel */
struct buffer {
afs_int32 fid; /* is adc->index, the cache file number */
afs_int32 chunkBytes; /* Num bytes in this chunk */
char states; /* Has this chunk been modified? */
};
-#endif
/* magic numbers to specify the cache type */
#if defined(AFS_SGI61_ENV)
/* For SGI 6.2, this can is changed to 1 if it's a 32 bit kernel. */
-#if defined(AFS_SGI62_ENV) && defined(KERNEL) && !defined(_K64U64)
+#if defined(AFS_SGI62_ENV) && !defined(_K64U64)
int afs_icl_sizeofLong = 1;
#else
int afs_icl_sizeofLong = 2;