Commits on Source (87)
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Paul Sajna authored
-
Dan Robertson authored
Ensure that a compiler is installed when the aarch64 CI build is run.
-
Jeremy Soller authored
ci: Ensure that the correct compiler is installed
-
Marat Safin authored
-
Marat Safin authored
-
Jeremy Soller authored
add gmtime and difftime
-
Marat Safin authored
Signed-off-by:
Marat Safin <jeizsm@gmail.com>
-
Moses Miller authored
-
Moses Miller authored
-
Alex Lyon authored
-
Alex Lyon authored
-
Moses Miller authored
-
Moses Miller authored
-
Moses Miller authored
-
Moses Miller authored
-
Alex Lyon authored
Because we were previously converting the bytes in the format string into Rust's char type and then printing that using the format machinery, byte values that were not valid single-byte UTF-8 characters failed to print correctly. I found this while trying to implement qsort() because the output of my test program was mysteriously incorrect despite it working when I used glibc.
-
Jeremy Soller authored
stdlib: implement strtoul() and strtol() using a macro
-
Alex Lyon authored
-
Alex Lyon authored
-
Alex Lyon authored
-
Alex Lyon authored
-
Matija Skala authored
-
Jeremy Soller authored
Fix a bug in printf()
-
Jeremy Soller authored
stdlib: implement qsort() as an introsort
-
Jeremy Soller authored
Implement clock() and add CLOCK_* constants
-
Jeremy Soller authored
Add optimized version of memchr
-
Jeremy Soller authored
-
Valentin Lorentz authored
-
Jeremy Soller authored
Update ralloc. Closes GH-83.
-
stratact authored
-
stratact authored
-
stratact authored
-
stratact authored
-
stratact authored
-
Ian Douglas Scott authored
This is technically more correct, and matches the pointer methods in the standard library.
-
Ian Douglas Scott authored
The original implementation is modified from the `Cstr` method, but the complexity there exists because it is trying to convert to the DST `Cstr`.
-
Jeremy Soller authored
Simplify cstr_from_bytes_with_nul_unchecked()
-
Jeremy Soller authored
Make functions taking raw pointer return &'a instead of &'static
-
stratact authored
-
stratact authored
-
stratact authored
-
Jeremy Soller authored
Update `platform::rawfile`
-
Jeremy Soller authored
-
Jeremy Soller authored
-
stratact authored
-
Jeremy Soller authored
Add `sys_wait` functions (Fixes #81) Closes #81 See merge request redox-os/relibc!131
-
Jasen Borisov authored
-
Jeremy Soller authored
Fix compilation error in `sys_wait` See merge request !132
-
Jeremy Soller authored
-
Jeremy Soller authored
-
Jeremy Soller authored
-
Jasen Borisov authored
Remove the broken Rust functions and instead provide C macros in a `include/bits` header. The C macros were taken from musl.
-
Jeremy Soller authored
sys_wait: implement C macros properly See merge request !133
-
jD91mZM2 authored
-
jD91mZM2 authored
-
Jeremy Soller authored
Add scanf See merge request !134
-
jD91mZM2 authored
-
jD91mZM2 authored
-
Jeremy Soller authored
Add empty locale functions See merge request !135
-
jD91mZM2 authored
-
jD91mZM2 authored
Transmuting from an immutable to a mutable reference is undefined behavior in Rust, with the exception of UnsafeCell which tells the optimizer to not draw too many conclusions. Sadly UnsafeCell::get cannot yet be used in statics (see https://github.com/rust-lang/rust/issues/51718), so this works around that by making the statics into functions and making C macros to call those.
-
Jeremy Soller authored
Fix undefined behavior See merge request !137
-
jD91mZM2 authored
-
jD91mZM2 authored
-
jD91mZM2 authored
-
Jeremy Soller authored
Install openlibm from Makefile See merge request !138
-
jD91mZM2 authored
-
jD91mZM2 authored
-
Jeremy Soller authored
Reuse musl's setjmp implementation See merge request !139
-
jD91mZM2 authored
-
jD91mZM2 authored
-
Jeremy Soller authored
Fix openlibm & fenv and add more integer types See merge request !141
-
Jeremy Soller authored
-
Jeremy Soller authored
-
jD91mZM2 authored
Turns out that this only worked because I didn't clean before rebuilding, so it still had access to the old files. Sorry.
-
Jeremy Soller authored
Revert openlibm install script See merge request !143
Showing
- .gitmodules 4 additions, 4 deletions.gitmodules
- .travis.yml 2 additions, 0 deletions.travis.yml
- Cargo.lock 83 additions, 71 deletionsCargo.lock
- Cargo.toml 8 additions, 2 deletionsCargo.toml
- Makefile 4 additions, 3 deletionsMakefile
- README.md 1 addition, 1 deletionREADME.md
- include/bits/locale.h 7 additions, 0 deletionsinclude/bits/locale.h
- include/bits/setjmp.h 67 additions, 0 deletionsinclude/bits/setjmp.h
- include/bits/stdio.h 9 additions, 0 deletionsinclude/bits/stdio.h
- include/bits/sys/wait.h 13 additions, 0 deletionsinclude/bits/sys/wait.h
- include/math.h 1 addition, 0 deletionsinclude/math.h
- include/stdint.h 66 additions, 0 deletionsinclude/stdint.h
- include/sys/types.h 2 additions, 0 deletionsinclude/sys/types.h
- ralloc 1 addition, 1 deletionralloc
- rust-toolchain 1 addition, 1 deletionrust-toolchain
- src/c/stdio.c 33 additions, 0 deletionssrc/c/stdio.c
- src/crt0/src/lib.rs 12 additions, 4 deletionssrc/crt0/src/lib.rs
- src/fenv/cbindgen.toml 1 addition, 1 deletionsrc/fenv/cbindgen.toml
- src/lib.rs 27 additions, 4 deletionssrc/lib.rs
- src/locale/Cargo.toml 11 additions, 0 deletionssrc/locale/Cargo.toml
This diff is collapsed.
... | ... | @@ -11,18 +11,19 @@ crate-type = ["staticlib"] |
members = ["src/crt0"] | ||
[build-dependencies] | ||
cc = "1.0" | ||
cc = "1.0.17" | ||
[dependencies] | ||
compiler_builtins = { git = "https://github.com/rust-lang-nursery/compiler-builtins.git", default-features = false } | ||
ctype = { path = "src/ctype" } | ||
errno = { path = "src/errno" } | ||
fcntl = { path = "src/fcntl" } | ||
fenv = { path = "src/fenv" } | ||
float = { path = "src/float" } | ||
grp = { path = "src/grp" } | ||
locale = { path = "src/locale" } | ||
netinet = { path = "src/netinet" } | ||
platform = { path = "src/platform" } | ||
setjmp = { path = "src/setjmp" } | ||
semaphore = { path = "src/semaphore" } | ||
signal = { path = "src/signal" } | ||
stdio = { path = "src/stdio" } | ||
... | ... | @@ -38,6 +39,11 @@ time = { path = "src/time" } |
unistd = { path = "src/unistd" } | ||
wctype = { path = "src/wctype" } | ||
[dependencies.compiler_builtins] | ||
git = "https://github.com/rust-lang-nursery/compiler-builtins.git" | ||
default-features = false | ||
features = ["no-lang-items"] | ||
[profile.dev] | ||
panic = "abort" | ||
... | ... |
include/bits/locale.h
0 → 100644
include/bits/setjmp.h
0 → 100644
include/bits/sys/wait.h
0 → 100644
src/locale/Cargo.toml
0 → 100644