Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add WNOHANG
  • Loading branch information
ShaharNaveh committed Aug 31, 2025
commit e9594c3e8dcb390bb577c432600760dfb8974fc9
1 change: 1 addition & 0 deletions scripts/libc_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"SEEK_CUR",
"SEEK_END",
"SEEK_SET",
"WNOHANG",
# Functions, not consts
"WCOREDUMP",
"WIFCONTINUED",
Expand Down
6 changes: 4 additions & 2 deletions vm/src/stdlib/posix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ pub mod module {
#[pyattr]
use libc::{
F_OK, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, O_NONBLOCK, PRIO_PGRP, PRIO_PROCESS, PRIO_USER,
R_OK, RTLD_GLOBAL, RTLD_LAZY, RTLD_LOCAL, RTLD_NOW, W_OK, WCONTINUED, WNOHANG, WUNTRACED,
X_OK,
R_OK, RTLD_GLOBAL, RTLD_LAZY, RTLD_LOCAL, RTLD_NOW, W_OK, WCONTINUED, WUNTRACED, X_OK,
};

#[cfg(target_os = "freebsd")]
Expand Down Expand Up @@ -219,6 +218,9 @@ pub mod module {
#[pyattr]
use libc::{O_ASYNC, WEXITED, WNOWAIT, WSTOPPED};

#[pyattr]
use libc::WNOHANG;

#[pyattr]
const EX_OK: i8 = exitcode::OK as i8;

Expand Down
Loading