Skip to content

Commit deb29f7

Browse files
committed
Add getpid in wasi
1 parent 66171ee commit deb29f7

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
@@ -729,6 +729,8 @@ extern "C" {
729729
pub fn getcwd(buf: *mut c_char, size: ::size_t) -> *mut c_char;
730730
pub fn chdir(dir: *const c_char) -> ::c_int;
731731

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

0 commit comments

Comments
 (0)