Skip to content
Snippets Groups Projects
Forked from redox-os / relibc
2251 commits behind the upstream repository.
Alex Lyon's avatar
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.
0cabecd5
History

relibc build

relibc is a portable POSIX C standard library written in Rust. It is under heavy development, and currently supports Redox and Linux.

The motivation for this project is twofold: Reduce issues the redox crew was having with newlib, and create a safer alternative to a C standard library written in C. It is mainly designed to be used under redox, as an alternative to newlib, but it also supports linux syscalls via the sc crate.

Contributing

Just search for any invocation of the unimplemented macro, and hop in! The ci server checks builds for linux and redox, checks formatting (via rustfmt), and runs the test suite. Run ci.sh locally to check that your changes will pass travis. Use fmt.sh to format your code and make test to run the C test suite.

Supported OSes

  • RedoxOS
  • Linux

Supported architectures

  • x86_64
  • Aarch64