Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144427281
D46459.id149066.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46459.id149066.diff
View Options
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
@@ -30,7 +30,9 @@
memccpy.S \
strncat.c \
strlcat.c \
- strlen.S
+ strlen.S \
+ bcopy.c \
+ bzero.c
#
# Add the above functions. Generate an asm file that includes the needed
diff --git a/lib/libc/aarch64/string/bcopy.c b/lib/libc/aarch64/string/bcopy.c
new file mode 100644
--- /dev/null
+++ b/lib/libc/aarch64/string/bcopy.c
@@ -0,0 +1,14 @@
+/*-
+ * Public domain.
+ */
+
+#include <string.h>
+
+#undef bcopy /* _FORTIFY_SOURCE */
+
+void
+bcopy(const void *src, void *dst, size_t len)
+{
+
+ memmove(dst, src, len);
+}
diff --git a/lib/libc/aarch64/string/bzero.c b/lib/libc/aarch64/string/bzero.c
new file mode 100644
--- /dev/null
+++ b/lib/libc/aarch64/string/bzero.c
@@ -0,0 +1,14 @@
+/*-
+ * Public domain.
+ */
+
+#include <string.h>
+
+#undef bzero /* _FORTIFY_SOURCE */
+
+void
+bzero(void *b, size_t len)
+{
+
+ memset(b, 0, len);
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 9:33 AM (3 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28563849
Default Alt Text
D46459.id149066.diff (1 KB)
Attached To
Mode
D46459: lib/libc/aarch64/string: add bcopy & bzero wrapper
Attached
Detach File
Event Timeline
Log In to Comment