/* begincopyright Copyright (c) 1988 Xerox Corporation. All rights reserved. Use and copying of this software and preparation of derivative works based upon this software are permitted. Any distribution of this software or derivative works must comply with all applicable United States export control laws. This software is made available AS IS, and Xerox Corporation makes no warranty about the software, its performance or its conformity to any specification. Any person obtaining a copy of this software is requested to send their name and post office or electronic mail address to: PCR Coordinator Xerox PARC 3333 Coyote Hill Rd. Palo Alto, CA 94304 endcopyright */ /* * ThreadsMsgPrivate.h * * Demers, March 30, 1990 0:31:40 am PST */ #ifndef _XR_THREADS_MSG_PRIVATE_ #define _XR_THREADS_MSG_PRIVATE_ 1 #ifndef XR_BASIC_TYPES_ # include "BasicTypes.h" #endif #ifndef _XR_THREADS_MSG_ #include "ThreadsMsg.h" #endif #define XR_GEN_ASSERT 0 /* * Well-known file descriptors */ /* ... for use in XR_Msg and XR_URead/XR_UWrite */ extern int XR_stdInFD; extern int XR_stdOutFD; /* ... for VP<->IOP communication */ /* ??? these should be moved ??? */ extern int XR_socket0FD; extern int XR_socket1FD; extern int XR_freeFD; extern void XR_ConsoleMsg (/* char *fmt, anyType arg1, ... */); /* Like XR_Msg(XR_MSG_STDOUT, ...) except: (1) can be called from iop, handler, etc. (2) doesn't deal correctly with EINTR, etc. */ extern void XR_Panic (/* msg */); /* char *msg; */ extern bool XR_GetSuspendOnPanic(); extern bool XR_SetSuspendOnPanic(/* bool suspend */); /* Query and control whether Panic causes system to - terminate - suspend itself for examination with a sophisticated source-level debugger, or dbx. May be called either before or after forking the virtual processors. */ #if XR_GEN_ASSERT #define XR_ASSERT(b,s) if(!(b)) XR_Panic(s) #else #define XR_ASSERT(b,s) {} #endif /* XR_GEN_ASSERT */ #endif _XR_THREADS_MSG_PRIVATE_