824N/A * (c) Copyright 1988-1994 Adobe Systems Incorporated. 824N/A * Permission to use, copy, modify, distribute, and sublicense this software 824N/A * and its documentation for any purpose and without fee is hereby granted, 824N/A * provided that the above copyright notices appear in all copies and that 824N/A * both those copyright notices and this permission notice appear in 824N/A * supporting documentation and that the name of Adobe Systems Incorporated 824N/A * not be used in advertising or publicity pertaining to distribution of the 824N/A * software without specific, written prior permission. No trademark license 824N/A * to use the Adobe trademarks is hereby granted. If the Adobe trademark 824N/A * "Display PostScript"(tm) is used to describe this software, its 824N/A * functionality or for any other purpose, such use shall be limited to a 824N/A * statement that this software works in conjunction with the Display 824N/A * PostScript system. Proper trademark attribution to reflect Adobe's 824N/A * ownership of the trademark shall be given whenever any such reference to 824N/A * the Display PostScript system is made. 824N/A * ADOBE MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THE SOFTWARE FOR 824N/A * ANY PURPOSE. IT IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. 824N/A * ADOBE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL 824N/A * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 824N/A * NON- INFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ADOBE BE LIABLE 824N/A * TO YOU OR ANY OTHER PARTY FOR ANY SPECIAL, INDIRECT, OR CONSEQUENTIAL 824N/A * DAMAGES OR ANY DAMAGES WHATSOEVER WHETHER IN AN ACTION OF CONTRACT, 824N/A * NEGLIGENCE, STRICT LIABILITY OR ANY OTHER ACTION ARISING OUT OF OR IN 824N/A * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ADOBE WILL NOT 824N/A * PROVIDE ANY TRAINING OR OTHER SUPPORT FOR THE SOFTWARE. 824N/A * Adobe, PostScript, and Display PostScript are trademarks of Adobe Systems 824N/A * Incorporated which may be registered in certain jurisdictions 824N/A * Author: Adobe Systems Incorporated 824N/A/* Xlib does not like UNIX defined to any value under VMS. */ 824N/A/* XDPSContextTimedOut is set to true by the BlockForEvent routine 824N/A when expected return values are not received within a certain 824N/A amount of time. In this case, BlockForEvent will return and the 824N/A higher callers may take appropriate action to avoid deadlocks. */ 824N/A/* XDPSQuitBlocking is set to false by the BlockForEvent routine and 824N/A becomes true if either a zombie status event or an output event 824N/A is received for the context waiting for return values. */ 824N/A/* operands for "setobjectformat" if we must agree with server. */ 824N/A /* XDPSQuitBlocking becomes true if a zombie status event or 824N/A any output event is received by the status event handler for 824N/A the currently-awaiting-results context. */ 824N/A /* Ignore interrupt signals */ 824N/A return (-
1);
/* Broken connection (errno == EBADF) */ 824N/A /* The noop is necessary to force proper behavior when the 824N/A connection goes away - listen carefully! When the dpy 824N/A connection is closed, the above select returns indicating 824N/A activity on the connection. We call XDPSForceEvents, which 824N/A calls XCheckIfEvent, which ultimately may call XFlush 824N/A (if there are no events queued). The XNoOp call puts 824N/A a message in the outgoing queue, so that XFlush is forced 824N/A to write on the connection. When it tries to write, the 824N/A error condition will be noted and XIOError will be called, 824N/A usually causing the application to terminate. Note that 824N/A the error won't happen until the second time thru this 824N/A loop, but that's ok. */ 824N/A /* This routine should not be called if ctxt is a text context */ 824N/A /* DPS extension on this dpy? */ 824N/A /* Everybody must talk ieee! */ 824N/A /* Did we have to change object format for parent context? */ 824N/A /* Note: the child context must inherit the object format of 824N/A its parent. When this happens in the server there 824N/A will be no need for the following code segment. */