From: cherkus@fastball.unimaster.com (Dave Cherkus)
Subject: Re: What's with Inet system headers??
Date: Fri, 18 Feb 1994 22:28:22 GMT [thread overview]
Message-ID: <CLFyFB.MJC@mv.mv.com> (raw)
In-Reply-To: 2jmp4d$4jt@crl2.crl.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
prev parent reply other threads:[~1994-02-18 22:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-02-14 2:54 What's with Inet system headers?? Paul Smith
1994-02-18 22:28 ` Dave Cherkus [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox