Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std.os: add sysconf(), getDefaultPageSize() with smoke tests #16638

Closed
wants to merge 3 commits into from

Commits on Aug 22, 2023

  1. std.os: add sysconf(), getDefaultPageSize() with smoke tests

    sysconf() abstracts posix sysconf for comptime- and runtime probing.
    
    getDefaultPageSize() reads the Kernel provided default page size,
    which remains constant from program start to end.
    
    Reproduce added abi bits with:
    git clone --depth=1 https://github.com/DragonFlyBSD/DragonFlyBSD
    git clone --depth=1 https://git.FreeBSD.org/src.git freebsd
    git clone --depth=1 https://fuchsia.googlesource.com/fuchsia
    git clone --depth=1 https://github.com/haiku/haiku
    git clone --depth=1 https://github.com/Stichting-MINIX-Research-Foundation/minix/
    git clone --depth=1 https://github.com/NetBSD/src netbsd
    git clone --depth=1 https://github.com/openbsd/src openbsd
    git clone --depth=1 https://github.com/kofemann/opensolaris
    git clone --depth=1 https://github.com/apple-open-source-mirror/Libc
    rg 'define.*_SC_PAGE_SIZE' -B 1 --vimgrep
    
    Closes ziglang#11308.
    matu3ba committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b748110 View commit details
    Browse the repository at this point in the history
  2. const choice -> var choice

    matu3ba committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    587d3bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5f11466 View commit details
    Browse the repository at this point in the history