Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!csus.edu!ucdavis!csusac!unify!openlook!openlook-request Newsgroups: comp.windows.open-look Subject: Re: Building OpenLook GUI 4 Message-ID: Date: 5 Feb 91 22:43:20 GMT Lines: 75 kenlaw!kenf writes: > At least one client (xterm) requires XSelect(), which is not > part of X11.4. Any suggestions about a source for XSelect()? A description of your system might be helpful--at least OS version, and ancestry of client and server sides of X. and geoff@veritas.com responds: XSelect() is found in Xstreams.c. Does that give it away? ATT put a fair amount of work into porting X to the SVR3/4 environment. A streams interface is one of their contributions. I guess that they haven't given this to MIT. Gee, when I built X11R4 from the MIT release on SystemV/386 Release 3.2.2, Xstreams.c was right where it should be. There is a routine "select" in XlibInt.c, conditionally compiled if -DSTREAMSCONN, that uses poll() to accomplish the select. Sounds as if it might be useful starting point in creating XSelect() on SVR3. Of course, poll() only works on STREAMS, and you haven't said how your client/server communication is accomplished, so it may not help you. If you use routines from XlibInt.c, apply this patch first to fix an error in the emulation of the BSD readv/writev routines: *** XlibInt.c- Mon Dec 11 20:00:00 1989 --- XlibInt.c Wed Sep 26 09:13:51 1990 *************** *** 1725,1731 **** len -= rc; size += rc; } else if (rc < 0) { ! break; } } } --- 1725,1735 ---- len -= rc; size += rc; } else if (rc < 0) { ! #ifdef DEBUG ! if (i != n) ! fprintf (stderr, "_XReadV: avoiding sequence error\n" ); ! #endif ! return (size > 0) ? size : rc; } } } *************** *** 1762,1768 **** len -= rc; size += rc; } else if (rc < 0) { ! break; } } } --- 1766,1776 ---- len -= rc; size += rc; } else if (rc < 0) { ! #ifdef DEBUG ! if (i != n) ! fprintf (stderr, "_XWriteV: avoiding sequence error\n" ); ! #endif ! return (size > 0) ? size : rc; } } } I will be attempting to compile OL GUI v4.0 myself soon, so I'm interested in sharing any discoveries you make. (Like kenlaw!kenf, I also have only OL GUI, not all of AT&T XWIN.) Randy Brown (uunet!erik!rbrown)