Date: Tue, 30 Apr 2024 07:47:35 -0700
On Tuesday 30 April 2024 07:05:36 GMT-7 Frederick Virchanza Gotham via Std-
Proposals wrote:
> If it's read-only then use the non-copying constructor instead. On
> MS-Windows, 'VirtualProtect' gives us this info. On Linux, 'mprotect'
> give us this info.
No, those two functions *set* that info. They don't give it to you.
VirtualQuery does on Windows. There's no POSIX equivalent to query.
And besides, mmap()ed memory can be unmapped.
Proposals wrote:
> If it's read-only then use the non-copying constructor instead. On
> MS-Windows, 'VirtualProtect' gives us this info. On Linux, 'mprotect'
> give us this info.
No, those two functions *set* that info. They don't give it to you.
VirtualQuery does on Windows. There's no POSIX equivalent to query.
And besides, mmap()ed memory can be unmapped.
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Principal Engineer - Intel DCAI Cloud Engineering
Received on 2024-04-30 14:47:39