Xref: utzoo comp.windows.x:9588 comp.unix.wizards:15741 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wasatch!cs.utexas.edu!uunet!ssgp32!robin From: robin@ssgp32.UU.NET (Robin Alston) Newsgroups: comp.windows.x,comp.unix.wizards Subject: Help with porting X11.3 to SYSVR3.1 please. Keywords: FIONREAD X11.3 VR3.1 Message-ID: <410@ssgp32.UU.NET> Date: 25 Apr 89 17:53:01 GMT Distribution: usa Organization: Prime Computer, Inc.,Framingham MA -- Entry Level Systems Group Lines: 25 This may be a trivial or noddy question but here goes. We are attempting to port X11r3 clients to our unix box which runs vanilla AT&T SYSVr3.1. The macro BytesReadable is defined in lib/X/Xlibos.h as: #define BytesReadable(fd, ptr) ioctl ((fd), FIONREAD, (ptr)) This ioctl function appears unavailable in System V. Its purpose is to return (in the case of its usage in the X library) the number of bytes readable on a socket. It is used in lib/X/XConnDis.c and lib/X/XlibInt.c. Any ideas on how we might solve this? Am I missing something obvious in the VR3 libraries/sys calls? Am I going to need to assume something is provided by our TCP/IP vendor code that I have assumed should be provided by raw unix. -- Dr Robin P. Alston PRIME Computer Inc., Principle Software Engineer Commercial Systems Group, (508)-478-8600 x3678 Technology Drive, robin@cobweb.prime.com Milford MA 01757