Skip to content

Commit ac09d6d

Browse files
authored
Merge pull request #1804 from sunfishcode/seekdir-telldir
Declare `seekdir` and `telldir` for WASI.
2 parents b973845 + c7011f4 commit ac09d6d

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
@@ -515,6 +515,8 @@ extern "C" {
515515
pub fn closedir(dirp: *mut ::DIR) -> ::c_int;
516516
pub fn rewinddir(dirp: *mut ::DIR);
517517
pub fn dirfd(dirp: *mut ::DIR) -> ::c_int;
518+
pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long);
519+
pub fn telldir(dirp: *mut ::DIR) -> ::c_long;
518520

519521
pub fn openat(
520522
dirfd: ::c_int,

0 commit comments

Comments
 (0)