Skip to content

Commit 0de8381

Browse files
committed
build files
1 parent 4bb40cd commit 0de8381

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

libc/config/linux/x86_64/entrypoints.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,7 @@ if(LLVM_LIBC_FULL_BUILD)
12511251
libc.src.wchar.mbrtowc
12521252
libc.src.wchar.mbtowc
12531253
libc.src.wchar.wcrtomb
1254+
libc.src.wchar.wcsrtombs
12541255
)
12551256
endif()
12561257

libc/include/wchar.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,15 @@ functions:
175175
- type: char *__restrict
176176
- type: wchar_t
177177
- type: mbstate_t *__restrict
178+
- name: wcsrtombs
179+
standards:
180+
- stdc
181+
return_type: size_t
182+
arguments:
183+
- type: char *__restrict
184+
- type: wchar_t **__restrict
185+
- type: size_t
186+
- type: mbstate_t *__restrict
178187
- name: wcscpy
179188
standards:
180189
- stdc

libc/test/src/wchar/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ add_libc_test(
7474
libc.src.__support.libc_errno
7575
)
7676

77+
add_libc_test(
78+
wcsrtombs_test
79+
SUITE
80+
libc_wchar_unittests
81+
SRCS
82+
wcsrtombs_test.cpp
83+
DEPENDS
84+
libc.src.wchar.wcrtomb
85+
libc.src.string.memset
86+
libc.hdr.types.wchar_t
87+
libc.hdr.types.mbstate_t
88+
libc.src.__support.libc_errno
89+
)
90+
7791
add_libc_test(
7892
wmemset_test
7993
SUITE

0 commit comments

Comments
 (0)