Commit Graph

51 Commits

Author SHA1 Message Date
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
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
Paul Sajna 799c8828c2 mkdir and rmdir 2018-03-08 19:45:16 -07:00
MggMuggins 0cb3a893a1 Fix compile on redox 2018-03-08 20:19:55 -06:00
MggMuggins 14c8125108 Implement fcntl
No tests written yet! See #36
2018-03-08 19:55:35 -06:00
Jeremy Soller 284cc4eece Fix formatting 2018-03-08 16:21:04 -07:00
Jeremy Soller 4198055d4a Fix tests 2018-03-08 15:43:17 -07:00
Jeremy Soller cfbe27490f Remove allocation, fix pipe example 2018-03-08 15:00:17 -07:00
Jeremy Soller 0bcabc2163 Merge remote-tracking branch 'sajattack/unistd' 2018-03-08 14:53:07 -07:00
Paul Sajna 12833a5a5c add test and fork 2018-03-08 12:25:14 -08:00
Dan Robertson a6a16cf233 Create crate and stubs for wctype
Create the wctype crate and stub functions with the unimplemented macro.
2018-03-08 16:03:45 +00:00
Paul Sajna 33f1033e0e implement pipe and read 2018-03-07 23:30:10 -08: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 f01c669771 Remove thread local from errno, for now 2018-03-07 20:37:22 -07:00
Jeremy Soller 633b5474db Merge pull request #27 from sajattack/master
add test for errno
2018-03-07 19:40:46 -07:00
Paul Sajna 93ddcca294 add test for errno 2018-03-07 18:36:18 -08:00
Alex Lyon 9f39456dbd string: implement strcat, strcmp, strcpy, and strdup 2018-03-07 14:06:30 -08:00
Alex Lyon 114ee16c21 string: implement strncat, strncmp, and strncpy 2018-03-07 05:04:40 -08:00
Jeremy Soller ff0cebca87 Implement more stdio functions 2018-03-06 21:47:39 -07:00
Jeremy Soller a1ce114cd4 Convert errors and set errno 2018-03-06 21:15:38 -07:00
Jeremy Soller cf03233e66 Fix linux build 2018-03-06 20:44:21 -07:00
Paul Sajna 05d316b3a5 redox fixes 2018-03-06 19:28:02 -08:00
Dan Robertson 40b6a9c5cc Finalize Aarch64 support
Update platform support for linux to avoid the use of syscalls not
supported by Aarch64.
  - link, chown, and open should use fchownat and linkat with fd
    set to AT_FDCWD.
  - use dup3 with the 3rd arg set to 0 instead of dup2.
2018-03-07 02:56:08 +00:00