initialize WASI stdio handles to invalid for better error handling (#4092)

* initialize WASI stdio handles to invalid for better error handling
* implement os_invalid_raw_handle function for consistent invalid handle representation
This commit is contained in:
liang.he
2025-05-08 08:47:07 +08:00
committed by GitHub
parent 0e8b57d8a8
commit 216404d7cb
11 changed files with 71 additions and 2 deletions

View File

@ -1032,4 +1032,10 @@ char *
os_realpath(const char *path, char *resolved_path)
{
return realpath(path, resolved_path);
}
}
os_raw_file_handle
os_invalid_raw_handle(void)
{
return -1;
}