Linux add definition for madvise flag (#883)

This commit is contained in:
michalbiesek 2023-09-06 21:34:54 +02:00 committed by GitHub
parent b21842ed7a
commit 8596e83cce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_COLD,20,20,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_COLLAPSE,25,25,127,127,127,127,127,127

View 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

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_KEEPONFORK,19,19,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_PAGEOUT,21,21,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_POPULATE_READ,22,22,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_POPULATE_WRITE,23,23,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_SOFT_OFFLINE,101,101,127,127,127,127,127,127

View file

@ -0,0 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon madv,MADV_WIPEONFORK,18,18,127,127,127,127,127,127

View file

@ -19,6 +19,15 @@ extern const unsigned MADV_REMOVE;
extern const unsigned MADV_SEQUENTIAL;
extern const unsigned MADV_UNMERGEABLE;
extern const unsigned MADV_WILLNEED;
extern const unsigned MADV_SOFT_OFFLINE;
extern const unsigned MADV_WIPEONFORK;
extern const unsigned MADV_KEEPONFORK;
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;
extern const unsigned MADV_COLLAPSE;
#define MADV_NORMAL 0
#define MADV_RANDOM 1