jD91mZM2
8fca7bcbc1
More printf tests and corner cases
2019-04-23 08:15:58 +02:00
jD91mZM2
0a0aec502b
Fix #140
2019-04-23 07:34:06 +02:00
jD91mZM2
40d01d9d57
Convert printf internals to iterator
2019-04-22 16:25:29 +02:00
Peter Limkilde Svendsen
912385b501
Set errno in alloc functions and add further tests
2019-04-22 11:16:13 +00:00
Jeremy Soller
7bde036031
Remove va_list submodule, format
2019-04-21 15:45:55 -06:00
Jeremy Soller
b2cc25dd38
Fix missing import
2019-04-21 15:28:19 -06:00
jD91mZM2
6d4ac9dba8
Finally, get rid of all rust warnings
...
Just a small step along the way to reduce the massive wall of spam
every time you compile.
This was done partly automagically with `cargo fix`. The rest was me
deleting or commenting out a bunch of variables. Hope nothing was
important...
2019-04-21 21:12:16 +02:00
jD91mZM2
3a3fd3da39
Use the memchr crate
...
https://github.com/BurntSushi/rust-memchr is supposed to be a whole
lot faster :)
2019-04-21 19:09:37 +02:00
Dan Robertson
fa94f1b6d5
Use core::ffi::VaList
2019-04-21 17:46:22 +02:00
jD91mZM2
601cb43f6c
Merge branch 'strerror_r' into 'master'
...
Add POSIX strerror_r
See merge request redox-os/relibc!207
2019-04-21 15:06:17 +00:00
jD91mZM2
78d52c6e9f
Merge branch 'whiletofor' into 'master'
...
Changed while loops to for
See merge request redox-os/relibc!206
2019-04-21 15:04:10 +00:00
Jeremy Soller
83f89912e0
Do not copy kernel-allocated TLS
2019-04-20 10:36:18 -06:00
Mateusz Mikuła
c68a0d5678
Add POSIX strerror_r
2019-04-19 17:59:56 +02:00
Michal Z
89ca696f8e
Changed while loops to for
...
Changed while loops to for - https://gitlab.redox-os.org/redox-os/relibc/issues/128
2019-04-15 18:24:46 +02:00
Jeremy Soller
b9e03cbaed
Implement __tls_get_addr
2019-04-14 19:09:10 -06:00
Jeremy Soller
30aef27c76
Correctly set up TLS on Redox and other fixes for pthread_clone
2019-04-14 19:08:58 -06:00
Jeremy Soller
7fe0beb916
Add DTPMOD64
2019-04-14 13:21:07 -06:00
Jeremy Soller
5a005864a8
Fix compilation on redox
2019-04-14 13:18:57 -06:00
Jeremy Soller
361f32b63c
ld_so: significant refactor to prepare for pthread_create support of TLS
2019-04-14 13:17:07 -06:00
Jeremy Soller
9f5e5f24dc
Correctly set tcb pointer to the end of TLS
2019-04-14 10:44:25 -06:00
Jeremy Soller
47baf499bf
Fix TLS offsets
2019-04-14 08:40:03 -06:00
Jeremy Soller
b2cc8f6d26
Fix compilation on Redox
2019-04-13 21:32:51 -06:00
Jeremy Soller
ba50c94c3f
Improve TLS support
2019-04-13 21:15:01 -06:00
Jeremy Soller
63cb2f3454
ld.so: Add auxv support, get ld_library_path from env
2019-04-13 21:14:52 -06:00
Jeremy Soller
084b69b361
Add ld_so executable
2019-04-13 12:17:38 -06:00
Jeremy Soller
d5eb1e2732
Add dl-tls.h, required for shared libraries
2019-04-12 09:30:02 -06:00
Jeremy Soller
2fdca9bd0a
Work around definition of O_NOFOLLOW, and add target for only building and installing headers
2019-04-07 10:11:05 -06:00
Jeremy Soller
73dda0f32c
Add missing cast
2019-04-06 21:38:59 -06:00
Jeremy Soller
f2b86e985c
Ensure that getpeername and getsockname return a sockaddr of family AF_INET
2019-04-06 21:34:56 -06:00
Jeremy Soller
588f032f75
Rename can be done with O_PATH
2019-04-06 20:47:20 -06:00
Jeremy Soller
862c76b25f
Correct error for unknown protocol type in socket
2019-04-01 20:35:15 -06:00
Jeremy Soller
f4c036c3aa
Fix returning incorrect ai_socktype from getaddrinfo
2019-04-01 20:34:53 -06:00
Jeremy Soller
42d40da973
Map stacks based on provided size.
2019-03-31 15:04:37 -06:00
Jeremy Soller
17372b4f69
Fix thread starting before pte_osThreadStart
2019-03-30 16:18:07 -06:00
jD91mZM2
3f98962054
Fix bug in scanf where EOF would be ignored
2019-03-28 17:57:13 +01:00
Jeremy Soller
6548aad36d
Use next_byte function in all places in scanf
2019-03-27 21:32:02 -06:00
Jeremy Soller
d13fb3f42b
Fix panic in sigaction
2019-03-27 21:31:18 -06:00
Jeremy Soller
bee72373be
Fix panic not producing output
2019-03-27 21:28:39 -06:00
Jeremy Soller
5dca9843dc
Fix use of trace macro when errno is imported
2019-03-27 20:57:12 -06:00
Jeremy Soller
a88ec09131
Prevent override of panic from relibc
2019-03-27 20:56:23 -06:00
Mateusz Mikuła
e01d1ce11b
Fix usleep
2019-03-25 13:36:48 +01:00
Jeremy Soller
cdbeda1ca0
Merge branch 'patch-2' into 'master'
...
Fix conditional compilation of sys/mman.h
See merge request redox-os/relibc!201
2019-03-05 02:08:01 +00:00
Robin Randhawa
f9f752d74c
aarch64-prep: Dummy auxv.h
...
For AArch64, the ring crate depends on the presence of this header and a definition
of getauxval.
2019-03-03 21:49:52 +00:00
Robin Randhawa
17bed54103
aarch64: Fix incorrect init/fini stack manipulation
...
The pre-index operator ('!') was missing at the end of the stp
instruction.
As a result, the stack pointer wasn't updated after the
store of the 64-bit pair and the stored values were basically lost when
follow on code used the stack for later store ops.
2019-03-03 21:49:46 +00:00
Angelo Bulfone
31fc29e70c
Fix conditional compilation of sys/mman.h
2019-03-03 21:14:45 +00:00
lmiskiew
5eb2a8f7bd
Implement swab
2019-02-28 08:23:11 +00:00
jD91mZM2
30a0f70d73
Merge branch 'wcsrchr' into 'master'
...
implements wcsrchr from wchar.h
See merge request redox-os/relibc!197
2019-02-28 08:21:55 +00:00
jD91mZM2
fe905ed13c
Merge branch 'calloc_overflow_check' into 'master'
...
add calloc integer overflow check
See merge request redox-os/relibc!188
2019-02-28 08:20:11 +00:00
emturner
4ed6dca61d
implements wcsrchr from wchar.h
2019-02-25 22:53:11 +00:00
Jeremy Soller
f3ba7e8d8e
Merge branch 'wcscspn' into 'master'
...
Implements wcscspn function from wchar.h
See merge request redox-os/relibc!196
2019-02-23 00:33:11 +00:00