Xavier L'Heureux
5799555566
Remove print statements
2019-08-11 21:53:32 -04:00
Xavier L'Heureux
0a558de76c
Fix reference getting moved
...
The sigaction handler called map on an option, creating a pointer to a
move value. This in turned caused UB for signal handlers. Avoid using
pointers directly, and instead prefer references.
2019-08-11 20:47:18 -04:00
Xavier L'Heureux
225583230f
Test
2019-08-11 18:11:19 -04:00
Jeremy Soller
e7d19e2a58
Move SIG_IGN and friends to C in order to define them correctly
2019-08-08 20:06:38 -06:00
jD91mZM2
b8c50c7c64
Format
2019-08-04 19:05:45 +02:00
jD91mZM2
c7d499d4f2
Upgrade to the 2018 edition
...
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00
jD91mZM2
f389010fff
Initial ptrace compatibility for Redox OS
2019-08-04 19:05:45 +02:00
jD91mZM2
7f702720af
Fix header file generation for ptrace
2019-08-04 19:05:44 +02:00
jD91mZM2
43ff8801bc
Format
2019-08-04 19:05:44 +02:00
jD91mZM2
35c1d5210c
Implement the Once<T> synchronization structure
...
Not sure if I should add a RwLock for the ptrace state too...
2019-08-04 19:05:44 +02:00
jD91mZM2
e559a3e2e5
Stub for ptrace
...
It's happening...
2019-08-04 19:05:44 +02:00
Mateusz Mikuła
bd573fb7cc
Fix cbindgen for disabled headers
2019-07-31 12:39:28 +02:00
Jeremy Soller
f467791b12
Fix definition of SIG_ERR
2019-07-25 21:27:41 -06:00
jD91mZM2
cb63dec86f
Add missing SIG_DFL and SIG_IGN constants
2019-07-25 17:34:59 +02:00
Mateusz Mikuła
b599c453a0
Remove defines that are generated by new cbindgen from bits
2019-07-18 13:18:00 +02:00
jD91mZM2
a8280e8991
Implement wcstol, wcstod, and printf:ing wchars
2019-07-18 12:29:22 +02:00
jD91mZM2
7c99077248
Implement wcstok
2019-07-18 08:15:40 +02:00
jD91mZM2
a2c8cfb4a5
Implement CVec, an abstraction to return vectors from Rust
2019-07-18 06:40:23 +02:00
jD91mZM2
29b5b989eb
Format
2019-07-11 18:20:27 +02:00
jD91mZM2
1a0f72dad8
Fix CI & compatibility with older rust
2019-07-11 18:18:17 +02:00
jD91mZM2
57917c0e92
Fix various floating point issues in printf
2019-07-11 18:09:37 +02:00
Mateusz Mikuła
799c10073d
Fix sigaltstack
2019-07-10 14:01:43 +02:00
Mateusz Mikuła
63a1319e50
Cbindgen update
2019-07-10 10:08:39 +00:00
Jeremy Soller
05f71567ab
Format
2019-07-06 19:37:13 -06:00
Mateusz Mikuła
c8887900b9
Add sigaltstack
2019-07-05 12:29:53 +00:00
Mateusz Mikuła
6742e41948
Clippy fixes
2019-07-04 14:47:08 +00:00
Jeremy Soller
38099fe3d9
Fix definition of errno to match what is used by musl
2019-07-03 19:47:55 -06:00
jD91mZM2
bf13674e11
Merge branch 'getpagesize_check' into 'master'
...
Use try_from in getpagesize(), add test
See merge request redox-os/relibc!225
2019-07-01 11:03:58 +00:00
Peter Limkilde Svendsen
02e26006e7
Alloc functions cleanup
2019-07-01 11:02:10 +00:00
Peter Limkilde Svendsen
6cc5216c9c
Implement l64a()
2019-07-01 10:59:37 +00:00
jD91mZM2
e35f22b3df
WIP: pthread_atfork
...
WIP mainly because we *should* use thread locals, but #[thread_local]
causes segfaults.
2019-07-01 09:07:11 +02:00
jD91mZM2
2f4e57f87a
Fix data race inside puts(...) & add dbg!() macro
2019-06-26 21:21:32 +02:00
jD91mZM2
e929538098
Uncomment pthread_atfork stub to get ion to build
2019-06-16 14:59:04 +02:00
Peter Limkilde Svendsen
8b975877e6
Formatting
2019-06-14 00:07:36 +02:00
lmiskiew
43f1b582ae
Use cbitset crate instead of custom bitset implementation in select
2019-06-13 12:31:30 +00:00
Peter Limkilde Svendsen
6e88617762
Use fallible conversion in getpagesize()
2019-06-12 23:47:11 +02:00
jD91mZM2
e84ea94dd0
Execute fmt.sh
2019-06-12 14:45:33 +02:00
jD91mZM2
8db2f51706
Merge branch 'assert_fail' into 'master'
...
Rename __assert to __assert_fail
See merge request redox-os/relibc!212
2019-06-12 09:33:59 +00:00
jD91mZM2
d9ed51b9f1
Merge branch 'lcg48_arr' into 'master'
...
Implement remaining LCG functions
See merge request redox-os/relibc!219
2019-06-12 09:31:18 +00:00
jD91mZM2
3013c5db50
Merge branch 'posix_memalign' into 'master'
...
Implement posix_memalign()
See merge request redox-os/relibc!220
2019-06-12 09:27:48 +00:00
Jason Hansel
a5409ecd36
Fix out-of-bounds error in strsignal
2019-06-10 10:25:59 -04:00
Peter Limkilde Svendsen
626c713021
Formatting
2019-05-30 18:35:16 +02:00
Peter Limkilde Svendsen
02d1a7fe6f
Implement posix_memalign
2019-05-30 18:28:15 +02:00
Peter Limkilde Svendsen
7a48107080
Run fmt
2019-05-23 21:48:43 +02:00
Peter Limkilde Svendsen
dcff3fd836
Use y_from_x naming for functions
2019-05-23 21:40:06 +02:00
Peter Limkilde Svendsen
fe4a3ae2b4
Refactor for consistency
2019-05-23 21:33:20 +02:00
Peter Limkilde Svendsen
b2a9cdf930
Implement lcong48() and seed48()
2019-05-23 20:36:13 +02:00
Peter Limkilde Svendsen
767cf86b38
Refer to newer standard (with correct half-open output intervals)
2019-05-22 21:09:26 +02:00
Peter Limkilde Svendsen
13108776ae
Implement erand48(), jrand48() and nrand48()
2019-05-22 18:48:19 +02:00
jD91mZM2
dab6530fb4
Merge branch 'valloc_pagesize' into 'master'
...
Make valloc() get page size through sysconf(), add tests
See merge request redox-os/relibc!216
2019-05-12 14:52:56 +00:00