Robin Randhawa
23de2ca7ca
Remove redundant wchar_t and win_t definitions
...
Typically with libc implementations, wchar_t and co are either defined
entirely by the libc or, under libc's arrangement, by headers supplied
by the compiler.
Things like dlmalloc in relibc need these definitions from relibc itself
and that's already already furnished by relibc's stddef.h.
These additional definitions here are redundant and collide with
compiler headers - for example: onig_sys (something that uutils depends
on) breaks. Instead, this patch makes the compiler headers define
things appropriately.
2019-03-03 21:50:04 +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
jD91mZM2
269b8a1d3e
Merge branch 'cleanup' into 'master'
...
tests: Macro based error handling
See merge request redox-os/relibc!195
2019-03-03 15:19:19 +00:00
jD91mZM2
37c976945a
Merge branch 'implement-swab' into 'master'
...
Implement swab
See merge request redox-os/relibc!187
2019-02-28 08:23:11 +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
jD91mZM2
71f8fb32e3
Merge branch 'patch-1' into 'master'
...
Change LONG_BIT definition, fixes #148
Closes #148
See merge request redox-os/relibc!198
2019-02-28 08:18:29 +00:00
Paul Sajna
e93129b165
Change LONG_BIT definition, fixes #148
2019-02-28 07:42:19 +00:00
emturner
4ed6dca61d
implements wcsrchr from wchar.h
2019-02-25 22:53:11 +00:00
Tibor Nagy
fa2c6d29db
tests: Rewrite libgen tests based on ctype (nice table layout), fix error handling of sleep tests
2019-02-25 19:32:20 +01:00
Tibor Nagy
efd6947d8e
tests: Fix function-like macros
...
Turns the results of these macros from compound to regular statements using the old `do { ... } while(0)` trick. Must have for function-like macros.
2019-02-25 14:13:02 +01:00
Tibor Nagy
96182ce8ad
tests: Fix expected outputs
2019-02-24 22:19:07 +01:00
Tibor Nagy
a92be000fb
tests: Even more work on error handling
...
realpath: Fixing undefined behaviour in the second test. If the call fails the resolved_name argument cannot be used for error checking because its state is undefined by SUSv2.
pipe: Changing the order of close and write error handling code. Errors in close could overwrite errno after write errors, returning incorrect error messages.
gmtime: Removed duplicate checks
Other fixes for fseek, rename, mktime, putwchar
2019-02-24 22:02:11 +01:00
Tibor Nagy
2d027f0771
tests: More work on error handling
2019-02-24 00:46:26 +01: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
emturner
ec3488c7b0
implements wcscspn from wchar.h
2019-02-22 23:18:21 +00:00
Tibor Nagy
0c539d6e4e
tests: Fix expected outputs
2019-02-22 13:28:18 +01:00
Tibor Nagy
513f4ba53c
tests: Documentation for test_helpers.h, more refactoring
2019-02-22 13:19:38 +01:00
Jeremy Soller
74d0b24939
Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc
2019-02-21 19:43:07 -07:00
Jeremy Soller
5690c6dcdf
Add trace for select and poll
2019-02-21 19:42:58 -07:00
Tibor Nagy
9a0ea6ff34
tests: More refactoring, add helper header to every test, override exit for better error reporting
2019-02-21 21:13:28 +01:00
Tibor Nagy
6266d29242
tests: Fix expected outputs
2019-02-21 17:46:18 +01:00
Tibor Nagy
64acf45c40
tests: Add helper macros for easier error handling and reporting
2019-02-21 17:35:24 +01:00
Tibor Nagy
f60c95d2ca
tests: Work on more thorough error handling
2019-02-21 16:15:49 +01:00
Tibor Nagy
d1a424c002
tests: Replace returns with exits in the main functions
...
This will allow us to redefine the exit function.
For example:
```
#define exit(code) { \
fprintf(stderr, "%s:%d: exit(%s) in function ‘%s’\n",
__FILE__, __LINE__, #code, __func__); \
_exit(code); \
}
```
2019-02-21 12:15:06 +01:00
Jeremy Soller
f19e029468
Merge branch 'cleanup' into 'master'
...
General test cleanups
See merge request redox-os/relibc!193
2019-02-20 22:34:52 +00:00
Jeremy Soller
20aeb15fc7
Merge branch 'path-separator' into 'master'
...
unistd: Generate correct C defines for PATH_SEPARATOR
See merge request redox-os/relibc!194
2019-02-20 22:32:13 +00:00
Tibor Nagy
27a3f2ab77
unistd: Generate correct C defines for PATH_SEPARATOR
2019-02-20 22:11:25 +01:00
Tibor Nagy
4381bb2a22
tests: Remove redundant return statements
...
When the execution reaches the end of the main functions, they implicitly return a successful status.
2019-02-20 21:09:03 +01:00
Tibor Nagy
c19cc8b731
tests: Portability fixes, replaced 0/1/-1 return codes with macros
2019-02-20 20:20:07 +01:00
Tibor Nagy
ff874c87d7
tests: Fix function signatures
2019-02-20 19:27:18 +01:00
Jeremy Soller
97592716fb
Merge branch 'pedantic' into 'master'
...
tests: set C11, enable pedantic warnings, fix GCC and Clang warnings
See merge request redox-os/relibc!192
2019-02-20 16:01:50 +00:00
Tibor Nagy
7ee59d2fdb
tests: set C11, enable pedantic warnings, fix GCC and Clang warnings
2019-02-20 15:04:47 +01:00
Jeremy Soller
1af4eb7ec0
Merge branch 'ctype' into 'master'
...
ctype: Implement _tolower, _toupper
See merge request redox-os/relibc!191
2019-02-20 13:19:36 +00:00
Tibor Nagy
d38a1d0da3
ctype: Implement _tolower, _toupper
2019-02-20 11:49:06 +01:00
Jeremy Soller
73c368ddab
Use correct open flags
2019-02-19 19:29:19 -07:00
Jeremy Soller
264659b634
Merge branch 'ctype' into 'master'
...
ctype: Add tests for toascii, tolower, toupper
See merge request redox-os/relibc!190
2019-02-19 21:59:14 +00:00
Tibor Nagy
1eb22b2cb2
ctype: Add tests for toascii, tolower, toupper
2019-02-19 20:54:05 +01:00
Jeremy Soller
514b31cf28
Merge branch 'ctype' into 'master'
...
ctype: Fix iscntrl, isgraph, ispunct, make tests exhaustive
See merge request redox-os/relibc!189
2019-02-19 19:09:27 +00:00
Tibor Nagy
5fac72298f
ctype: Fix iscntrl, isgraph, ispunct, make tests exhaustive
...
iscntrl: Didn't handle the EOF macro correctly
isgraph: Didn't handle '~' (tilde) correctly
ispunct: Several issues
2019-02-19 19:53:54 +01:00
Jeremy Soller
38da5552e8
getaddrinfo: support for setting port from service argument (numeric only)
2019-02-02 14:20:26 -07:00
Peter Limkilde Svendsen
7aa0fbdf93
Include stdint.h in test
2019-02-02 16:51:38 +01:00
Peter Limkilde Svendsen
8b7453edf2
Add test of calloc with overflow
2019-02-02 16:41:09 +01:00
Peter Limkilde Svendsen
c54db6f008
Add integer overflow check to calloc
2019-02-02 15:52:39 +01:00
Jeremy Soller
d2502056a8
Cleanup termios and ioctls and add tcflush
2019-01-27 19:19:50 -07:00
Jeremy Soller
602f015e93
Implement fpathconf and pathconf
2019-01-27 18:53:57 -07:00
Jeremy Soller
0dd801da03
Implement ttyname by adding fpath function to Sys. Remove realpath function and use fpath internally
2019-01-27 17:10:55 -07:00
Jeremy Soller
42f212e678
Verify current system before continuing.
2019-01-27 15:53:09 -07:00