aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-04 01:22:11 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-04 01:22:11 +0000
commit6111cd0e8a327ee3084c67e86b6ad050c6d83096 (patch)
treeaf4eb5edf46c989affc15ec937de7fca5b32a4fc
parent02926a63a13b77b30772aa329b251b1485a7c84c (diff)
downloadglibc-6111cd0e8a327ee3084c67e86b6ad050c6d83096.tar
glibc-6111cd0e8a327ee3084c67e86b6ad050c6d83096.tar.gz
glibc-6111cd0e8a327ee3084c67e86b6ad050c6d83096.tar.bz2
glibc-6111cd0e8a327ee3084c67e86b6ad050c6d83096.zip
(__stpcpy): Add libc_hidden_def.
-rw-r--r--include/string.h1
-rw-r--r--sysdeps/alpha/alphaev67/stpcpy.S3
-rw-r--r--sysdeps/alpha/stpcpy.S3
-rw-r--r--sysdeps/generic/stpcpy.c5
-rw-r--r--sysdeps/i386/i586/stpcpy.S1
-rw-r--r--sysdeps/i386/stpcpy.S3
-rw-r--r--sysdeps/powerpc/stpcpy.S3
-rw-r--r--sysdeps/sparc/sparc32/stpcpy.S5
-rw-r--r--sysdeps/sparc/sparc64/stpcpy.S3
9 files changed, 19 insertions, 8 deletions
diff --git a/include/string.h b/include/string.h
index f085b17ee8..bc04cef812 100644
--- a/include/string.h
+++ b/include/string.h
@@ -62,6 +62,7 @@ extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen);
#endif
libc_hidden_proto (__mempcpy)
+libc_hidden_proto (__stpcpy)
libc_hidden_proto (__stpncpy)
libc_hidden_proto (__rawmemchr)
libc_hidden_proto (__strcasecmp)
diff --git a/sysdeps/alpha/alphaev67/stpcpy.S b/sysdeps/alpha/alphaev67/stpcpy.S
index bb9da0c73d..d09babc8f5 100644
--- a/sysdeps/alpha/alphaev67/stpcpy.S
+++ b/sysdeps/alpha/alphaev67/stpcpy.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson <rth@redhat.com>.
@@ -50,3 +50,4 @@ ENTRY(__stpcpy)
END(__stpcpy)
weak_alias (__stpcpy, stpcpy)
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/alpha/stpcpy.S b/sysdeps/alpha/stpcpy.S
index 1ed74421e8..a37a308bb3 100644
--- a/sysdeps/alpha/stpcpy.S
+++ b/sysdeps/alpha/stpcpy.S
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Richard Henderson <rth@tamu.edu>, 1996.
@@ -52,3 +52,4 @@ ENTRY(__stpcpy)
END(__stpcpy)
weak_alias (__stpcpy, stpcpy)
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/generic/stpcpy.c b/sysdeps/generic/stpcpy.c
index fb818105d2..92d3b4d25b 100644
--- a/sysdeps/generic/stpcpy.c
+++ b/sysdeps/generic/stpcpy.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1995, 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,6 +44,9 @@ __stpcpy (dest, src)
return d - 1;
}
+#ifdef libc_hidden_def
+libc_hidden_def (__stpcpy)
+#endif
#ifdef weak_alias
weak_alias (__stpcpy, stpcpy)
#endif
diff --git a/sysdeps/i386/i586/stpcpy.S b/sysdeps/i386/i586/stpcpy.S
index ea24fa709a..5c19237f63 100644
--- a/sysdeps/i386/i586/stpcpy.S
+++ b/sysdeps/i386/i586/stpcpy.S
@@ -4,3 +4,4 @@
#include <sysdeps/i386/i586/strcpy.S>
weak_alias (__stpcpy, stpcpy)
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/i386/stpcpy.S b/sysdeps/i386/stpcpy.S
index caa2f33f99..7975a87964 100644
--- a/sysdeps/i386/stpcpy.S
+++ b/sysdeps/i386/stpcpy.S
@@ -1,6 +1,6 @@
/* Copy SRC to DEST returning the address of the terminating '\0' in DEST.
For Intel 80x86, x>=3.
- Copyright (C) 1994, 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1994,1995,1996,1997,2000,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper (drepper@gnu.ai.mit.edu).
@@ -93,3 +93,4 @@ L(2):
END (BP_SYM (__stpcpy))
weak_alias (BP_SYM (__stpcpy), BP_SYM (stpcpy))
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/powerpc/stpcpy.S b/sysdeps/powerpc/stpcpy.S
index 5c1c82ea20..9640a5d831 100644
--- a/sysdeps/powerpc/stpcpy.S
+++ b/sysdeps/powerpc/stpcpy.S
@@ -1,5 +1,5 @@
/* Optimized stpcpy implementation for PowerPC.
- Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -118,3 +118,4 @@ L(u1): stbu rALT, 1(rDEST)
END (BP_SYM (__stpcpy))
weak_alias (BP_SYM (__stpcpy), BP_SYM (stpcpy))
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/sparc/sparc32/stpcpy.S b/sysdeps/sparc/sparc32/stpcpy.S
index dbce3e0b4e..f32faac9c1 100644
--- a/sysdeps/sparc/sparc32/stpcpy.S
+++ b/sysdeps/sparc/sparc32/stpcpy.S
@@ -1,6 +1,6 @@
/* Copy SRC to DEST returning the address of the terminating '\0' in DEST.
For SPARC v7.
- Copyright (C) 1996, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jj@ultra.linux.cz>.
@@ -77,7 +77,7 @@ ENTRY(__stpcpy)
6: andcc %o0, 3, %g0
bne 16f
sub %g0, 4, %g1
-
+
11: add %g1, 4, %g1
ld [%o1 + %g1], %o5
sub %o5, %o2, %o4
@@ -161,3 +161,4 @@ ENTRY(__stpcpy)
END(__stpcpy)
weak_alias(__stpcpy, stpcpy)
+libc_hidden_def (__stpcpy)
diff --git a/sysdeps/sparc/sparc64/stpcpy.S b/sysdeps/sparc/sparc64/stpcpy.S
index fb8dfcb4bf..e9617f4d8b 100644
--- a/sysdeps/sparc/sparc64/stpcpy.S
+++ b/sysdeps/sparc/sparc64/stpcpy.S
@@ -1,6 +1,6 @@
/* Copy SRC to DEST returning the address of the terminating '\0' in DEST.
For SPARC v9.
- Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jan Vondrak <jvon4518@ss1000.ms.mff.cuni.cz> and
Jakub Jelinek <jj@ultra.linux.cz>.
@@ -271,3 +271,4 @@ ENTRY(__stpcpy)
END(__stpcpy)
weak_alias (__stpcpy, stpcpy)
+libc_hidden_def (__stpcpy)