Skip to content

Commit 3bbe0f9

Browse files
authored
[libc] Add 'strings.h' header on the GPU (#109661)
Summary: These are GNU extensions but still show up, the entrypoints were enabled but we weren't emitting the header so they couldn't be used.
1 parent 16d11e2 commit 3bbe0f9

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

libc/config/gpu/headers.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ set(TARGET_PUBLIC_HEADERS
22
libc.include.assert
33
libc.include.ctype
44
libc.include.string
5+
libc.include.strings
56
libc.include.signal
67
libc.include.float
78
libc.include.stdint

libc/docs/gpu/support.rst

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Function Name Available RPC Required
4747
bcmp |check|
4848
bcopy |check|
4949
bzero |check|
50-
index |check|
5150
memccpy |check|
5251
memchr |check|
5352
memcmp |check|
@@ -57,11 +56,8 @@ memmove |check|
5756
mempcpy |check|
5857
memrchr |check|
5958
memset |check|
60-
rindex |check|
6159
stpcpy |check|
6260
stpncpy |check|
63-
strcasecmp |check|
64-
strcasestr |check|
6561
strcat |check|
6662
strchr |check|
6763
strchrnul |check|
@@ -74,7 +70,6 @@ strerror |check|
7470
strlcat |check|
7571
strlcpy |check|
7672
strlen |check|
77-
strncasecmp |check|
7873
strncat |check|
7974
strncmp |check|
8075
strncpy |check|
@@ -90,6 +85,21 @@ strtok_r |check|
9085
strxfrm |check|
9186
============= ========= ============
9287

88+
strings.h
89+
---------
90+
91+
============= ========= ============
92+
Function Name Available RPC Required
93+
============= ========= ============
94+
bcmp |check|
95+
bcopy |check|
96+
bzero |check|
97+
strcasecmp |check|
98+
strcasestr |check|
99+
index |check|
100+
rindex |check|
101+
============= ========= ============
102+
93103
stdbit.h
94104
--------
95105

@@ -240,8 +250,8 @@ snprintf |check|
240250
vsprintf |check|
241251
vsnprintf |check|
242252
sscanf |check|
243-
scanf |check|
244-
fscanf |check|
253+
scanf |check| |check|
254+
fscanf |check| |check|
245255
putchar |check| |check|
246256
fclose |check| |check|
247257
fopen |check| |check|

0 commit comments

Comments
 (0)