From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f5fb676c4681a0dc X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-02-18 14:28:22 PST Newsgroups: comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!mv!fastball.unimaster.com!cherkus From: cherkus@fastball.unimaster.com (Dave Cherkus) Subject: Re: What's with Inet system headers?? Nntp-Posting-Host: fastball.unimaster.com References: <2jmp4d$4jt@crl2.crl.com> Sender: usenet@mv.mv.com (Usenet News) Organization: UniMaster, Inc. Date: Fri, 18 Feb 1994 22:28:22 GMT Message-ID: Reply-To: cherkus@UniMaster.COM In article <2jmp4d$4jt@crl2.crl.com>, cgi@crl.com (Paul Smith) writes: |> I'm supposedly just re-compiling my Berkeley sockets library (TCP/UDP/IP) |> on Alpha/OSF1/v1.3 and I'm finding outright bugs in the system headers: |> |> /usr/include/netinet/in.h declares teh struct: |> |> struct in_addr { |> ... |> |> u_long Saddr; |> } |> |> Well we all know that longs are 64 bits on alpha?? After hacking the |> u_long to a u_int, my library started working!!?!?!?)(*)* I don't understand that: axposf.pa.dec.com> uname -a OSF1 axposf.pa.dec.com V1.3 111 alpha /usr/sys/include/netinet/in.h: /* * Internet address (a structure for historical reasons) */ struct in_addr { u_int s_addr; }; |> That is just synchronous I/O TCP and UDP. |> |> I tried to test my asynhronous with SIGPOLL signaling when I/O is |> ready and the call ioctl(fd, I_SETSIG, S_INPUT) returns in errno |> invalid operation on socket. |> |> Please don't tell me that OSF1's Berkey socket's implimentation is not a |> stream's based implimentation and that I_SETSIG, poll() can not be used VS |> more traditionaly Berkeleyisms of fcntl(fd, FASYNC,,) and select and SIGIO |> must be used instead the the SYSV'ish streams way??? |> |> What gives here?? OSF/1's socket implementation is a traditional BSD one, not a STREAMS based one. OSF/1 does offer a XTI/TLI STREAMS programming environment but not a socket STREAMS programming environment. ---- Dave Cherkus UniMaster, Inc. cherkus@unimaster.com