about summary refs log tree commit diff
path: root/sysdeps/i386/multiarch/strncpy-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-08-20 12:05:50 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-08-27 09:35:11 -0700
commit4fadad5ce5208d12fd65538ecbec1b97ae83b440 (patch)
tree78866f58140f82a6332733a99fc9ab17de32d904 /sysdeps/i386/multiarch/strncpy-i386.c
parent377adacbaaa3974408b708a20912474e45cd383b (diff)
downloadglibc-4fadad5ce5208d12fd65538ecbec1b97ae83b440.tar.gz
glibc-4fadad5ce5208d12fd65538ecbec1b97ae83b440.tar.xz
glibc-4fadad5ce5208d12fd65538ecbec1b97ae83b440.zip
Add i386 strcpy family multiarch functions
Diffstat (limited to 'sysdeps/i386/multiarch/strncpy-i386.c')
-rw-r--r--sysdeps/i386/multiarch/strncpy-i386.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysdeps/i386/multiarch/strncpy-i386.c b/sysdeps/i386/multiarch/strncpy-i386.c
new file mode 100644
index 0000000000..b584d83470
--- /dev/null
+++ b/sysdeps/i386/multiarch/strncpy-i386.c
@@ -0,0 +1,12 @@
+#include <init-arch.h>
+#undef libc_hidden_builtin_def
+#ifdef SHARED
+# define libc_hidden_builtin_def(name)  \
+    __hidden_ver1 (__strncpy_i386, __GI_strncpy, __strncpy_i386);
+#else
+# define libc_hidden_builtin_def(name)
+#endif
+
+#define _HAVE_STRING_ARCH_strncpy
+#define STRNCPY __strncpy_i386
+#include "string/strncpy.c"