🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Wuxu Peng Wed, 21 Jul 1993 04:47
INN on OSF
#2056
Author: Wuxu Peng
Date: Wed, 21 Jul 1993 04:47
17 lines
1139 bytes
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)

Re: INN on OSF
#2051
Author: Rich Salz
Date: Wed, 21 Jul 1993 13:18
30 lines
1530 bytes
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)
>


Re: INN on OSF
#2052
Author: Jerry Aguirre
Date: Wed, 21 Jul 1993 21:57
14 lines
1444 bytes
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.
Re: INN on OSF
#2054
Author: Rich Salz
Date: Thu, 22 Jul 1993 01:48
22 lines
1798 bytes
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$
Re: INN on OSF
#2055
Author: Tom Limoncelli
Date: Sat, 24 Jul 1993 02:22
20 lines
1604 bytes
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads