🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25589

Re: MMAP_PTR/Linux

#25589
From: Karl Kleinpaste
Date: Mon, 26 Jan 1998 00:00
32 lines
1757 bytes
Brian <signal@shreve.net> writes:
> I was wondering if anyone knew what the correct value was for MMAP_PTR in
> Linux (inn-1.7.x).
> I have seen people post configurations here for Linux using "void *".
> Currently I use what the sample-configs had which is "caddr_t".  Which is
> correct?

This depends on what libc you've got.

When my server was RedHat 4.0, I used void *, because <sys/mman.h>
uses __ptr_t which in turn is a void *.

Having upgraded to 5.0, with glibc, <sys/mman.h> says caddr_t.  I
haven't bothered actually to change it, as it doesn't matter in
practice.

Both 4.0 and 5.0 man pages show void * for mmap().

> Also what are you all using for MMAP_SYNC, and MSYNC_3_ARG in Linux?
> Currently I have these set to DONT

From the man page:

       Without use of this call there is no guarantee that
       changes are written back before munmap(2) is called.

I set them to DO, 'cuz it can't hurt, and might help.

Check DejaNews for discussion on this subject, January 14-15.

Technical Details
Message-ID: <vxkpvlfp4yu.fsf@pocari-sweat.jprc.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: <Pine.LNX.3.96.980125230358.3528A-100000@mercury.shreve.net>

Show Full Headers
Complete Article Headers
Message-ID: <vxkpvlfp4yu.fsf@pocari-sweat.jprc.com>
Subject: Re: MMAP_PTR/Linux
Date: Mon, 26 Jan 1998 00:00:00 +0000
From: Karl Kleinpaste <karl@jprc.com>
References: <Pine.LNX.3.96.980125230358.3528A-100000@mercury.shreve.net>
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: 319408789
X-Face: "5(T0tZd{6}pd~YzBG8O/*EW,.]6]@`m^e;fv65W^Y&=d"M\1H}>T~4_.kcDD.O~y3k)a6h R;Nmi>9|>Nm${2IpM0^RcUEa\jcq?KOP)C&~x51l~zCHTulL^_T|u0I^kB'z@]{`2YjQu
Organization: Justsystem Pittsburgh Research Center
Newsgroups: news.software.nntp