🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10321

Re: Probs with innfeed 0.8.5b on Solaris

#10321
From: Joe Greco
Date: Thu, 22 Aug 1996 00:00
43 lines
2237 bytes
In news.software.nntp article <4vhun0$90g@gw.home.vix.com>, brister@gw.home.vix.com (James Brister) wrote:
:As for mmap(). You need a open file descriptor for that, and file
:descriptors are a pretty precious resource. Until INN has an

Really???

Ummmm..  not to differ with you, but I do not agree with that:  :-)

SunOS 4.1.3, man mmap(), page 1:

     close(2V) does not unmap pages of the object referred to  by
     a descriptor.  Use munmap(2) to remove a mapping.

Solaris 2.5.1, man mmap(), page 1:

     Mappings established from fildes  are  not  removed  upon  a
     close(2) of that descriptor.  Use munmap(2) to remove a map-
     ping.

FreeBSD 2.1.5R, man mmap(), page 2 I think:

     The close(2) function does not unmap pages, see munmap(2) for further in-
     formation.

These are all the platforms I have immediate access to, but I am NOT aware
of any such restriction on ANY OS.

This has, in fact, been one way I've seen people get around the FD limit of
SunOS for particular applications...

I think it might be mildly hairy for innfeed, only because you would need
to do output processing of the article..  you need to look for any "\n."
sequences and add an additional '.'.  I assume that you probably do that
while reading in an article right now.. hm.. yes, in nntpPrepareBuffer..

Still, this is easy to do and can be done with zero string manipulation,
particularly if you are willing to take an extra write() hit in the case
where you do have a '.'-quoted line.

... JG

Technical Details
Message-ID: <4vi124$o7u@brasil.moneng.mei.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4vc7hk$sjj@news2.cais.com> <4vgpmj$sfe@gw.home.vix.com> <4vht04$o3d@brasil.moneng.mei.com> <4vhun0$90g@gw.home.vix.com>

Show Full Headers
Complete Article Headers
Message-ID: <4vi124$o7u@brasil.moneng.mei.com>
Subject: Re: Probs with innfeed 0.8.5b on Solaris
Date: Thu, 22 Aug 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <4vc7hk$sjj@news2.cais.com> <4vgpmj$sfe@gw.home.vix.com> <4vht04$o3d@brasil.moneng.mei.com> <4vhun0$90g@gw.home.vix.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 175739996
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp