about summary refs log tree commit diff
path: root/sysdeps/i386/multiarch/strncpy-i386.c
diff options
context:
space:
mode:
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"