mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-08 02:40:28 +00:00
Add MADV_DONTNEED_LOCKED
definition from linux v5.18
see linux commit 9457056ac426e5ed0671356509c8dcce69f8dee0 mm: madvise: MADV_DONTNEED_LOCKED
This commit is contained in:
parent
ac2d192e0d
commit
7389355aae
3 changed files with 4 additions and 0 deletions
|
@ -271,6 +271,7 @@ syscon madv MADV_COLD 20 20 127 127 127 127 127 127 # TODO: a
|
|||
syscon madv MADV_PAGEOUT 21 21 127 127 127 127 127 127 # TODO: add support ?
|
||||
syscon madv MADV_POPULATE_READ 22 22 127 127 127 127 127 127 # TODO: add support ?
|
||||
syscon madv MADV_POPULATE_WRITE 23 23 127 127 127 127 127 127 # TODO: add support ?
|
||||
syscon madv MADV_DONTNEED_LOCKED 24 24 127 127 127 127 127 127 # TODO: add support ?
|
||||
syscon madv MADV_DOFORK 11 11 127 127 127 127 127 127 # TODO(jart): what is it?
|
||||
syscon madv MADV_DONTDUMP 16 16 127 127 127 127 127 127 # see MAP_CONCEAL in OpenBSD; TODO(jart): what is it?
|
||||
syscon madv MADV_DONTFORK 10 10 127 127 127 127 127 127 # TODO(jart): what is it?
|
||||
|
|
2
libc/sysv/consts/MADV_DONTNEED_LOCKED.S
Normal file
2
libc/sysv/consts/MADV_DONTNEED_LOCKED.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon madv,MADV_DONTNEED_LOCKED,24,24,127,127,127,127,127,127
|
|
@ -26,6 +26,7 @@ extern const unsigned MADV_COLD;
|
|||
extern const unsigned MADV_PAGEOUT;
|
||||
extern const unsigned MADV_POPULATE_READ;
|
||||
extern const unsigned MADV_POPULATE_WRITE;
|
||||
extern const unsigned MADV_DONTNEED_LOCKED;
|
||||
|
||||
#define MADV_NORMAL 0
|
||||
#define MADV_RANDOM 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue