--- /dev/null
+/*
+ * 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
+ */
+
+#ifndef _BOSPROTOTYPES_H_
+#define _BOSPROTOTYPES_H_
+
+/* bosserver.c */
+void bozo_Log(char *format, ... );
+
+#endif
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include <stdarg.h>
#ifdef AFS_NT40_ENV
#include <winsock2.h>
#include <direct.h>
#include <rx/rx_globals.h>
#include "bosint.h"
#include "bnode.h"
+#include "bosprototypes.h"
#include <rx/rxkad.h>
#include <afs/keys.h>
#include <afs/ktime.h>
#include <afs/afs_args.h>
#endif
-
#define BOZO_LWP_STACKSIZE 16000
extern int BOZO_ExecuteRequest();
extern int RXSTATS_ExecuteRequest();
extern struct bnode_ops fsbnode_ops, dafsbnode_ops, ezbnode_ops, cronbnode_ops;
-void bozo_Log();
-
struct afsconf_dir *bozo_confdir = 0; /* bozo configuration dir */
static PROCESS bozo_pid;
struct rx_securityClass *bozo_rxsc[3];
}
void
-bozo_Log(char *a, char *b, char *c, char *d, char *e, char *f)
+bozo_Log(char *format, ...)
{
char tdate[27];
time_t myTime;
+ va_list ap;
+
+ va_start(ap, format);
if (DoSyslog) {
#ifndef AFS_NT40_ENV
- syslog(LOG_INFO, a, b, c, d, e, f);
+ vsyslog(LOG_INFO, format, ap);
#endif
} else {
myTime = time(0);
printf("bosserver: WARNING: problem with %s\n",
AFSDIR_SERVER_BOZLOG_FILEPATH);
printf("%s ", tdate);
- printf(a, b, c, d, e, f);
+ vprintf(format, ap);
fflush(stdout);
} else {
fprintf(bozo_logFile, "%s ", tdate);
- fprintf(bozo_logFile, a, b, c, d, e, f);
+ vfprintf(bozo_logFile, format, ap);
/* close so rm BosLog works */
fclose(bozo_logFile);
#include <afs/afsutil.h>
#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include "bnode.h"
+#include "bosprototypes.h"
static int cron_timeout(), cron_getstat(), cron_setstat(), cron_delete();
static int cron_procexit(), cron_getstring(), cron_getparm(), cron_restartp();
#include <afs/afsutil.h>
#include <afs/procmgmt.h> /* signal(), kill(), wait(), etc. */
#include "bnode.h"
+#include "bosprototypes.h"
static int ez_timeout(), ez_getstat(), ez_setstat(), ez_delete();
static int ez_procexit(), ez_getstring(), ez_getparm(), ez_restartp();