WebAssembly / WASI

WebAssembly System Interface
Other
4.75k stars 243 forks source link

Update docs.md #457

Closed ailisp closed 2 years ago

ailisp commented 2 years ago

According to man

       int stat(const char *pathname, struct stat *statbuf);
       int fstat(int fd, struct stat *statbuf);
       int lstat(const char *pathname, struct stat *statbuf);
...
       int fstatat(int dirfd, const char *pathname, struct stat *statbuf,
                   int flags);

path_filestate_get should be closer to fstatat instead of stat