Commit Graph

14 Commits

Author SHA1 Message Date
Jeremy Soller ee40035c4b Add asprintf 2018-12-09 12:45:04 -07:00
Tibor Nagy d4308c8a9b Disable symbol mangling for C++ 2018-10-28 13:24:34 +01:00
jD91mZM2 b22d386177 Re-add EOF to bits header
cbindgen can't handle negative numbers, see https://github.com/eqrion/cbindgen/issues/205
2018-09-29 20:02:37 +02:00
jD91mZM2 afc1ff134a Rewrite IO to use core-io library 2018-09-26 16:13:09 +02:00
Jeremy Soller f1df1f9f0b Fix issue with stdio.h bits file not having FILE defined 2018-08-18 08:22:16 -06:00
jD91mZM2 e749d23030 Solve stdin/out/err UB in a better way 2018-07-25 14:29:14 +02:00
jD91mZM2 3e67314b97 Fix openlibm & fenv and add more integer types 2018-06-24 14:12:24 +02:00
jD91mZM2 ea24699798 Fix undefined behavior
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.
2018-06-22 21:17:44 +02:00
jD91mZM2 91221645c5 Add *scanf to header 2018-06-21 18:52:41 +02:00
Jeremy Soller 1b653c4e60 Update ralloc, fix invalid c++ names 2018-06-20 08:48:56 -06:00
Jeremy Soller 79d05d7eda Build variadic functions as part of relibc 2018-03-27 21:13:11 -06:00
Dan Robertson 75920d2c12 Add implementations of sprintf and snprintf
Add implementations of sprintf and snprintf so that we can get a bit
closer to compiling libc-test.
2018-03-10 02:33:03 +00:00
Jeremy Soller 5520526bef Implement printf (very simple version) 2018-03-03 19:47:01 -07:00
Jeremy Soller e30dec7124 WIP: stdio.h 2018-03-03 15:15:50 -07:00