* INN on OSF
@ 1993-07-21 4:47 Wuxu Peng
1993-07-21 13:18 ` Rich Salz
0 siblings, 1 reply; 5+ messages in thread
From: Wuxu Peng @ 1993-07-21 4:47 UTC (permalink / raw)
Has anyone hacked INN1.4 for DEC Alpha running OSF1?
Rich said a while back that INN1.5 will support alpha,
but he couldn't promise definite release time. Our
DEC stations running Ultrix are scheduled to be upgraded
to alpha early next month, and I am increasingly
worried about the possibility of losing usenet server
for a while.
Thanks.
--
--wuxu peng (peng@pirates.cs.swt.edu)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: INN on OSF
1993-07-21 4:47 INN on OSF Wuxu Peng
@ 1993-07-21 13:18 ` Rich Salz
1993-07-21 21:57 ` Jerry Aguirre
0 siblings, 1 reply; 5+ messages in thread
From: Rich Salz @ 1993-07-21 13:18 UTC (permalink / raw)
In <22iho9$dso@pirates.cs.swt.edu> peng@pirates.cs.swt.edu (Wuxu Peng) writes:
>
>Has anyone hacked INN1.4 for DEC Alpha running OSF1?
Porting it yourself should not be too hard.
Look for all "unsigned long" casts related to IP addresses, e.g., where
inet_addr is called. Change them to "unsigned int". innd/rc.c,
backends/rcompress.c include/clibrary.h, lib/remopen.c.
It is also necessary to add an (int) to tm->tm_gmtoff in lib/gettime.c
/r$
>Rich said a while back that INN1.5 will support alpha,
>but he couldn't promise definite release time. Our
>DEC stations running Ultrix are scheduled to be upgraded
>to alpha early next month, and I am increasingly
>worried about the possibility of losing usenet server
>for a while.
>
>Thanks.
>
>
>--
>
>--wuxu peng (peng@pirates.cs.swt.edu)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: INN on OSF
1993-07-21 13:18 ` Rich Salz
@ 1993-07-21 21:57 ` Jerry Aguirre
1993-07-22 1:48 ` Rich Salz
1993-07-24 2:22 ` Tom Limoncelli
0 siblings, 2 replies; 5+ messages in thread
From: Jerry Aguirre @ 1993-07-21 21:57 UTC (permalink / raw)
In article <22jfme$f7p@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:
>Look for all "unsigned long" casts related to IP addresses, e.g., where
>inet_addr is called. Change them to "unsigned int". innd/rc.c,
>backends/rcompress.c include/clibrary.h, lib/remopen.c.
This portability issue came up way back when most systems went from
16 bit ints to 32 bit. Now it is starting to come up again as we
start to migrate from 32 to 64. You would think that people would
learn.
Actually I consider it one of the big weaknesses of C. If every system
had a <sizes.h> or such that defined "int16", "int32" and such it would
be easier to write more portable code.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: INN on OSF
1993-07-21 21:57 ` Jerry Aguirre
@ 1993-07-22 1:48 ` Rich Salz
1993-07-24 2:22 ` Tom Limoncelli
1 sibling, 0 replies; 5+ messages in thread
From: Rich Salz @ 1993-07-22 1:48 UTC (permalink / raw)
In <22ke4m$h2l@olivea.ATC.Olivetti.Com> jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
>>Look for all "unsigned long" casts related to IP addresses, e.g., where
>>inet_addr is called. Change them to "unsigned int".
>This portability issue came up way back when most systems went from
>16 bit ints to 32 bit. Now it is starting to come up again as we
>start to migrate from 32 to 64. You would think that people would
>learn.
Well, yeah, kind of sort of, but not exactly in this case.
CSRG was "hired" by DARPA to put TCP/IP into the Vax. The Vax was a 32bit
machine. IP stuff fit nicely into 32 bits. You can't really blame CSRG
for not making all their code as portable as we all now would like it to
be, since we do now have a decade of hindsight, might prefer.
The DEC Alpha crew could have preserved source portability by keeping
long, and just masking off bits when they sent things out on the wire.
Instead, they made their job easier (and perhaps more correct) but made
everyone else's job harder.
/r$
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: INN on OSF
1993-07-21 21:57 ` Jerry Aguirre
1993-07-22 1:48 ` Rich Salz
@ 1993-07-24 2:22 ` Tom Limoncelli
1 sibling, 0 replies; 5+ messages in thread
From: Tom Limoncelli @ 1993-07-24 2:22 UTC (permalink / raw)
In <22ke4m$h2l@olivea.ATC.Olivetti.Com> jerry@strobe.ATC.Olivetti.Com (Jerry Aguirre) writes:
>Actually I consider it one of the big weaknesses of C. If every system
>had a <sizes.h> or such that defined "int16", "int32" and such it would
>be easier to write more portable code.
...but then everyone would use them all the time, instead
of just when they really need a (for example) 16-bit int.
On some platforms "int" is faster than an "int16", even
when an "int" is 32 bits.
It cuts both ways.
Tom
P.S. Followup-to comp.lang.c, which I don't read.
--
Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
"Some people run 'biff' to alert them that | Disclaimer: I do not
they have new email. I run '/bin/true'". | speak for Mentor Graphics.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-07-24 2:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-21 4:47 INN on OSF Wuxu Peng
1993-07-21 13:18 ` Rich Salz
1993-07-21 21:57 ` Jerry Aguirre
1993-07-22 1:48 ` Rich Salz
1993-07-24 2:22 ` Tom Limoncelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox