🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Conrad Sabatier Sat, 22 Jun 1996 00:00
mthreads for trn (FreeBSD)
#23261
Author: Conrad Sabatier
Date: Sat, 22 Jun 1996 00:00
20 lines
1296 bytes
This looks like just the thing to cure my problem with trn and its excessive 
rereading of the remote active file.  Only problem is, I'm not good at this 
porting business.  I downloaded the mthreads-3.1.tar.gz, tried to install 
it, but I get a compile error.  Seems mthreads.c is calling "setpgrp", 
whereas the FreeBSD libraries have replaced this routine with "setpid".
As the two functions are completely different in the parameters they expect, 
I have no idea how to proceed.

I assume this is commonly encountered in porting apps to FreeBSD.  So, 
what's the fix for this?

Better yet, does anyone have a port, or know where I could find one?

Thanks.

-- 
Conrad Sabatier -- http://www.neosoft.com/~conrads/

Re: mthreads for trn (FreeBSD)
#23362
Author: Nate Williams
Date: Mon, 24 Jun 1996 00:00
32 lines
2023 bytes
[ Emailed to posted as well as posted ]

In article <4qfgj2$17s_002@mypc.neosoft.com>,
Conrad Sabatier <conrads@neosoft.com> wrote:
>This looks like just the thing to cure my problem with trn and its excessive 
>rereading of the remote active file.  Only problem is, I'm not good at this 
>porting business.  I downloaded the mthreads-3.1.tar.gz, tried to install 
>it, but I get a compile error.  Seems mthreads.c is calling "setpgrp", 
>whereas the FreeBSD libraries have replaced this routine with "setpid".

Umm, what version of FreeBSD are you using.  I've got setpgrp() on my
2.1R box. :)

And, I don't think mthreads is going to help you since it's for
threading a news directory which doesn't use the new style threads.  TRN
used to use it's own 'propriatary' format, but switched to the standard
format long ago.

If you're using NNTP to read your news, *make* sure your remote site
supports Overview support and compile trn to use it.  You'll still have
to download the thread files, but you won't have to thread on the fly.


Nate
-- 
nate@sri.com           | Research Engineer, SRI Intl. - Montana Operations
nate@trout.mt.sri.com  | Loving life in God's country, the great state of
work #: (406) 449-7662 | Montana (all the crazies are now in jail 'cept us
home #: (406) 443-7063 | natives). - Fly fishing fanatic!

Re: mthreads for trn (FreeBSD)
#23376
Author: Conrad Sabatier
Date: Mon, 24 Jun 1996 00:00
55 lines
3320 bytes
In article <4qmhrf$mv3@helena.MT.net>,
Nate Williams <nate@sneezy.sri.com> wrote:
>[ Emailed to posted as well as posted ]
>
>In article <4qfgj2$17s_002@mypc.neosoft.com>,
>Conrad Sabatier <conrads@neosoft.com> wrote:
>>This looks like just the thing to cure my problem with trn and its excessive 
>>rereading of the remote active file.  Only problem is, I'm not good at this 
>>porting business.  I downloaded the mthreads-3.1.tar.gz, tried to install 
>>it, but I get a compile error.  Seems mthreads.c is calling "setpgrp", 
>>whereas the FreeBSD libraries have replaced this routine with "setpid".
>
>Umm, what version of FreeBSD are you using.  I've got setpgrp() on my
>2.1R box. :)

OK, I wasn't really too clear on that before.  mthreads.c had the following:

(void*) setpgrp()  (or something like that)

This caused the "wrong number of parameters" complaint from the compiler.
So I checked the include lib and found a comment to the effect that 
setpid had supplanted setpgrp, although both routines were still present 
(setpgrp, BTW, requires two pointer args, if I recall correctly).

Anyway, it finally dawned on me: Hey!  The returned value from 
setpgrp is being discarded anyway in mthreads.c (don't ask me why it's 
even being called in the first place), so I commented it out, 
the compile went off without any further hitches, and now I've got a 
working mthreads.

>And, I don't think mthreads is going to help you since it's for
>threading a news directory which doesn't use the new style threads.  TRN
>used to use it's own 'propriatary' format, but switched to the standard
>format long ago.

Yes, I finally realized what mthreads actually does.  It's still useful, 
if your trn was compiled to support it (definitely speeds up opening a 
group, if the group's thread file is up to date).  But it requires you to 
run mthreads periodically to update the thread database, which is kind of 
a pain.  Would be nice if trn would sense an outdated thread file and 
update it on the fly.
 
>If you're using NNTP to read your news, *make* sure your remote site
>supports Overview support and compile trn to use it.  You'll still have
>to download the thread files, but you won't have to thread on the fly.

I finally compiled the nntpclient1.6 package and it solved everything.  Now, 
trn will use either the local thread file, if it determines that it's up 
to date, or NOV from the remote otherwise.  Best of both worlds!  And no 
more interminable updates every time I post.  A 100% cure!  Yay!  :-)
-- 
Conrad Sabatier -- http://www.neosoft.com/~conrads

Re: mthreads for trn (FreeBSD)
#23429
Author: Larry W. Virden
Date: Wed, 26 Jun 1996 00:00
12 lines
1255 bytes

mthreads is an alternative to the NOV threading done by some of the 
newer news packages.  mthreads threads articles just fine and can be
used by all versions of trn, including the alpha trn 4.0.
-- 
:s Larry W. Virden                 INET: lvirden@cas.org
:s <URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
:s Unless explicitly stated to the contrary, nothing in this posting should
:s be construed as representing my employer's opinions.

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