Commit Graph

503 Commits

Author SHA1 Message Date
jD91mZM2 cbc3723c66 Fix signal not being linked correctly 2018-06-26 17:16:56 +02:00
jD91mZM2 727324fd73 Apparently cbindgen works on constants 2018-06-26 16:57:56 +02:00
jD91mZM2 9de73d0e5b Add uname and gethostname 2018-06-26 16:41:19 +02:00
jD91mZM2 844e244851 Use both Tag and Type 2018-06-26 16:05:02 +02:00
jD91mZM2 3927b0ab44 Revert int definitions 2018-06-26 14:10:20 +02:00
jD91mZM2 5fc1459eb9 signal: Make constants visible from C 2018-06-26 11:23:22 +02:00
jD91mZM2 0776de1ae6 Fix inttypes 2018-06-26 11:10:44 +02:00
jD91mZM2 257040e164 Fix a few stat-related things 2018-06-26 10:47:48 +02:00
jD91mZM2 ad324a0e4d Use global_asm for setjmp instead 2018-06-26 10:21:44 +02:00
jD91mZM2 feed73ffcc inttypes 2018-06-26 09:51:07 +02:00
jD91mZM2 5537817594 Export libm as well 2018-06-26 08:35:27 +02:00
jD91mZM2 441bf9f00b Add the few last things to get gcc_complete working 2018-06-25 11:43:44 +02:00
jD91mZM2 320eb0ecd0 Revert openlibm install script
Turns out that this only worked because I didn't clean before rebuilding, so it still had access to the old files. Sorry.
2018-06-24 20:19:06 +02:00
Jeremy Soller f265d7c5be Fix linking issues with lang items 2018-06-24 09:56:08 -06:00
Jeremy Soller 878f466b67 Update to new ralloc, new panic implementation, new compiler-builtins 2018-06-24 09:50:15 -06:00
Jeremy Soller be0aed56bc Merge branch 'master' into 'master'
Fix openlibm & fenv and add more integer types

See merge request redox-os/relibc!141
2018-06-24 13:18:34 +00:00
jD91mZM2 72e9525828 Add U?INT([0-9]+)_LEAST([0-9]+)_MIN/MAX macros 2018-06-24 14:27:42 +02:00
jD91mZM2 3e67314b97 Fix openlibm & fenv and add more integer types 2018-06-24 14:12:24 +02:00
Jeremy Soller 7f0908eb8e Merge branch 'master' into 'master'
Reuse musl's setjmp implementation

See merge request redox-os/relibc!139
2018-06-23 17:46:01 +00:00
jD91mZM2 2283243d95 Replace setjmp lib.rs with empty file 2018-06-23 17:38:15 +02:00
jD91mZM2 4e99b55417 Implement basic setjmp using musl's awesome existing code 2018-06-23 17:38:10 +02:00
Jeremy Soller 6e67d30486 Merge branch 'master' into 'master'
Install openlibm from Makefile

See merge request redox-os/relibc!138
2018-06-23 08:33:27 +00:00
jD91mZM2 829bc64ad6 Remove unused import from test 2018-06-23 07:54:36 +02:00
jD91mZM2 5945de62cb Install openlibm from Makefile 2018-06-23 06:54:23 +02:00
jD91mZM2 12ce441f5c Use static mut over UnsafeCell 2018-06-22 22:40:30 +02:00
Jeremy Soller 8fd77a4b13 Merge branch 'master' into 'master'
Fix undefined behavior

See merge request redox-os/relibc!137
2018-06-22 20:07:31 +00:00
jD91mZM2 ea24699798 Fix undefined behavior
Transmuting from an immutable to a mutable reference is undefined
behavior in Rust, with the exception of UnsafeCell which tells the
optimizer to not draw too many conclusions. Sadly UnsafeCell::get cannot
yet be used in statics (see https://github.com/rust-lang/rust/issues/51718),
so this works around that by making the statics into functions and
making C macros to call those.
2018-06-22 21:17:44 +02:00
jD91mZM2 3034114c14 Fix broken comment 2018-06-22 15:02:34 +02:00
Jeremy Soller ccb74c6efc Merge branch 'master' into 'master'
Add empty locale functions

See merge request redox-os/relibc!135
2018-06-22 12:59:10 +00:00
jD91mZM2 0a3c8abe95 Fix setlocale return value 2018-06-22 14:54:16 +02:00
jD91mZM2 996445a6a3 Add empty locale functions 2018-06-22 14:54:10 +02:00
Jeremy Soller 05f7371e46 Merge branch 'master' into 'master'
Add scanf

See merge request redox-os/relibc!134
2018-06-21 16:58:41 +00:00
jD91mZM2 91221645c5 Add *scanf to header 2018-06-21 18:52:41 +02:00
jD91mZM2 5936c7a76e Add scanf 2018-06-21 17:16:56 +02:00
Jeremy Soller 6f8fff4b1c Merge branch 'sys_wait_macros' into 'master'
sys_wait: implement C macros properly

See merge request redox-os/relibc!133
2018-06-20 18:43:34 +00:00
Jasen Borisov 06a8d5d89d sys_wait: implement C macros properly
Remove the broken Rust functions and instead provide C macros in a
`include/bits` header. The C macros were taken from musl.
2018-06-20 19:40:38 +01:00
Jeremy Soller 895e250564 Add aligned_alloc 2018-06-20 09:53:27 -06:00
Jeremy Soller 9d38494435 Fix missing strtol, strtoul 2018-06-20 09:44:09 -06:00
Jeremy Soller 1b653c4e60 Update ralloc, fix invalid c++ names 2018-06-20 08:48:56 -06:00
Jeremy Soller 009ceec188 Merge branch 'sys_wait_fix' into 'master'
Fix compilation error in `sys_wait`

See merge request redox-os/relibc!132
2018-06-14 20:09:46 +00:00
Jasen Borisov 326078a578 Fix compilation error in sys_wait 2018-06-14 20:15:25 +01:00
Jeremy Soller c5552cbb39 Merge branch 'fix-81' into 'master'
Add `sys_wait` functions (Fixes #81)

Closes #81

See merge request redox-os/relibc!131
2018-06-14 13:45:32 +00:00
stratact 3fa220237d Add sys_wait functions (Fixes #81) 2018-06-14 05:08:55 -07:00
Jeremy Soller a573549df8 Update links to gitlab 2018-06-12 12:30:45 -06:00
Jeremy Soller fd05aca991 Update README.md 2018-05-24 15:00:40 -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