[libc][NFC] Add bzero to list of entrypoints.

A new LLVM libc specific extension standard spec has been added.

GitOrigin-RevId: 63bbddf4cdbd76654fd727c3b8154eaccd2f0398
diff --git a/config/linux/api.td b/config/linux/api.td
index 4259fd7..5ac6b9d 100644
--- a/config/linux/api.td
+++ b/config/linux/api.td
@@ -2,6 +2,7 @@
 
 include "spec/gnu_ext.td"
 include "spec/linux.td"
+include "spec/llvm_libc_ext.td"
 include "spec/posix.td"
 include "spec/stdc.td"
 
@@ -168,6 +169,7 @@
 
 def StringAPI : PublicAPI<"string.h"> {
   let Functions = [
+    "bzero",
     "memcpy",
     "memmove",
     "memcmp",
diff --git a/config/linux/x86_64/entrypoints.txt b/config/linux/x86_64/entrypoints.txt
index 54fe783..d5ed7a2 100644
--- a/config/linux/x86_64/entrypoints.txt
+++ b/config/linux/x86_64/entrypoints.txt
@@ -20,6 +20,7 @@
     libc.src.stdlib.abort
 
     # string.h entrypoints
+    libc.src.string.bzero
     libc.src.string.memcpy
     libc.src.string.strcpy
     libc.src.string.strcat
diff --git a/spec/llvm_libc_ext.td b/spec/llvm_libc_ext.td
new file mode 100644
index 0000000..d8a2b8b
--- /dev/null
+++ b/spec/llvm_libc_ext.td
@@ -0,0 +1,20 @@
+def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
+  HeaderSpec String = HeaderSpec<
+      "string.h",
+      [], // Macros
+      [], // Types
+      [], // Enumerations
+      [
+          FunctionSpec<
+              "bzero",
+              RetValSpec<VoidType>,
+              [ArgSpec<VoidPtr>,
+               ArgSpec<SizeTType>]
+          >,
+      ]
+  >;
+
+  let Headers = [
+    String,
+  ];
+}