Thread View: news.software.nntp
2 messages
2 total messages
Started by Brian
Sun, 25 Jan 1998 00:00
MMAP_PTR/Linux
Author: Brian
Date: Sun, 25 Jan 1998 00:00
Date: Sun, 25 Jan 1998 00:00
25 lines
1476 bytes
1476 bytes
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? Also what are you all using for MMAP_SYNC, and MSYNC_3_ARG in Linux? Currently I have these set to DONT Brian /-------------------------- signal@shreve.net -----------------------------\ | Brian Feeny | USR TC Hubs | ShreveNet Inc. (318)222-2638 | | Systems Administrator | Perl, Linux | Web hosting, online stores, | | ShreveNet Inc. | USR Pilot | Dial-Up 14.4-56k, ISDN & LANs | | 89 CRX DX w/MPFI, lots of |-=*:Quake:*=-| http://www.shreve.net/ | | mods/Homepage coming soon |LordSignal/SN| Quake server: 208.206.76.3 | \-------------------------- 318-222-2638 x109 -----------------------------/
Re: MMAP_PTR/Linux
Author: Karl Kleinpaste
Date: Mon, 26 Jan 1998 00:00
Date: Mon, 26 Jan 1998 00:00
32 lines
1757 bytes
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.
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