Commit Graph

123 Commits

Author SHA1 Message Date
Jeremy Soller b14ee3ed39 Fix build, add Wall 2018-03-06 21:23:36 -07:00
Jeremy Soller 853fdaad75 Merge branch 'master' of github.com:redox-os/relibc 2018-03-06 21:16:14 -07:00
Jeremy Soller a1ce114cd4 Convert errors and set errno 2018-03-06 21:15:38 -07:00
Jeremy Soller 6afdf3fabf Merge pull request #21 from sajattack/patch-1
Test if the redox version compiles too
2018-03-06 21:08:09 -07:00
Paul 8f513f809b Test if it compiles for redox too 2018-03-06 20:06:47 -08:00
Jeremy Soller cf03233e66 Fix linux build 2018-03-06 20:44:21 -07:00
Jeremy Soller b768e44678 Merge pull request #19 from sajattack/redox-fixes
redox fixes
2018-03-06 20:42:35 -07:00
Jeremy Soller 1dd2f61d76 Merge pull request #20 from dlrobertson/add_ci
Add test.sh and fmt.sh to travis.yml
2018-03-06 20:40:13 -07:00
Paul Sajna 05d316b3a5 redox fixes 2018-03-06 19:28:02 -08:00
Dan Robertson 628c68abe3 Add test.sh and fmt.sh to travis.yml
Do not accept unformatted code.
2018-03-07 03:15:24 +00:00
Jeremy Soller 98b2fba518 Merge pull request #18 from dlrobertson/aarch64
Finalize Aarch64 support
2018-03-06 20:03:47 -07: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
Jeremy Soller 543526cb85 Move crt0 and platform into src folder
Add cargo fmt script
2018-03-06 19:55:11 -07:00
Jeremy Soller 6bca112340 Merge pull request #16 from dlrobertson/fixes_and_nits
Fix platform
2018-03-06 19:30:13 -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 a808dfe39c Merge pull request #14 from sajattack/unistd
implement some unistd
2018-03-05 19:31:08 -07:00
Paul Sajna 44e6c334e6 unwrap_or(-1) 2018-03-05 14:57:04 -08:00
Paul Sajna 151d873aba link 2018-03-04 22:34:47 -08:00
Paul Sajna 3a07bc27c2 getid functions 2018-03-04 22:11:59 -08:00
Jeremy Soller d4308b4c5d Update rust toolchain and lock file 2018-03-04 18:01:28 -07:00
Paul Sajna 2636b6f5b1 ftruncate test 2018-03-04 16:41:53 -08:00
Paul Sajna 5cc52e4b19 tests 2018-03-04 16:34:46 -08:00
Paul Sajna fc92d95b35 this [u8] to c_char* is probably wrong 2018-03-04 09:42:57 -08:00
Paul Sajna 95ed0b59bd getcwd 2018-03-04 09:35:38 -08:00
Paul Sajna b5192437c3 ftruncate 2018-03-04 09:24:33 -08:00
Paul Sajna 3ad7c62601 fsync and some tweaks 2018-03-04 09:16:56 -08:00
Paul Sajna 9de89e037a fchdir 2018-03-04 09:03:46 -08:00
Paul Sajna 95e74373fe fchown 2018-03-04 08:49:40 -08:00
Paul Sajna 8b1222c3fb brk 2018-03-04 08:41:37 -08:00
Paul Sajna c96040187f chown 2018-03-04 08:32:47 -08:00
Paul Sajna aa4f7ed3a5 Merge branch 'platform' into unistd 2018-03-04 08:21:52 -08:00
Paul Sajna 6b89b4620b Merge branch 'master' of github.com:redox-os/relibc into platform 2018-03-04 08:09:48 -08:00
Paul Sajna 4b1a1568bf add rawfile.rs 2018-03-04 08:09:13 -08:00
Jeremy Soller 8283f130d6 Merge pull request #10 from sajattack/semaphore
build semaphore header
2018-03-04 09:06:30 -07:00
Paul Sajna 0157f7fcea Merge branch 'semaphore' into platform 2018-03-04 08:03:01 -08:00
Paul Sajna 608a6fcfad merge 2018-03-04 08:02:41 -08:00
Paul Sajna e08ffa6474 merge 2018-03-04 07:57:39 -08:00
Paul Sajna 25b9ac206b remove timedwait 2018-03-04 07:50:49 -08:00
Paul ae4b64c491 missing curlyboi 2018-03-04 07:41:07 -08:00
Paul 4d506e6981 Merge branch 'master' into unistd 2018-03-04 07:39:51 -08:00
Paul Sajna 7a38acada9 Merge branch 'semaphore' of github.com:sajattack/relibc into semaphore 2018-03-04 07:34:47 -08:00
Paul Sajna 0a245a386e comment out sem_open 2018-03-04 07:34:27 -08:00
Paul Sajna caa89878d6 merge 2018-03-04 07:33:38 -08:00
Jeremy Soller 5002dd720f Add mman to lib.rs 2018-03-04 08:31:43 -07:00
Jeremy Soller 07c897e558 Clean up gcc line 2018-03-04 08:29:19 -07:00
Jeremy Soller 18c6701841 Disable stack protector 2018-03-04 08:27:20 -07:00
Jeremy Soller 654ca47351 Fix atexit_funcs call in exit 2018-03-04 08:15:26 -07:00
Jeremy Soller 7a7b3efe3a Merge branch 'master' of github.com:redox-os/relibc 2018-03-04 08:12:38 -07:00
Jeremy Soller 866d952924 Support building for Redox 2018-03-04 08:10:42 -07:00