4 ms·
You can do this with mmap(). Just use PROT_NONE, you'll get a mapping but you can't read, write, or execute it. Sure, it will show up in the "virtual memory" u
by klodolph 8y ago
You can do this with mmap(). Just use PROT_NONE, you'll get a mapping but you can't read, write, or execute it.
Sure, it will show up in the "virtual memory" usage of your process. That's just how the virtual memory accounting works.