* What's with Inet system headers??
@ 1994-02-14 2:54 Paul Smith
1994-02-18 22:28 ` Dave Cherkus
0 siblings, 1 reply; 2+ messages in thread
From: Paul Smith @ 1994-02-14 2:54 UTC (permalink / raw)
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!!?!?!?)(*)*
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??
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: What's with Inet system headers??
1994-02-14 2:54 What's with Inet system headers?? Paul Smith
@ 1994-02-18 22:28 ` Dave Cherkus
0 siblings, 0 replies; 2+ messages in thread
From: Dave Cherkus @ 1994-02-18 22:28 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-02-18 22:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-14 2:54 What's with Inet system headers?? Paul Smith
1994-02-18 22:28 ` Dave Cherkus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox