Thread View: news.software.nntp
5 messages
5 total messages
Started by Jef Poskanzer
Mon, 30 Jul 1990 06:29
NNTP with CNEWS with DBZ
Author: Jef Poskanzer
Date: Mon, 30 Jul 1990 06:29
Date: Mon, 30 Jul 1990 06:29
10 lines
1035 bytes
1035 bytes
Does anybody do this? Is there some trick that we're missing? Nntpd
claims that cnews already has whatever article we offer to it. I thought
that configuring NNTP to use DBM calls but linking with the DBZ library
would be enough, but apparently not.
---
Jef
Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef
"And for you, a puppy!" "Ohhhh!"
Re: NNTP with CNEWS with DBZ
Author: Tad Guy
Date: Mon, 30 Jul 1990 15:28
Date: Mon, 30 Jul 1990 15:28
34 lines
1741 bytes
1741 bytes
In article <6313@helios.ee.lbl.gov> jef@ace.ee.lbl.gov (Jef Poskanzer) writes: > Does anybody do this? Is there some trick that we're missing? Nntpd > claims that cnews already has whatever article we offer to it. I thought > that configuring NNTP to use DBM calls but linking with the DBZ library > would be enough, but apparently not. If you define BSD_43, common/conf.h forces a defintion of NDBM, even if you've explicitly defined DBM earlier in the file. The following patch prevents this behavior. After patching, link with dbz.o (not -ldbm), and it should correctly reject dups. ...tad *************** *** 127,134 **** # define READ_SUPER # endif # endif ! # ifndef NDBM ! # define NDBM # endif #endif --- 127,136 ---- # define READ_SUPER # endif # endif ! # ifndef DBM ! # ifndef NDBM ! # define NDBM ! # endif # endif #endif
Re: NNTP with CNEWS with DBZ
Author: Jef Poskanzer
Date: Mon, 30 Jul 1990 16:24
Date: Mon, 30 Jul 1990 16:24
21 lines
1335 bytes
1335 bytes
In the referenced message, tadguy@abcfd01.larc.nasa.gov (Tad Guy) wrote:
}If you define BSD_43, common/conf.h forces a defintion of NDBM, even
}if you've explicitly defined DBM earlier in the file. The following
}patch prevents this behavior.
We already did that.
}After patching, link with dbz.o (not -ldbm),
We already did that.
}and it should correctly reject dups.
It doesn't.
---
Jef
Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef
"A child is a person who can't understand why someone would give away a
perfectly good kitten." -- Doug Larson
Re: NNTP with CNEWS with DBZ
Author: Felix Lee
Date: Mon, 30 Jul 1990 16:32
Date: Mon, 30 Jul 1990 16:32
9 lines
988 bytes
988 bytes
Note, if you use dbz and #include <dbm.h>, you are probably inadvertently defining several unused variables, like pagbuf[] and dirbuf[], since <dbm.h> doesn't declare them as "extern". This is about 5k of unused space in the bss segment. The impact on performance is probably insignificant. -- Felix Lee flee@cs.psu.edu
Re: NNTP with CNEWS with DBZ
Author: Tad Guy
Date: Tue, 31 Jul 1990 19:55
Date: Tue, 31 Jul 1990 19:55
16 lines
1188 bytes
1188 bytes
In article <6315@helios.ee.lbl.gov> jef@ace.ee.lbl.gov (Jef Poskanzer) writes: > > [ tadguy offers fix to cnews/dbz problem ] > > We already did that. > > }and it should correctly reject dups. > > It doesn't. What can I say; it works for me... You may want to write a quickie dbz test program to make sure your history dbz is valid, etc. ...tad
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