Commit Graph

72 Commits

Author SHA1 Message Date
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
Paul Sajna ccb29cfa2c wait and waitpid 2018-03-11 16:50:46 -07:00
Dan Robertson 2f718d40d6 mman: mman.h should be located at sys/mman.h
- Update target location of mman.h to sys/mman.h
 - Add more types to sys/type.h
2018-03-10 19:14:16 +00:00
Paul Sajna 7e40d8c87b fmt 2018-03-09 07:51:15 -08:00
Paul Sajna 23bb883797 update nanosleep 2018-03-09 07:49:37 -08:00
Paul 5632d96016 Merge branch 'master' into time 2018-03-09 05:52:29 -08:00
Paul Sajna 161d93466c fixes and tests 2018-03-09 04:48:34 -08:00
Paul Sajna 7e19ce23bd nanosleep 2018-03-09 03:26:45 -08:00
Paul Sajna 72909b3f4c add time and sys/time 2018-03-09 02:46:14 -08:00
Paul Sajna 1c1a48b648 fix formatting 2018-03-09 00:56:02 -08:00
Paul Sajna a7fba79be7 implement setid functions and unlink 2018-03-09 00:28:46 -08:00
Dan Robertson f83ff041cc Aarch64: Update syscall usage
Don't use syscalls that are non-existent on Aarch64 linux boxes. The
FORK and RMDIR syscalls are no longer present and the CLONE and UNLINKAT
syscalls are used instead.
2018-03-09 04:19:22 +00:00