Jeremy Soller
5efaffe0f9
Ensure that nul test is passed after last commit and failed before
2020-12-23 08:25:44 -07:00
Jeremy Soller
3e49323a3a
Merge branch 'dlopen' into 'master'
...
Add support for dlopen(NULL, ...)
See merge request redox-os/relibc!315
2020-10-02 03:21:42 +00:00
Mateusz Tabaka
eee9a80baa
Fix tls tests for dynamic linker
...
* load TLS segment for executable - while we can skip PT_LOAD for executable,
we still have to load TLS segment.
* set TCB address based on if elf is position independent
2020-10-01 15:45:55 +02:00
Mateusz Tabaka
c11aad71b8
Add support for dlopen(NULL, ...)
2020-09-30 11:04:10 +02:00
Mateusz Tabaka
675101ac0e
Add tests for dynamic linker
2020-09-29 23:01:52 +02:00
Peter Limkilde Svendsen
00642dd940
Test extreme tm member values
2020-09-17 23:10:13 +02:00
Jeremy Soller
2ed55a926b
Merge branch 'gmtime-refactor' into 'master'
...
Refactor gmtime_r(), fix localtime() test
See merge request redox-os/relibc!309
2020-09-08 18:45:20 +00:00
Jeremy Soller
9f25fa39ea
Merge branch 'gmtime-tests' into 'master'
...
Add more gmtime() tests
See merge request redox-os/relibc!308
2020-09-08 18:44:55 +00:00
Peter Limkilde Svendsen
ff6bc68260
Add more gmtime() tests
2020-09-08 18:44:55 +00:00
Peter Limkilde Svendsen
59b0a36e81
Fix localtime() test
2020-08-27 23:16:17 +02:00
Peter Limkilde Svendsen
aec4a84e90
Include stdlib.h so free() can be used
2020-08-20 20:43:28 +02:00
jD91mZM2
72532b8280
Fix printf issue found in GDB
2020-08-05 16:49:10 +02:00
Jeremy Soller
2008296a10
Add sys_mman expected output
2020-08-02 14:34:56 -06:00
jD91mZM2
4c148c1860
Make munmap use funmap2
2020-07-30 13:39:20 +02:00
Wren Turkal
9a1e9c327a
Make byte stream functions set stream orientation.
...
When a byte-oriented stream function touches a stream, that stream
should be set to byte-oriented mode if it hasn't been set yet. If
it has been set, the opertion should only succeed if the stream is
already in byte-oriented mode.
Signed-off-by: Wren Turkal <wt@penguintechs.org >
2020-07-08 14:33:11 -07:00
Wren Turkal
b623e245c0
Make freopen reset the stream orientation.
...
Signed-off-by: Wren Turkal <wt@penguintechs.org >
2020-07-08 14:33:11 -07:00
Wren Turkal
865b7962a1
Add implmentation for fwide posix function.
...
This function is used to set the orientation of a stream to either
byte-oriented or wchar-oriented.
More info on this function is here:
https://man7.org/linux/man-pages/man3/fwide.3p.html
This implementation only impmlemnts the manual switching and does
not yet guard against using a byte-oriented stream with wchar
functions and vice versa. Those step will come in additional
commits.
Signed-off-by: Wren Turkal <wt@penguintechs.org >
2020-07-08 14:33:06 -07:00
jD91mZM2
29ad5b75c9
Fix broken CVec
...
Oops, forgot to initiate the pointer after uses of CVec::new()
2020-06-29 21:03:29 +02:00
Peter Limkilde Svendsen
59b040258a
Rename lcg48 as rand48
2020-06-23 18:34:44 +02:00
Jeremy Soller
22a7f71282
Merge branch 'ctime_r' into 'master'
...
Add test for ctime_r(), replace mem::uninitialized()
See merge request redox-os/relibc!273
2020-06-22 21:57:04 +00:00
Peter Limkilde Svendsen
cc33874363
Implement random() and friends
2020-06-22 21:56:39 +00:00
Giuseppe Longo
12beb13987
netdb: implement getnetbynane and getnetent
...
This patch implements getnetbyname and getnetent functions.
2020-06-07 14:02:41 +02:00
oddcoder
92d6735e3f
Add more scanf tests
2020-06-03 23:20:53 +02:00
oddcoder
018f7a3f38
Fix scanf.stdout as per glibc
2020-06-03 23:20:52 +02:00
Peter Limkilde Svendsen
b15c90ee32
Add test for ctime_r()
2020-05-26 00:20:14 +02:00
Peter Limkilde Svendsen
cf9c2ed0ba
Don't accept null pointer when requesting aligned memory
2020-05-24 18:39:53 +02:00
oddcoder
7eba6d88df
Add test for negative pad stupport in printf
2020-05-23 16:20:20 +02:00
oddcoder
1b131b8c60
Test off by one bug in vfscanf
2020-05-23 16:20:20 +02:00
oddcoder
6fba592fdb
Implement regression test for ftell-ungetc bug
2020-05-23 16:20:20 +02:00
oddcoder
49dec86a5d
Unit test arbitrarily long ungetc()
2020-05-23 16:20:20 +02:00
oddcoder
a39447e6a4
Test printf space padding regression
2020-05-08 22:38:42 +02:00
oddcoder
d373bcb032
Avoid accessing memory without initialization
2020-05-08 22:38:42 +02:00
oddcoder
e9615065ac
Add tests for both wcsncasecmp and wcscasecmp
2020-04-26 19:13:03 +02:00
oddcoder
9725d3418a
Test towlower and towupper
2020-04-26 19:13:03 +02:00
Graham MacDonald
2283e25cde
sigaction should set sigaction.sa_restorer
2020-04-14 23:37:54 +01:00
Jeremy Soller
2e5d4a4d25
Merge remote-tracking branch 'origin/truncate-n-mkfifo'
2020-01-20 11:17:15 -07:00
Jeremy Soller
10f2e0fefc
Merge branch 'fd-dup-test-robusty' into 'master'
...
Fix fd dup tests to be more robust
See merge request redox-os/relibc!251
2020-01-20 17:48:43 +00:00
Graham MacDonald
18e1a5608f
Re-enable netdb tests, fix compiler warning, improve brk coverage
2020-01-13 22:22:40 +00:00
Peter Limkilde Svendsen
74555698fb
Handle infinity and NaN in printf
2019-12-05 01:37:17 +00:00
Sean Kennedy
a1c3510761
Fix fd dup tests to be more robust
...
i.e. not depending on the first fd to be 4.
2019-12-02 14:53:55 -05:00
Peter Limkilde Svendsen
0b2c3fe5ea
Implement wcsstr(), fix return type of wcslen()
2019-11-14 02:46:53 +00:00
Xavier L'Heureux
f53e9b5d9a
Remove the mkfifo test
2019-09-17 21:41:03 -04:00
Xavier L'Heureux
e8b8b7eb25
Fix format and disable stat check for access time
2019-09-17 21:23:07 -04:00
Xavier L'Heureux
64f93fe6e0
Implement the truncate function
2019-09-17 19:57:43 -04:00
Xavier L'Heureux
5156a13b3e
Add a test for futimens
2019-09-16 12:25:29 -04:00
Jeremy Soller
d1d45ff00d
Merge branch 'warning' into 'master'
...
Fix few warnings
See merge request redox-os/relibc!236
2019-09-15 19:31:08 +00:00
Xavier L'Heureux
30d3cd5c88
Fix the mkfifo call on Linux and add a test to avoid regression
2019-09-13 12:35:08 -04:00
Steve McKay
4859c222e7
Make program_invocation_name modifiable
...
libiconv expects program_invocation_name to be an lvalue
2019-08-17 12:35:43 -04:00
jD91mZM2
4f2a93ea90
Vast refactor of pwd.h, add getpwent/setpwent/endpwent
2019-08-12 09:58:11 +02: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