Jeremy Soller
f0227e737e
Merge pull request #128 from ids1024/lifetime
...
Make functions taking raw pointer return &'a instead of &'static
2018-05-24 12:44:19 -06:00
Ian Douglas Scott
5bcf1d42ff
Simplify cstr_from_bytes_with_nul_unchecked()
...
The original implementation is modified from the `Cstr` method, but the
complexity there exists because it is trying to convert to the DST `Cstr`.
2018-05-24 11:27:35 -07:00
Ian Douglas Scott
cbd0d0473c
Make functions taking raw pointer return &'a instead of &'static
...
This is technically more correct, and matches the pointer methods in the
standard library.
2018-05-24 11:13:55 -07:00
stratact
b389e4831d
Have open() and dup() match -1 for Err instead of 0
2018-05-24 10:33:15 -07:00
stratact
9daae71c2a
Use the super module instead of sys
2018-05-23 19:35:28 -07:00
stratact
bb9d0e4aa1
Implement RawFile::from_raw_fd()
2018-05-23 13:14:42 -07:00
stratact
285d1b05c4
Implement RawFile::open() and add *_raw_df() convenience methods
2018-05-23 11:05:43 -07:00
stratact
7ca5fac214
Implement RawFile::dup() completely
2018-05-23 08:00:53 -07:00
Jeremy Soller
c647fdfed3
Merge pull request #116 from matijaskala/patch-1
...
Add optimized version of memchr
2018-05-15 18:33:31 -06:00
Jeremy Soller
8eec109cc0
Merge pull request #120 from Majora320/master
...
Implement clock() and add CLOCK_* constants
2018-05-15 18:32:29 -06:00
Matija Skala
9bbb070104
Add optimized version of memchr
2018-05-15 21:06:17 +02: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
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
Moses Miller
d14d0b5965
Fix various formatting issues
2018-05-11 22:01:51 -07:00
Moses Miller
766e00c69e
Implement conversion of nanoseconds to clocks in terms of CLOCKS_PER_SEC
2018-05-11 17:22:01 -07:00
Moses Miller
3d1a66f270
Add CLOCKS_PER_SEC
2018-05-11 16:26:56 -07:00
Moses Miller
9d8758006d
Change 1000000 to 1_000_000
2018-05-11 11:41:18 -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
Moses Miller
56458e5e4c
Condense 5 lines into 1
2018-05-10 20:48:13 -07:00
Moses Miller
1ecd5f8f21
Implement clock() and add CLOCK_* constants
2018-05-10 20:31:35 -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
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
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
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
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
Michael Aaron Murphy
43e95a9b92
Implement kill() and killpg()
2018-03-25 14:40:44 -04:00
Dan Robertson
57a17cb05f
stdio: Implement rename
2018-03-25 14:41:42 +00:00
Paul Sajna
35dbc8d351
minor fixes
2018-03-23 13:37:56 -07:00
Paul Sajna
304473b68f
Implement fstat, stat, lstat
2018-03-23 13:27:41 -07:00