Commit Graph

433 Commits

Author SHA1 Message Date
Jeremy Soller c8d4ea3ee6 Merge pull request #123 from Arcterus/qsort-real
stdlib: implement qsort() as an introsort
2018-05-15 18:31:50 -06:00
Jeremy Soller 4fb4790890 Merge pull request #122 from Arcterus/qsort
Fix a bug in printf()
2018-05-15 18:31:21 -06:00
Alex Lyon f5ded007c6 stdlib: recurse into the smaller partition when sorting 2018-05-13 16:16:48 -07:00
Alex Lyon 4d3ac1c0dc stdlib: save stack space by looping in introsort_helper() 2018-05-13 03:29:53 -07:00
Alex Lyon b15aa83a8a stdlib: move insertion sort from introsort() into a separate function 2018-05-13 03:15:16 -07:00
Alex Lyon aa21e5fc3f stdlib: implement qsort() as an introsort 2018-05-13 03:07:00 -07:00
Jeremy Soller 6e8e6ad5d2 Merge pull request #121 from Arcterus/strtoul
stdlib: implement strtoul() and strtol() using a macro
2018-05-12 06:24:18 -06:00
Alex Lyon 0cabecd5b5 stdio, string, platform: fix a bug in printf() involving chars
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.
2018-05-11 23:09:12 -07:00
Alex Lyon 1bcc40c08f stdlib: manually fix formatting 2018-05-11 09:31:58 -07:00
Alex Lyon 7647db27c0 stdlib: implement strtoul() and strtol() using a macro 2018-05-11 01:48:27 -07:00
Jeremy Soller 018f950851 Merge branch 'master' of https://github.com/jeizsm/relibc 2018-04-26 20:14:53 -06:00
Jeremy Soller 08091ab2a9 Merge branch 'stat' of https://github.com/sajattack/relibc 2018-04-26 20:12:57 -06:00
Marat Safin ff37adeeba add asctime
Signed-off-by: Marat Safin <jeizsm@gmail.com>
2018-04-19 07:59:58 +03:00
Jeremy Soller 43e6cad33f Merge pull request #112 from jeizsm/master
add gmtime and difftime
2018-04-17 10:07:12 -06:00
Marat Safin 8015878a73 use static variable for gmtime 2018-04-15 08:56:09 +03:00
Marat Safin 2b21dca567 add gmtime and difftime 2018-04-14 09:01:04 +03:00
Jeremy Soller 93e2e16077 Merge pull request #118 from dlrobertson/fix_ci
ci: Ensure that the correct compiler is installed
2018-04-08 12:16:01 -06:00
Dan Robertson 6a4220458c ci: Ensure that the correct compiler is installed
Ensure that a compiler is installed when the aarch64 CI build is run.
2018-04-08 13:52:34 +00:00
Jeremy Soller 722732b616 Merge pull request #114 from HermannDppes/format
Run ./fmt.sh
2018-04-04 16:07:37 -06:00
Hermann Döppes dc769fd977 Run ./fmt.sh 2018-04-04 22:52:06 +02:00
Jeremy Soller 3f627b1b40 Remove asserts 2018-04-03 19:52:50 -06:00
Jeremy Soller 5b1e11d1b1 Fix minimum alignment for malloc_inner 2018-04-03 19:52:34 -06:00
Jeremy Soller 62fbff93bc Clean up malloc 2018-04-03 19:51:50 -06:00
Jeremy Soller 742339ca9e Hacky version of memalign 2018-04-03 19:45:36 -06:00
Jeremy Soller dabd8dc6a2 Move memory handling into string, do not use compiler_builtins for memory handling 2018-03-27 21:28:48 -06:00
Jeremy Soller 79d05d7eda Build variadic functions as part of relibc 2018-03-27 21:13:11 -06:00
Jeremy Soller b849165438 Fix MAX_C macros 2018-03-27 20:33:04 -06:00
Jeremy Soller ea804582b9 Rename sys header crates, add mman constants 2018-03-27 20:25:42 -06:00
Jeremy Soller afdc80629f Fix Makefile spurious rebuilds
Add mem* functions to stdio
Add constant int functions
2018-03-27 20:14:22 -06:00
Paul Sajna 92493a55b9 fix harderer 2018-03-26 21:23:36 -07:00
Paul Sajna bc0763f3ef fmt 2018-03-26 21:17:14 -07:00
Paul Sajna 14957bb8dc fix harder 2018-03-26 21:14:38 -07:00
Jeremy Soller 6999363916 Create build directory if necessary in openlibm target 2018-03-26 20:41:02 -06:00
Jeremy Soller 78c8c2171b Add install target 2018-03-26 20:13:45 -06:00
Jeremy Soller 8c218b1608 Build crt0 as object file 2018-03-26 20:06:46 -06:00
Jeremy Soller d071522bc5 Add libm to phony 2018-03-26 19:59:42 -06:00
Jeremy Soller adcd0c9900 Only update libcrt0.a if there is a source change 2018-03-26 19:49:21 -06:00
Jeremy Soller e1abe80992 Fix CI 2018-03-26 19:34:45 -06:00
Jeremy Soller 6abd64ae16 Disable cargo cache 2018-03-26 19:13:49 -06:00
Jeremy Soller 47ee733afa Complete Makefile 2018-03-26 19:12:20 -06:00
Jeremy Soller ae137dbc03 Prepare for cross compiled openlibm 2018-03-26 18:50:51 -06:00
Jeremy Soller d9e4622f83 Add Makefile (WIP) 2018-03-26 18:38:29 -06:00
Jeremy Soller f0b41aa57e Merge pull request #104 from dlrobertson/rename
stdio: Implement rename
2018-03-26 18:22:22 -06:00
Jeremy Soller e39d2d61fa Merge branch 'master' into rename 2018-03-26 18:22:13 -06:00
Paul Sajna c7e9ec8ae2 fix 2018-03-26 16:47:12 -07:00
Paul Sajna c7ad4d3997 Merge branch 'stat' of github.com:sajattack/relibc into stat 2018-03-26 15:48:06 -07:00
Paul Sajna cafb76abdd mkfifo and constants 2018-03-26 15:47:36 -07:00
Paul 6d11736603 Merge branch 'master' into stat 2018-03-26 15:34:43 -07:00
Jeremy Soller bbf5c34ce8 Merge pull request #108 from mmstick/kill
Implement kill() and killpg()
2018-03-25 18:56:09 -06:00
Michael Aaron Murphy 43e95a9b92 Implement kill() and killpg() 2018-03-25 14:40:44 -04:00