Jeremy Soller
ea5f8d59de
Add dlmalloc
2018-07-04 10:10:34 -06:00
Jeremy Soller
42abc98a99
Cleanup allocation functions
2018-07-03 19:40:47 -06:00
Jeremy Soller
b6b34a7026
Ralloc fixes and fixes for Redox execution
2018-07-03 19:07:07 -06:00
jD91mZM2
9c169a186f
Run fmt.sh
2018-07-03 09:33:41 +02:00
Tom Almeida
da664d4919
Merged relibc with branch
2018-07-03 08:39:04 +08:00
Stephan Vedder
cc210361d6
wchar support
2018-07-01 20:59:37 +02:00
Tom Almeida
71fa4026f5
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
2018-06-30 17:26:35 +08:00
jD91mZM2
234632d319
Workaround compilation errors
2018-06-30 09:19:06 +02:00
Paul Sajna
5c5e237042
Exec Functions (again) (again)
2018-06-28 19:24:04 +00:00
jD91mZM2
9de73d0e5b
Add uname and gethostname
2018-06-26 16:41:19 +02:00
jD91mZM2
5936c7a76e
Add scanf
2018-06-21 17:16:56 +02:00
Jeremy Soller
1b653c4e60
Update ralloc, fix invalid c++ names
2018-06-20 08:48:56 -06:00
Jeremy Soller
1f9f7ce6c8
Merge pull request #127 from stratact/master
...
Update `platform::rawfile`
2018-05-24 14:36:06 -06:00
stratact
3aa01b6907
Remove pointless cast
2018-05-24 13:27:24 -07:00
stratact
a7a415603f
Fix stupid mistake
2018-05-24 13:04:58 -07:00
stratact
16c51a297d
Use the right C types from platform::types
2018-05-24 12:29:59 -07:00
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
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
Jeremy Soller
08091ab2a9
Merge branch 'stat' of https://github.com/sajattack/relibc
2018-04-26 20:12:57 -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
Marat Safin
58b2b64183
add clock_gettime and time
2018-03-23 16:57:33 +03:00
Paul Sajna
29a6d24309
chmod and fchmod
2018-03-22 17:41:19 -07:00
Tom Almeida
90aec2076e
Merge branch 'master' into master
2018-03-19 14:29:58 +08:00
Marat Safin
31516989c0
refactor nanosleep
2018-03-18 12:29:38 +03:00
Tom Almeida
d8139238e7
Merged master with branch
2018-03-18 00:22:08 +08:00
Tom Almeida
25501b3640
Changed redox lseek to have the same function signature as the linux version
2018-03-18 00:18:14 +08:00
Tom Almeida
2cb0a994b8
Merge branch 'master' into master
2018-03-16 23:26:11 +08:00
Paul Sajna
cdfde8c0d4
more requested changes
2018-03-15 11:55:37 -07:00
Tom Almeida
e73678d8ad
Added a FileReader struct
2018-03-15 15:22:18 +08:00
Tom Almeida
f20878c592
Added lseek to syscalls
2018-03-15 15:21:52 +08:00
Paul Sajna
52acce0d34
handle the null case
2018-03-14 12:37:24 -07:00
Paul Sajna
b35abd1065
test and fixes
2018-03-11 21:20:59 -07:00