Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fstat doesn't return S_IFSOCK for wasi:socket handles #537

Open
pavelsavara opened this issue Sep 20, 2024 · 1 comment
Open

fstat doesn't return S_IFSOCK for wasi:socket handles #537

pavelsavara opened this issue Sep 20, 2024 · 1 comment

Comments

@pavelsavara
Copy link

int fstat(int fildes, struct stat *buf) {
__wasi_filestat_t internal_stat;
__wasi_errno_t error = __wasi_fd_filestat_get(fildes, &internal_stat);
if (error != 0) {
errno = error;
return -1;
}
to_public_stat(&internal_stat, buf);
return 0;
}

@abrown
Copy link
Collaborator

abrown commented Sep 20, 2024

cc: @badeend, @dicej

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants