[libc-commits] [libc] 51eeeb4 - [libc] [Obvious] Place entrypoints, specs alphabetically.

via libc-commits libc-commits at lists.llvm.org
Fri Jul 24 12:53:03 PDT 2020


Author: cgyurgyik
Date: 2020-07-24T15:52:35-04:00
New Revision: 51eeeb477fad47d4885f3fe226aa4941470dae26

URL: https://github.com/llvm/llvm-project/commit/51eeeb477fad47d4885f3fe226aa4941470dae26
DIFF: https://github.com/llvm/llvm-project/commit/51eeeb477fad47d4885f3fe226aa4941470dae26.diff

LOG: [libc] [Obvious] Place entrypoints, specs alphabetically.

Added: 
    

Modified: 
    libc/config/linux/aarch64/entrypoints.txt
    libc/config/linux/api.td
    libc/config/linux/x86_64/entrypoints.txt

Removed: 
    


################################################################################
diff  --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index b287a72d779b..8cdc6ca68621 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -4,16 +4,16 @@ set(TARGET_LIBC_ENTRYPOINTS
 
     # string.h entrypoints
     libc.src.string.bzero
+    libc.src.string.memchr
     libc.src.string.memcpy
     libc.src.string.memset
-    libc.src.string.strcpy
+    libc.src.string.memrchr
     libc.src.string.strcat
-    libc.src.string.strlen
-    libc.src.string.memchr
     libc.src.string.strchr
-    libc.src.string.strstr
+    libc.src.string.strcpy
+    libc.src.string.strlen
     libc.src.string.strnlen
-    libc.src.string.memrchr
+    libc.src.string.strstr
 )
 
 set(TARGET_LIBM_ENTRYPOINTS

diff  --git a/libc/config/linux/api.td b/libc/config/linux/api.td
index 5f7a858d5fa3..3abdf9f55b07 100644
--- a/libc/config/linux/api.td
+++ b/libc/config/linux/api.td
@@ -194,30 +194,30 @@ def MathAPI : PublicAPI<"math.h"> {
 def StringAPI : PublicAPI<"string.h"> {
   let Functions = [
     "bzero",
+    "memchr",
+    "memcmp",
     "memcpy",
     "memmove",
-    "memcmp",
-    "memchr",
+    "memrchr",
     "memset",
-    "strcpy",
-    "strncpy",
     "strcat",
-    "strncat",
+    "strchr",
     "strcmp",
     "strcoll",
+    "strcpy",
+    "strcspn",  
+    "strerror",
+    "strlen",
+    "strncat",
     "strncmp",
-    "strxfrm",
-    "strchr",
-    "strcspn",
+    "strncpy",
+    "strnlen",
     "strpbrk",
     "strrchr",
     "strspn",
     "strstr",
     "strtok",
-    "strerror",
-    "strlen",
-    "strnlen",
-    "memrchr"
+    "strxfrm",   
   ];
 
   let TypeDeclarations = [

diff  --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index db5300530489..16dd702d0eb5 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -21,17 +21,17 @@ set(TARGET_LIBC_ENTRYPOINTS
 
     # string.h entrypoints
     libc.src.string.bzero
+    libc.src.string.memchr
     libc.src.string.memcpy
+    libc.src.string.memrchr
     libc.src.string.memset
-    libc.src.string.strcpy
     libc.src.string.strcat
-    libc.src.string.strlen
-    libc.src.string.strcmp
-    libc.src.string.memchr
     libc.src.string.strchr
-    libc.src.string.strstr
+    libc.src.string.strcmp
+    libc.src.string.strcpy
+    libc.src.string.strlen
     libc.src.string.strnlen
-    libc.src.string.memrchr
+    libc.src.string.strstr
 
     # sys/mman.h entrypoints
     libc.src.sys.mman.mmap


        


More information about the libc-commits mailing list