Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libc-bottom-half/sources/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static int file_get_read_stream(void *data, wasi_read_t *read) {
#endif
read->offset = &file->offset;
read->timeout = 0;
read->blocking = (file->oflag & O_NONBLOCK) == 0;
read->blocking = true;
return 0;
}

Expand Down Expand Up @@ -193,7 +193,7 @@ static int file_get_write_stream(void *data, wasi_write_t *write) {
#endif
write->offset = &file->offset;
write->timeout = 0;
write->blocking = (file->oflag & O_NONBLOCK) == 0;
write->blocking = true;
return 0;
}

Expand Down