/* begincopyright Copyright (c) 1988, 1993 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 endcopyright */ /* * ThreadsMsg.h * * Demers, April 10, 1990 5:20:13 pm PDT * truncated for sPCR by Hans Boehm, Jan. 25, 1993 */ #ifndef _XR_THREADS_MSG_ #define _XR_THREADS_MSG_ 1 /* * Well-known pseudo-file descriptors */ #define XR_MSG_STDIN (0) #define XR_MSG_STDOUT (1) #define XR_VERBOSITY_NORMAL 8 /* * Output formatting to memory ... */ extern char * XR_SPrintF(/* buf, fmt, arg, ... */); /* char *buf; char *fmt; int arg; Similar to Unix(tm) sprintf(3). Result is address of terminating null added to buf. */ extern void XR_FPrintF(/* descr, fmt, arg, ... */); /* XR_Fildes descr; char *fmt; int arg; Similar to Unix(tm) fprintf(3). */ /* * Output formatting to file ... */ extern void XR_Msg(/* int d, char *fmt, word arg1, ... */); /* Formatted print; d is XR_MSG_STDOUT or an XR_Fildes. Nonstandard format code "%?" prints processor+thread. */ extern int XR_MsgWrite(/* buf, nBytes */); /* char *buf; int nBytes; Like write(stdout, buf, nBytes); */ #endif