Commit Graph

34 Commits

Author SHA1 Message Date
jD91mZM2 4e99b55417 Implement basic setjmp using musl's awesome existing code 2018-06-23 17:38:10 +02:00
Jeremy Soller 895e250564 Add aligned_alloc 2018-06-20 09:53:27 -06:00
Jeremy Soller 9d38494435 Fix missing strtol, strtoul 2018-06-20 09:44:09 -06:00
Jeremy Soller 1b653c4e60 Update ralloc, fix invalid c++ names 2018-06-20 08:48:56 -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
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
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
Paul Sajna cdc6209ff4 fix comment 2018-03-21 20:12:22 -07:00
Paul Sajna cc5a4e92ce fmt 2018-03-20 19:45:45 -07:00
Paul Sajna 4db812d34d implement rand and srand 2018-03-20 19:31:58 -07:00
Justin Raymond a0c76f7ce5 bsearch 2018-03-18 17:11:43 -04:00
Sebastian Würl 55bd1adae0 stdlib: cleaner raw pointer handling in a64l 2018-03-11 13:23:36 +01:00
Sebastian Würl d4d808fcc8 Add implementation for a64l 2018-03-11 11:55:22 +01:00
Alex Lyon 9325a29a74 stdlib: make rustfmt happy with strtol() 2018-03-09 03:21:18 -08:00
Alex Lyon f5b1f872a0 stdlib: implement preliminary version of strtol() 2018-03-09 03:07:16 -08:00
Jeremy Soller 0e766c6b53 Implement atof 2018-03-08 20:17:45 -07:00
Dan Robertson ec288a1b53 Add ctype functions and atoi/atol
Add ctype functions
  - isalnum
  - isalpha
  - isascii
  - isdigit
  - islower
  - isspace
  - isupper
Add stdlib functions
  - atoi
  - atol
Fix some warnings
Make a fmt run
2018-03-08 05:26:40 +00:00
Jeremy Soller 543526cb85 Move crt0 and platform into src folder
Add cargo fmt script
2018-03-06 19:55:11 -07:00
Dan Robertson 846e495944 Get rustfmt passing on core relibc code
- Add a rustfmt config
 - Get the current code passing the formatter
2018-03-07 01:52:50 +00:00
Dan Robertson 2096b85115 Fix platform
- Add cfg to extern crate sc. It is not used by redox.
 - Fix bad syntax in brk implementation for redox
 - nits
   - style: update brk implementation for linux
   - style: no space between not operator and ptr.is_null
   - style: should be a space around = in module path
2018-03-07 01:52:50 +00:00
Jeremy Soller 654ca47351 Fix atexit_funcs call in exit 2018-03-04 08:15:26 -07:00
Paul Sajna ef9545cf71 missing parens 2018-03-04 04:43:05 -08:00
Paul Sajna cdf5cb2d56 fix atexit 2018-03-04 04:34:22 -08:00
Paul Sajna ee6ffbe73e fix Options 2018-03-03 20:55:32 -08:00
Paul Sajna 2b16a3693e wrap all function parameters in Options 2018-03-03 19:42:29 -08:00
Jeremy Soller 083fd72e66 Reorganize 2018-03-03 20:24:40 -07:00