[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: detecting mmap?
From: |
Bruce Korb |
Subject: |
Re: detecting mmap? |
Date: |
Fri, 19 Jul 2002 08:58:42 -0700 |
Donn Terry wrote:
> I've run across at least a couple of real-world examples where mmap()
> (either without
> MAP_PRIVATE at all or limited to prior mmap()ed addresses) is still
> quite useful. (In
> fact, the applications run just fine.) I'll have to refresh myself on
> which ones; that
> was some time ago.
Assuming you meant "FIXED", the worst wart I've bumped into is when
I have wanted to mmap a text file that happens to be a multiple of
the page size. strlen() seg faults. It takes some contortions to
mmap an anonymous page after the valid file data. Ick.