Skip to content

Commit 89241f0

Browse files
authored
Merge pull request #3670 from youknowone/wasi-getpid
Add getpid in wasi
2 parents 57a165b + 3cb48e9 commit 89241f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wasi.rs

+2
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)