Page MenuHomeFreeBSD

D46417.diff
No OneTemporary

D46417.diff

diff --git a/lib/libc/aarch64/string/Makefile.inc b/lib/libc/aarch64/string/Makefile.inc
--- a/lib/libc/aarch64/string/Makefile.inc
+++ b/lib/libc/aarch64/string/Makefile.inc
@@ -25,7 +25,8 @@
strspn.S \
strcspn.S \
strpbrk.c \
- strsep.c
+ strsep.c \
+ strcat.c
#
# Add the above functions. Generate an asm file that includes the needed
diff --git a/lib/libc/aarch64/string/strcat.c b/lib/libc/aarch64/string/strcat.c
new file mode 100644
--- /dev/null
+++ b/lib/libc/aarch64/string/strcat.c
@@ -0,0 +1,20 @@
+/*-
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
+ * Copyright (c) 2024 Getz Mikalsen <getz@FreeBSD.org>
+*/
+
+#include <string.h>
+
+#undef strcat /* _FORTIFY_SOURCE */
+
+char *
+strcat(char * __restrict s, const char * __restrict append)
+{
+ char *save = s;
+
+ /* call into SIMD optimized functions */
+ stpcpy(s + strlen(s), append);
+
+ return(save);
+}

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 6, 10:56 PM (21 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16502607
Default Alt Text
D46417.diff (885 B)

Event Timeline