Skip to content

Commit e9594c3

Browse files
committed
Add WNOHANG
1 parent f66367e commit e9594c3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

scripts/libc_posix.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"SEEK_CUR",
2929
"SEEK_END",
3030
"SEEK_SET",
31+
"WNOHANG",
3132
# Functions, not consts
3233
"WCOREDUMP",
3334
"WIFCONTINUED",

vm/src/stdlib/posix.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ pub mod module {
5151
#[pyattr]
5252
use libc::{
5353
F_OK, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, O_NONBLOCK, PRIO_PGRP, PRIO_PROCESS, PRIO_USER,
54-
R_OK, RTLD_GLOBAL, RTLD_LAZY, RTLD_LOCAL, RTLD_NOW, W_OK, WCONTINUED, WNOHANG, WUNTRACED,
55-
X_OK,
54+
R_OK, RTLD_GLOBAL, RTLD_LAZY, RTLD_LOCAL, RTLD_NOW, W_OK, WCONTINUED, WUNTRACED, X_OK,
5655
};
5756

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

221+
#[pyattr]
222+
use libc::WNOHANG;
223+
222224
#[pyattr]
223225
const EX_OK: i8 = exitcode::OK as i8;
224226

0 commit comments

Comments
 (0)