#else
#if defined(AFS_SGI_ENV) || (defined(AFS_SUN_ENV) && !defined(AFS_SUN5_ENV)) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV)
afs_lockctl(struct vcache *avc, struct AFS_FLOCK *af, int acmd, struct AFS_UCRED *acred, pid_t clid)
-pid_t clid;
#else
u_int clid=0;
afs_lockctl(struct vcache *avc, struct AFS_FLOCK *af, int acmd, struct AFS_UCRED *acred)
#include "../h/buf.h"
#endif /* !defined(UKERNEL) */
-#if !defined(UKERNEL) && defined(AFS_LINUX20_ENV)
-#include "../afs/osi_vfs.h"
-#endif
-
#include "../afs/stds.h"
#include "../afs/volerrors.h"
#include "../afs/exporter.h"
extern afs_uint32 pagCounter;
/* OS/osi_vfsops.c */
+#if defined(AFS_OSF_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_DARWIN_ENV)
+extern struct mount *afs_globalVFS;
+#else
extern struct vfs *afs_globalVFS;
+#endif
extern struct vcache *afs_globalVp;
+#ifdef AFS_LINUX20_ENV
extern void vcache2inode(struct vcache *avc);
+#endif
/* afs_pioctl.c */
extern struct VenusFid afs_rootFid;
extern struct afs_CMStats afs_cmstats;
extern struct afs_stats_CMPerf afs_stats_cmperf;
extern struct afs_stats_CMFullPerf afs_stats_cmfullperf;
-afs_int32 afs_stats_XferSumBytes[AFS_STATS_NUM_FS_XFER_OPS];
+extern afs_int32 afs_stats_XferSumBytes[AFS_STATS_NUM_FS_XFER_OPS];
extern void afs_InitStats(void);
extern int afs_GetCMStat(char **ptr, unsigned *size);
#ifndef AFS_NOSTATS
printf("Starting scheduled dump: job %d\n", jobNumber);
printf("schedD> %s\n", cmdLine);
- code = LWP_CreateProcess(cmdDispatch, 16384, LWP_NORMAL_PRIORITY, 2,
+ code = LWP_CreateProcess(cmdDispatch, 16384,
+ LWP_NORMAL_PRIORITY, (void *) 2,
"cmdDispatch", &dispatchPid);
if ( code )
{
else
memset(&bc_dumpTasks[i].destServer, 0, sizeof(struct sockaddr_in));
- code = LWP_CreateProcess(bc_DmpRstStart, 20480, LWP_NORMAL_PRIORITY, i, "helper", &junk);
+ code = LWP_CreateProcess(bc_DmpRstStart, 20480, LWP_NORMAL_PRIORITY,
+ (void *)i, "helper", &junk);
if (code)
{
bc_HandleMisc(code);
/* setup status monitoring thread */
initStatus();
- code = LWP_CreateProcess(statusWatcher, 20480, LWP_NORMAL_PRIORITY, 2,
- "statusWatcher", &watcherPid);
+ code = LWP_CreateProcess(statusWatcher, 20480, LWP_NORMAL_PRIORITY,
+ (void *)2, "statusWatcher", &watcherPid);
if ( code )
{
com_err(whoami, code, "; Can't create status monitor task");
code = pipe(dumpSyncPtr->pipeFid);
if (code) ERROR(errno);
- code = LWP_CreateProcess(setupDbDump, 16384, 1, dumpSyncPtr->pipeFid[1],
+ code = LWP_CreateProcess(setupDbDump, 16384, 1,
+ (void *) dumpSyncPtr->pipeFid[1],
"Database Dumper", &dumperPid);
if (code) goto error_exit;
#include "../afs/afs_stats.h"
#include "../h/errno.h"
#ifdef KERNEL
+#include "../afs/sysincludes.h"
#include "../afs/afsincludes.h"
#endif
#
clean:
- $(RM) -f *.o *.a tcrypt core rxkad_errs.c rxkad.h rxkad_prototypes.h \
+ $(RM) -f *.o *.a tcrypt core rxkad_errs.c rxkad.h \
AFS_component_version_number.c \
crypt_conn.c fcrypt.c fcrypt.h sboxes.h \
fc_test
#endif
#endif
#include <fcntl.h>
+#ifndef AFS_NT40_ENV
+#include <afs/osi_inode.h>
+#endif
#include <afs/cmd.h>
#include <afs/afsutil.h>
#include <afs/fileutil.h>