diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-09-23 14:19:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 14:19:33 -0700 |
commit | 3bbe0f90f33357c27e3195207fa35c0fb44e426c (patch) | |
tree | 5feafd47ad083d492cd6bbab858ce1de4608ef2e | |
parent | 16d11e26f36fa0de8ef6e402bb85e32bf7c7acd6 (diff) | |
download | llvm-3bbe0f90f33357c27e3195207fa35c0fb44e426c.zip llvm-3bbe0f90f33357c27e3195207fa35c0fb44e426c.tar.gz llvm-3bbe0f90f33357c27e3195207fa35c0fb44e426c.tar.bz2 |
[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.
-rw-r--r-- | libc/config/gpu/headers.txt | 1 | ||||
-rw-r--r-- | libc/docs/gpu/support.rst | 24 |
2 files changed, 18 insertions, 7 deletions
diff --git a/libc/config/gpu/headers.txt b/libc/config/gpu/headers.txt index fc952c4..adbd014 100644 --- a/libc/config/gpu/headers.txt +++ b/libc/config/gpu/headers.txt @@ -2,6 +2,7 @@ set(TARGET_PUBLIC_HEADERS libc.include.assert libc.include.ctype libc.include.string + libc.include.strings libc.include.signal libc.include.float libc.include.stdint diff --git a/libc/docs/gpu/support.rst b/libc/docs/gpu/support.rst index fada2d4..44c21c7 100644 --- a/libc/docs/gpu/support.rst +++ b/libc/docs/gpu/support.rst @@ -47,7 +47,6 @@ Function Name Available RPC Required bcmp |check| bcopy |check| bzero |check| -index |check| memccpy |check| memchr |check| memcmp |check| @@ -57,11 +56,8 @@ memmove |check| mempcpy |check| memrchr |check| memset |check| -rindex |check| stpcpy |check| stpncpy |check| -strcasecmp |check| -strcasestr |check| strcat |check| strchr |check| strchrnul |check| @@ -74,7 +70,6 @@ strerror |check| strlcat |check| strlcpy |check| strlen |check| -strncasecmp |check| strncat |check| strncmp |check| strncpy |check| @@ -90,6 +85,21 @@ strtok_r |check| strxfrm |check| ============= ========= ============ +strings.h +--------- + +============= ========= ============ +Function Name Available RPC Required +============= ========= ============ +bcmp |check| +bcopy |check| +bzero |check| +strcasecmp |check| +strcasestr |check| +index |check| +rindex |check| +============= ========= ============ + stdbit.h -------- @@ -240,8 +250,8 @@ snprintf |check| vsprintf |check| vsnprintf |check| sscanf |check| -scanf |check| -fscanf |check| +scanf |check| |check| +fscanf |check| |check| putchar |check| |check| fclose |check| |check| fopen |check| |check| |