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