Skip to content

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

Open
@pavelsavara

Description

@pavelsavara

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions