Just ran into this while trying to interface with libwayland-client without bindings. std.os.mmap takes u32 for the prot and flags arguments. There are constants for these in C, such as PROT_READ, PROT_WRITE, and MAP_SHARED. Zig should have constants like that.
Just ran into this while trying to interface with libwayland-client without bindings.
std.os.mmaptakes u32 for theprotandflagsarguments. There are constants for these in C, such asPROT_READ,PROT_WRITE, andMAP_SHARED. Zig should have constants like that.