Skip to content

Commit 3cb48e9

Browse files
youknowoneJohnTitor
authored andcommitted
Add getpid in wasi
1 parent 57a165b commit 3cb48e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wasi.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ extern "C" {
730730
pub fn getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char;
731731
pub fn chdir(dir: *const c_char) -> ::c_int;
732732

733+
pub fn getpid() -> pid_t;
734+
733735
pub fn nl_langinfo(item: ::nl_item) -> *mut ::c_char;
734736
pub fn nl_langinfo_l(item: ::nl_item, loc: ::locale_t) -> *mut ::c_char;
735737

0 commit comments

Comments
 (0)