/*********************************************************** 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 */