From 99787646d6cf185c98c32592dfe71b0ac6d78210 Mon Sep 17 00:00:00 2001 From: ShaharNaveh <50263213+ShaharNaveh@users.noreply.github.com> Date: Sat, 31 Jan 2026 18:40:09 +0200 Subject: [PATCH] Update os constant to libc 0.2.180 & target cpython 3.14 --- crates/vm/src/stdlib/posix.rs | 4 ++++ scripts/libc_posix.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/vm/src/stdlib/posix.rs b/crates/vm/src/stdlib/posix.rs index 84d27f2286e..31b92137d57 100644 --- a/crates/vm/src/stdlib/posix.rs +++ b/crates/vm/src/stdlib/posix.rs @@ -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}; diff --git a/scripts/libc_posix.py b/scripts/libc_posix.py index 73f082a0658..be375aebe8f 100644 --- a/scripts/libc_posix.py +++ b/scripts/libc_posix.py @@ -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( { @@ -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 = {