Skip to content

Commit 07ba834

Browse files
ShaharNavehyouknowone
authored andcommitted
Update os constant to libc 0.2.180 & target cpython 3.14
1 parent d04a50e commit 07ba834

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

crates/vm/src/stdlib/posix.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ pub mod module {
4141
};
4242
use strum_macros::{EnumIter, EnumString};
4343

44+
#[cfg(target_os = "android")]
45+
#[pyattr]
46+
use libc::{SCHED_DEADLINE, SCHED_NORMAL};
47+
4448
#[cfg(target_os = "freebsd")]
4549
#[pyattr]
4650
use libc::{MFD_HUGE_MASK, SF_MNOWAIT, SF_NOCACHE, SF_NODISKIO, SF_SYNC};

scripts/libc_posix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
) # TODO: Exclude matches if they have `(` after (those are functions)
1414

1515

16-
LIBC_VERSION = "0.2.177"
16+
LIBC_VERSION = "0.2.180"
1717

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

9797
def main():
9898
wanted_consts = get_consts(
99-
"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?
99+
"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?
100100
pattern=OS_CONSTS_PAT,
101101
)
102102
available = {

0 commit comments

Comments
 (0)