-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Orca libC. This is a combination of 45 commits:
* start of orca-libc * adding intscan/floatscan, strtod/strtol * add dummy crt to allow linking to orca-libc just by passing --sysroot=orca-libc * adding scanf and stb_sprintf implementations * added malloc * added minimal wide char support for vfscanf * adding abort * Adding exit/_Exit/atexit * testing replacement of libc-shim with orca-libc * fix oc_bridge_exit def in core_api.json * Pre-compile orca-libc and orca wasm sdk when building the runtime * wip fileio * first pass FILE interfaces implemented * add fprintf/fscanf * update libc notes * disable clang-format for libc * wip migrating to musl implementations of FILE functions * first pass migrating to musl FILE functions * samples build with new libc (win32 only) * rework win32 sample build scripts to use --sysroot approach * Adding --test support to orca runtime * Specifying --test=path_to_wasm_module will run a special harness oc_on_test() that returns an exit code - 0 for success. The orca runtime will immediately exit after running the test. * bugfix in win32 oc_io_raw_open_at: comparing wrong flags * stdio libc fixes * expose feof and ferror as real functions so they can be used by client code * moved ofl_add.c into correct folder * fixed some fopen -> orca flags * fseek() shim bugfix: translating between orca/libc whence flags * Fix oc_bridge_io_wait_single_req to not error when buffer is null if operation does not require a buffer (e.g. OC_IO_SEEK) * wip wasm stdio tests * stdio wasm test: ferror() and clearerr() * stdio wasm tests: test_jail() * orca libc: putc/getc and more tests * test_eof * test_getputc * test_getsetpos * orca libc: fgets/fputs and tests * orca libc: wip fprintf/fscanf test * update wasm test run.sh * orca libc: fprintf/fscanf and tests * update samples build.bat to not have --no-default-libraries * ftell test * libc stdio: rewind * libc stdio: freopen * libc stdio: setbuf and setvbuf * add implementations for a few more printf variants * replace stb sprintf with musl version * orca libc: ungetc * add std handles stdout, stderr, stdin * they print errors on any operations, but can be freopen-ed to be redirected to a file * avoid crash on fclose() std handle * orca libc: perror * update macos sample build scripts Co-authored-by: Reuben Dunnington <[email protected]> Co-authored-by: Martin Fouilleul <[email protected]>
- Loading branch information
1 parent
3d90657
commit dac2644
Showing
634 changed files
with
29,131 additions
and
3,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ build | |
*.app | ||
*.dylib | ||
*.a | ||
*.o | ||
*.d | ||
|
||
Debug/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.