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