Uzair Nawaz
711132dfa4
[libc] Implement widechar to integer public functions ( #148683 )
...
Implement public wchar -> integer public functions using templated
internal wcs_to_integer function
2025-07-14 13:33:12 -07:00
Connector Switch
c3abe3ff22
[libc][math][c23] implement C23 math function tanpif ( #147192 )
...
The smoke test and exhaustive test pass on x86_64 Linux.
Closes #94895 .
2025-07-12 12:39:33 +08:00
William Huynh
e908f6131e
[libc] Fix WEOF and fix 1'000'000 error messages on test failure ( #147928 )
...
1. WEOF is defined as a `wint_t` by the C standard. On certain
architectures, the test won't compile on `-Wall`. This fixes it.
2. If `testSubnormalRange` fails, it will spit out way too many error
messages, which overwhelms my test environment. I reduce this to 1k for
now.
This is required for #145349
2025-07-11 09:35:04 +01:00
sribee8
d5436b0b95
[libc] wcslcat implementation ( #146588 )
...
implemented wcslcat and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-09 23:54:03 +00:00
sribee8
16f046281b
[libc] wcslcpy implementation ( #146571 )
...
Implemented wcslcpy and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-09 21:17:16 +00:00
sribee8
47e28d9cd1
[libc] wcscspn implementation ( #146158 )
...
Implemented wcscspn and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-07-01 15:56:09 +00:00
Uzair Nawaz
7a33b709b1
[libc] wcstok implementation ( #145989 )
...
Implemented wcstok and added tests
2025-06-30 10:41:00 -07:00
Schrodinger ZHU Yifan
a8f460d1dc
[libc] implement sigsetjmp for thumb/thumb2/armv7-a ( #138147 )
2025-06-30 12:32:14 -04:00
sribee8
ac7e391035
[libc] Implemented wcsnlen ( #145610 )
...
Implemented wcsnlen and tests for the function.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-27 16:51:37 +00:00
Uzair Nawaz
2db0289abe
[libc] Implemented wctomb ( #145554 )
...
Implemented wctomb by calling internal wcrtomb function
Added tests
2025-06-25 13:23:47 -07:00
sribee8
bc5e5c0114
[libc] wcpncpy implementation ( #145430 )
...
Implemented wcpncpy and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-23 23:35:28 +00:00
sribee8
10d46cf0d5
[libc] mbtowc implementation ( #145405 )
...
Implemented mbtowcs and tests for the function.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-23 23:25:13 +00:00
sribee8
b215c8e18f
[libc] wcpcpy implementation ( #144802 )
...
Implemented wcpcpy and tests.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-23 18:31:13 +00:00
Uzair Nawaz
a911543437
[libc] Implemented wcrtomb internal function and public libc function ( #144596 )
...
Implemented internal wcrtomb function using the CharacterConverter class
public libc function calls this internal function to perform the
conversion
2025-06-20 14:43:00 -07:00
sribee8
d078ce7c98
[libc] mbrtowc implementation ( #144760 )
...
implemented the internal and public mbrtowc as well as tests for the
public function.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-20 20:00:59 +00:00
William Huynh
fd432151a6
[libc] Fix bugs found when testing with all headers ( #144049 )
...
Fixes a couple of bugs found when building. The PR to enable the headers
can be found here: #144114 .
- math.yaml: float128 guard
- wchar.yaml: __restrict keyword order
2025-06-13 10:26:40 -07:00
Uzair Nawaz
b184672ec7
[libc] Implemented wmemmove ( #142245 )
...
Implemented wmemmove and added tests
2025-06-13 16:48:24 +00:00
Michael Jones
5a6a4b6ba6
[libc] Implement perror ( #143624 )
...
The perror function writes an error message directly to stderr. This
patch adds an implementation, tests, and header generation details.
2025-06-12 10:45:47 -07:00
Uzair Nawaz
6311f039b2
[libc] Build fixes for widechar characterconverter ( #143805 )
...
Build fixes for wchar CharacterConverter class
2025-06-12 17:34:45 +00:00
lntue
82f19674bf
[libc] Update size_t and ssize_t definitions to use __SIZE_TYPE__ and __PTRDIFF_TYPE__ respectively. ( #143921 )
...
The current definition of `ssize_t` does not have the same bit width as
`size_t` on 32-bit platforms.
2025-06-12 13:11:42 -04:00
W. Turner Abney
4039fdb7ba
[libc] add ioctl ( #141393 )
...
Closes #85275
Closes #90317
Updates #97191
---------
Co-authored-by: Joseph Huber <huberjn@outlook.com >
Co-authored-by: Michael Jones <michaelrj@google.com >
2025-06-12 09:20:32 -07:00
William
117e78fe50
[libc] Add NULL macro definitions to header files ( #142764 )
...
By the C standard, <locale.h>, <stddef.h> <stdio.h>, <stdlib.h>,
<string.h>, <time.h>, and <wchar.h> require NULL to be defined.
2025-06-11 09:51:34 -07:00
William
a75fc765d3
[libc] Add definitions to embedded AArch32/AArch64 ( #142597 )
...
Add `CLOCKS_PER_SEC` and the older `CLK_TCK`. Allows the user to define
a `__CLK_TCK` to override if necessary.
Also add an extra column for embedded AArch64 in `time.rst`
2025-06-06 16:05:14 -04:00
sribee8
22dd9a2483
[libc] wmemchr implementation ( #142640 )
...
Implemented wmemchr and tests.
Fixes : #121183
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-03 17:05:14 -07:00
sribee8
2ff2a076cc
[libc] wcsncpy implementation ( #142237 )
...
Implemented wcsncpy and tests for the function.
---------
Co-authored-by: Sriya Pratipati <sriyap@google.com >
2025-06-03 16:37:14 -07:00