sourceturner
20d89d166c
use ip6 feature flag for IPv6 related definitions
...
as a consequence, some unit tests have to be fixed, too
2026-06-04 17:48:14 +02:00
nicoan
495779a21b
format
2026-04-15 15:40:45 -03:00
nicoan
2c4a20e71b
added tests to scanf and wscanf
2026-04-15 15:38:40 -03:00
nicoan
da3ff538d6
WIP: fixing regressions
2026-04-15 14:18:20 -03:00
Wildan M
46379d7001
Make test files buildable for glibc
2026-03-25 03:11:33 +07:00
Peter Limkilde Svendsen
41264dc8b1
Add NulTerminatedInclusive iterator, rewrite/fix strchr/wcschr
2024-10-22 22:12:24 +00:00
Jeremy Soller
dc9a577354
Merge branch 'mktime-timegm-refactor' into 'master'
...
Refactor mktime, timegm and fix wcpncpy test
See merge request redox-os/relibc!487
2024-08-01 18:42:01 +00:00
Peter Limkilde Svendsen
17076f37b9
Refactor mktime, timegm and fix wcpncpy test
2024-08-01 18:42:01 +00:00
Nicolás Antinori
198c5502b7
swscanf and vswscanf implementation proposal
2024-08-01 18:41:14 +00:00
Darley Barreto
ce1e31d567
Replace C dlmalloc
2023-12-12 15:04:17 +00:00
4lDO2
5f929ed51e
Enable -Wextra in tests.
2023-11-12 12:07:49 +01:00
Darley Barreto
f7d151e287
Simplify wcsrtombs and make test follow standard
2023-10-25 09:13:41 -03:00
Jeremy Soller
76242fc7bc
Merge branch 'fix/ungetwc' into 'master'
...
Fix ungetwc for multi byte chars
See merge request redox-os/relibc!425
2023-10-19 14:58:57 +00:00
Darley Barreto
3d2dd71b8b
Fix ungetwc for multi byte chars
2023-10-19 14:58:57 +00:00
Darley Barreto
05992b8451
Add wcpcpy, wcpncpy, wcsdup, wcsnlen, wcsnrtombs
2023-10-19 14:58:37 +00:00
Darley Barreto
db9bbaeb48
Make fgetwc real multibyte
2023-10-14 00:29:42 +00:00
Darley Barreto
9642d2ab02
Adding some wcst* functions
2023-05-22 16:01:04 +00:00
Jeremy Soller
98193b2eeb
Add tests for wprintf
2023-05-11 07:48:23 -06:00
Darley Barreto
82eb083091
Fixing wcsrtombs
2023-05-10 12:48:33 +00:00
Darley Barreto
c659bf11f9
Implementing ungetwc
2023-05-09 14:23:25 +00:00
Darley Barreto
7155005be2
Adding wcsrtombs.
2023-05-08 12:39:53 +00:00
Jeremy Soller
393489b38b
Add wcswidth and test
2022-12-16 17:39:06 -07: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
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
oddcoder
e9615065ac
Add tests for both wcsncasecmp and wcscasecmp
2020-04-26 19:13:03 +02:00
Peter Limkilde Svendsen
0b2c3fe5ea
Implement wcsstr(), fix return type of wcslen()
2019-11-14 02:46:53 +00: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
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
emturner
4ed6dca61d
implements wcsrchr from wchar.h
2019-02-25 22:53:11 +00: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
emturner
ec3488c7b0
implements wcscspn from wchar.h
2019-02-22 23:18:21 +00: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
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
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
Tibor Nagy
7ee59d2fdb
tests: set C11, enable pedantic warnings, fix GCC and Clang warnings
2019-02-20 15:04:47 +01:00
Jeremy Soller
950b4526c7
- Disable output of empty header files
...
- Remove incorrect header styles
- Use export.replace where header style was previously needed
- Check compilation of tests using system gcc
2018-11-26 21:35:02 -07:00
Stephan Vedder
cc210361d6
wchar support
2018-07-01 20:59:37 +02:00