authorgravatar for devnexen@gmail.comDavid Carlier <devnexen@gmail.com> 2023-04-04 21:37:34+01:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-04-05 13:54:01+03:00
log080136e4adf1efd93867ef5002153d6e02fe21ae
tree848cebf4e2b64bf13eabeb31d42dd2f20e3e70fc
parentf86f531e9c3878089d13ac48505a9e8845f81f28

std: add madvise flags to freebsd


1 files changed, 14 insertions(+), 0 deletions(-)

lib/std/c/freebsd.zig+14
...@@ -629,6 +629,20 @@ pub const MAP = struct {...@@ -629,6 +629,20 @@ pub const MAP = struct {
629 pub const ALIGNED_SUPER = ALIGNED(1);629 pub const ALIGNED_SUPER = ALIGNED(1);
630};630};
631631
632pub const MADV = struct {
633 pub const NORMAL = 0;
634 pub const RANDOM = 1;
635 pub const SEQUENTIAL = 2;
636 pub const WILLNEED = 3;
637 pub const DONTNEED = 4;
638 pub const FREE = 5;
639 pub const NOSYNC = 6;
640 pub const AUTOSYNC = 7;
641 pub const NOCORE = 8;
642 pub const CORE = 9;
643 pub const PROTECT = 10;
644};
645
632pub const MSF = struct {646pub const MSF = struct {
633 pub const ASYNC = 1;647 pub const ASYNC = 1;
634 pub const INVALIDATE = 2;648 pub const INVALIDATE = 2;