Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/vm/src/stdlib/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ pub mod module {
};
use strum_macros::{EnumIter, EnumString};

#[cfg(target_os = "android")]
#[pyattr]
use libc::{SCHED_DEADLINE, SCHED_NORMAL};

#[cfg(target_os = "freebsd")]
#[pyattr]
use libc::{MFD_HUGE_MASK, SF_MNOWAIT, SF_NOCACHE, SF_NODISKIO, SF_SYNC};
Expand Down
4 changes: 2 additions & 2 deletions scripts/libc_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
) # TODO: Exclude matches if they have `(` after (those are functions)


LIBC_VERSION = "0.2.177"
LIBC_VERSION = "0.2.180"

EXCLUDE = frozenset(
{
Expand Down Expand Up @@ -96,7 +96,7 @@ def format_groups(groups: dict) -> "Iterator[tuple[str, str]]":

def main():
wanted_consts = get_consts(
"https://docs.python.org/3.13/library/os.html", # Should we read from https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Modules/posixmodule.c#L17023 instead?
"https://docs.python.org/3.14/library/os.html", # Should we read from https://github.com/python/cpython/blob/bcee1c322115c581da27600f2ae55e5439c027eb/Modules/posixmodule.c#L17023 instead?
pattern=OS_CONSTS_PAT,
)
available = {
Expand Down
Loading