/***********************************************************
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.

                        All Rights Reserved

Permission to use, copy, modify, and distribute this software and its 
documentation for any purpose and without fee is hereby granted, 
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in 
supporting documentation, and that the names of Digital or MIT not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.  

DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.

******************************************************************/

/* $Header: os.h,v 1.14 87/06/14 22:37:04 sue Exp $ */

#ifndef OS←H
#define OS←H
#include "misc.h"

#define NullFID ((FID) 0)

#define SCREEN←SAVER←ON   0
#define SCREEN←SAVER←OFF  1
#define SCREEN←SAVER←FORCER 2

#define MAX←REQUEST←SIZE 16384

typedef pointer	FID;
typedef struct ←FontPathRec *FontPathPtr;
typedef struct ←NewClientRec *NewClientPtr;

/* os-dependent definition of local allocation and deallocation */
#define ALLOCATE←LOCAL(size) (malloc(size))
#define DEALLOCATE←LOCAL(ptr) (free(ptr))
#define ErrorF printf
#define Error printf

extern char *malloc();
extern char *realloc();
extern long random();
extern void FreeFontRecord();
extern void OnlyListenToOneClient();
extern void ListenToAllClients();
extern void SetFontPath();
extern void CreateWellKnownSockets();
extern Bool CloseDownConnection();
extern FID FiOpenForRead();
extern int FiRead();
extern int FiClose();
extern void SetDefaultFontPath();
extern void OsInit();
extern long GetTimeInMillis();
/*
extern char *Xrealloc();
extern char *Xalloc();
extern int Xfree();
extern int malloc();
*/

#endif /* OS←H */