Thread View: comp.sys.amiga.tech
4 messages
4 total messages
Started by Eric Edwards
Fri, 21 Dec 1990 04:34
short overflow in Dnews and Arn
Author: Eric Edwards
Date: Fri, 21 Dec 1990 04:34
Date: Fri, 21 Dec 1990 04:34
18 lines
1447 bytes
1447 bytes
I have discovered, with a certain amount of dispointment, that Dnews and Arn use 16 bit signed integers to store the message number. Why is this a problem? Well, I copy my news articles straight from a unix machine without renumbering and sometime durring my 3 week hiatus from news reading comp.sys.amiga past the magic 32767 point and kept going. Arn and Dnews complain bitterly about negative message numbers. I don't have source for Arn so I figured I'd recompile or patch Dnews. Then I saw the line "...Dnews has only a make file for DICE" Neither compiling without a make file or installing a new C compiler fills my heart with joy. So, does anyone out there have a copy of Dnews or Arn patched or recompiled to used 32 bit ints? If you do I would greatly apreciate a copy. Eric Edwards: c506634 @ "The 3090. Proof that by applying state of the Inet: umcvmb.missouri.edu art technology to an obsolete architecture, Bitnet: umcvmb.bitnet one can achieve mediocre performance."
Re: short overflow in Dnews and Arn
Author: Andrew J Richardson
Date: Fri, 21 Dec 1990 21:48
Date: Fri, 21 Dec 1990 21:48
17 lines
1132 bytes
1132 bytes
In article <901220.223410.CST.C506634@umcvmb.missouri.edu>, Eric Edwards writes: -> I have discovered, with a certain amount of dispointment, that Dnews and -> Arn use 16 bit signed integers to store the message number. Why is this a -> problem? Well, I copy my news articles straight from a unix machine without -> renumbering and sometime durring my 3 week hiatus from news reading -> comp.sys.amiga past the magic 32767 point and kept going. Arn and Dnews -> complain bitterly about negative message numbers. well, the latest version of arn, .67e, fixes this bug, among a few others. andrew uunet.uu.net!postmod!andrew
Re: short overflow in Dnews and Arn
Author: Matthew Dillon
Date: Mon, 24 Dec 1990 22:19
Date: Mon, 24 Dec 1990 22:19
29 lines
1539 bytes
1539 bytes
In article <901220.223410.CST.C506634@umcvmb.missouri.edu> C506634@UMCVMB.MISSOURI.EDU (Eric Edwards) writes:
>
>I don't have source for Arn so I figured I'd recompile or patch Dnews.
>Then I saw the line "...Dnews has only a make file for DICE"
>Neither compiling without a make file or installing a new C compiler fills my
>heart with joy.
>
>So, does anyone out there have a copy of Dnews or Arn patched or recompiled to
>used 32 bit ints? If you do I would greatly apreciate a copy.
>
>Eric Edwards: c506634 @ "The 3090. Proof that by applying state of the
--
Just clear out the directory, including the .next file, and the
articles will be reset to start at 1 again.
The limitation has nothing to do with how DNews was compiled...
ints are in fact 32 bits. It has to do with a purposeful
limitation in the maximum article number. Theoretically it
was *supposed* to roll over automatically. Obviously there
are a few bugs in that department.
-Matt
Matthew Dillon dillon@Overload.Berkeley.CA.US
891 Regal Rd. uunet.uu.net!overload!dillon
Berkeley, Ca. 94708
USA
Re: short overflow in Dnews and Arn
Author: Christopher A. Wichura
Date: Sat, 29 Dec 1990 20:28
Date: Sat, 29 Dec 1990 20:28
31 lines
2168 bytes
2168 bytes
In article <dillon.8086@overload.Berkeley.CA.US> dillon@overload.Berkeley.CA.US (Matthew Dillon) writes: >In article <901220.223410.CST.C506634@umcvmb.missouri.edu> C506634@UMCVMB.MISSOURI.EDU (Eric Edwards) writes: >>So, does anyone out there have a copy of Dnews or Arn patched or recompiled to >>used 32 bit ints? If you do I would greatly apreciate a copy. > > Just clear out the directory, including the .next file, and the > articles will be reset to start at 1 again. I thought this guy said that he was snarfing the articles from a Unix box and not using RNews. Thus, renumbering isn't too hot a prospect for him. > The limitation has nothing to do with how DNews was compiled... > ints are in fact 32 bits. It has to do with a purposeful > limitation in the maximum article number. Theoretically it Why limit things? It's not like storeing 32bits in ascii for a filename will make any difference. The bytes are allocated anyway on the disk. And so the dnewsrc file might be a tad bigger. The only place I can see this making any difference is in lining up the article counts in the newsgroup select window. But this could be done dynamically by figureing out which newsgroup has the largest number printed and then space in all news groups accordingly. Maybe it's just me, but I can't see any good reason to not use a full 32 bits. And I'd seem to me you have to go more out of your way to add support for things to roll over than to just to dynamic column lineup... -=> CAW Christopher A. Wichura Multitasking. Just DO it. caw@miroc.chi.il.us (my amiga) ...the Amiga way... u12401@uicvm.uic.edu (school account)
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