为DragonOS移植了的relibc

Tom Almeida 90c6937f17 Changed FILE to use a vector as a buffer instead of raw pointers. This allows us to remove the large majority of unsafe blocks from the code %!s(int64=7) %!d(string=hai) anos
cbindgen @ 95821b3bbe 6d110ef0cb Use a sys module for OS specific information %!s(int64=7) %!d(string=hai) anos
include 996445a6a3 Add empty locale functions %!s(int64=7) %!d(string=hai) anos
openlibm @ b7b3b4bc31 3267409c57 Add very basic example %!s(int64=7) %!d(string=hai) anos
ralloc @ 2d8d44970e 1b653c4e60 Update ralloc, fix invalid c++ names %!s(int64=7) %!d(string=hai) anos
src 90c6937f17 Changed FILE to use a vector as a buffer instead of raw pointers. This allows us to remove the large majority of unsafe blocks from the code %!s(int64=7) %!d(string=hai) anos
tests 0a3c8abe95 Fix setlocale return value %!s(int64=7) %!d(string=hai) anos
va_list @ 1e7a8b6b6f 5936c7a76e Add scanf %!s(int64=7) %!d(string=hai) anos
.gitignore f60fafe8fb * create basic strtok %!s(int64=7) %!d(string=hai) anos
.gitmodules a573549df8 Update links to gitlab %!s(int64=7) %!d(string=hai) anos
.travis.yml 6a4220458c ci: Ensure that the correct compiler is installed %!s(int64=7) %!d(string=hai) anos
Cargo.lock 996445a6a3 Add empty locale functions %!s(int64=7) %!d(string=hai) anos
Cargo.toml 996445a6a3 Add empty locale functions %!s(int64=7) %!d(string=hai) anos
LICENSE ba515d83df Create LICENSE %!s(int64=7) %!d(string=hai) anos
Makefile afdc80629f Fix Makefile spurious rebuilds %!s(int64=7) %!d(string=hai) anos
README.md fd05aca991 Update README.md %!s(int64=7) %!d(string=hai) anos
bindgen_transform.sh 799c8828c2 mkdir and rmdir %!s(int64=7) %!d(string=hai) anos
build.rs dc769fd977 Run ./fmt.sh %!s(int64=7) %!d(string=hai) anos
ci.sh e1abe80992 Fix CI %!s(int64=7) %!d(string=hai) anos
fmt.sh 6ced871d9a ctype: tests and reorganize %!s(int64=7) %!d(string=hai) anos
rust-toolchain d4308b4c5d Update rust toolchain and lock file %!s(int64=7) %!d(string=hai) anos
rustfmt.toml 846e495944 Get rustfmt passing on core relibc code %!s(int64=7) %!d(string=hai) anos

README.md

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

  • Redox OS
  • Linux

Supported architectures

  • x86_64
  • Aarch64