Blame sysdeps/s390/strcpy.c
|
Packit Service |
badf34 |
/* Multiple versions of strcpy.
|
|
Packit Service |
badf34 |
Copyright (C) 2015-2018 Free Software Foundation, Inc.
|
|
Packit Service |
0d0e7c |
This file is part of the GNU C Library.
|
|
Packit Service |
0d0e7c |
|
|
Packit Service |
0d0e7c |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
0d0e7c |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
0d0e7c |
License as published by the Free Software Foundation; either
|
|
Packit Service |
0d0e7c |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
0d0e7c |
|
|
Packit Service |
0d0e7c |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
0d0e7c |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
0d0e7c |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
0d0e7c |
Lesser General Public License for more details.
|
|
Packit Service |
0d0e7c |
|
|
Packit Service |
0d0e7c |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
0d0e7c |
License along with the GNU C Library; if not, see
|
|
Packit Service |
0d0e7c |
<http://www.gnu.org/licenses/>. */
|
|
Packit Service |
0d0e7c |
|
|
Packit Service |
a23f65 |
#include <ifunc-strcpy.h>
|
|
Packit Service |
a23f65 |
|
|
Packit Service |
a23f65 |
#if HAVE_STRCPY_IFUNC
|
|
Packit Service |
badf34 |
# define strcpy __redirect_strcpy
|
|
Packit Service |
0d0e7c |
# include <string.h>
|
|
Packit Service |
badf34 |
# undef strcpy
|
|
Packit Service |
0d0e7c |
# include <ifunc-resolve.h>
|
|
Packit Service |
0d0e7c |
|
|
Packit Service |
a23f65 |
# if HAVE_STRCPY_Z900_G5
|
|
Packit Service |
a23f65 |
extern __typeof (__redirect_strcpy) STRCPY_Z900_G5 attribute_hidden;
|
|
Packit Service |
a23f65 |
# endif
|
|
Packit Service |
a23f65 |
|
|
Packit Service |
a23f65 |
# if HAVE_STRCPY_Z13
|
|
Packit Service |
a23f65 |
extern __typeof (__redirect_strcpy) STRCPY_Z13 attribute_hidden;
|
|
Packit Service |
a23f65 |
# endif
|
|
Packit Service |
afc107 |
|
|
Packit Service |
a23f65 |
s390_libc_ifunc_expr (__redirect_strcpy, strcpy,
|
|
Packit Service |
a23f65 |
(HAVE_STRCPY_Z13 && (hwcap & HWCAP_S390_VX))
|
|
Packit Service |
a23f65 |
? STRCPY_Z13
|
|
Packit Service |
a23f65 |
: STRCPY_DEFAULT
|
|
Packit Service |
a23f65 |
)
|
|
Packit Service |
0d0e7c |
#endif
|