Skip to content

mmap constants in stdlib #12470

@ghost

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions