Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!wiley!spp2!baur From: baur@spp2.UUCP (Steven L. Baur) Newsgroups: comp.windows.x Subject: How to obtain file descriptors from X applications? Message-ID: <1668@spp2.UUCP> Date: 26 Feb 89 08:37:50 GMT Reply-To: baur@spp2.UUCP (Steven L. Baur) Organization: TRW Inc., Redondo Beach, CA Lines: 12 I am writing an application that reads out of multiple file descriptors via the select(2) system call and need to integrate X windows applications to it. What I need to do is add file descriptors used by X windows to my select system call. What are the method(s) for finding out the filedescriptors opened by Xlib, Xtoolkit on behalf of the application? I am not trying to do the actual read, but the select call must be in my code. Alternatively, is there an X interface similar to the SunView interface that allows code to be called when the itimer expires or input is ready on a file descriptor? steve uunet!wiley!spp2!baur