Skip to content

Commit

Permalink
(__stpcpy): Add libc_hidden_def.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Aug 4, 2002
1 parent 02926a6 commit 6111cd0
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions include/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/alpha/alphaev67/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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>.
Expand Down Expand Up @@ -50,3 +50,4 @@ ENTRY(__stpcpy)
END(__stpcpy)

weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
3 changes: 2 additions & 1 deletion sysdeps/alpha/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -52,3 +52,4 @@ ENTRY(__stpcpy)
END(__stpcpy)

weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
5 changes: 4 additions & 1 deletion sysdeps/generic/stpcpy.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
1 change: 1 addition & 0 deletions sysdeps/i386/i586/stpcpy.S
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
#include <sysdeps/i386/i586/strcpy.S>

weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
3 changes: 2 additions & 1 deletion sysdeps/i386/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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).
Expand Down Expand Up @@ -93,3 +93,4 @@ L(2):
END (BP_SYM (__stpcpy))

weak_alias (BP_SYM (__stpcpy), BP_SYM (stpcpy))
libc_hidden_def (__stpcpy)
3 changes: 2 additions & 1 deletion sysdeps/powerpc/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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)
5 changes: 3 additions & 2 deletions sysdeps/sparc/sparc32/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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>.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -161,3 +161,4 @@ ENTRY(__stpcpy)
END(__stpcpy)

weak_alias(__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)
3 changes: 2 additions & 1 deletion sysdeps/sparc/sparc64/stpcpy.S
Original file line number Diff line number Diff line change
@@ -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>.
Expand Down Expand Up @@ -271,3 +271,4 @@ ENTRY(__stpcpy)
END(__stpcpy)

weak_alias (__stpcpy, stpcpy)
libc_hidden_def (__stpcpy)

0 comments on commit 6111cd0

Please sign in to comment.