/*
 * 5799-WZQ (C) COPYRIGHT = NONE
 * LICENSED MATERIALS - PROPERTY OF IBM
 */
/* $Header:globals.c 12.0$ */
/* $ACIS:globals.c 12.0$ */
/* $Source: /ibm/acis/usr/src/ibm/rvd/server/RCS/globals.c,v $ */

#ifndef lint
static char *rcsid = "$Header:globals.c 12.0$";
#endif


#ifndef lint
static char rcsid_globals_c[] = "$Header:globals.c 12.0$";
#endif lint

/* Copyright 1984 by the Massachusetts Institute of Technology */
/* See permission and disclaimer notice in the file "notice.h" */
#include "notice.h"

/* Global data declarations for RVD server. */

#include	<sys/types.h>
#include	<netinet/in.h>
#include	<netinet/in_systm.h>
#include	<netinet/ip.h>
#include	<netinet/rvd.h>

#include	"rvd_types.h"
#include	"custom.h"
#include	"obj.h"
#include	"queue.h"
#include	"packet.h"
#include	"extern.h"

unsigned	log_flag;		/* current logging level */
int		restart_flag = 0;	/* restart server on bughalt */
char		*rvdmaster = RVDMASTER;	/* name of RVD master database file */
char		*rvdrestart= RVDRESTART;/* name of RVD restart script */

/* The bigbuf array is the large data buffer for compacted disk reads and
 * writes.  It includes enough space at the beginning to construct an
 * rvd_pkt header for transmission, as well as room for BURST blocks of
 * data.
 */

char		bigbuf[(MAXCONTIG * RVDDSIZE) + BLOCKOFF];

u_long		now;
int		gmodes = 0;
int		gmodes_orig = 0;
int		requests_enabled = 0;
long		timeatstart;
struct in_addr	localhost;

/* The rw_qsize array is the read/write queue length histogram array.
 * Entry[n] in the array stores the number of times there were "n"
 * read/write packets waiting for service in the work queue.
 */
int	rw_qlength;
int	max_qlength;
int	rw_qsize[MAX_RW_QARRAY];
