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 Bot 3391ed
#include <ifunc-strcpy.h>
Packit Bot 3391ed
Packit Bot 3391ed
#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 Bot 3391ed
# if HAVE_STRCPY_Z900_G5
Packit Bot 3391ed
extern __typeof (__redirect_strcpy) STRCPY_Z900_G5 attribute_hidden;
Packit Bot 3391ed
# endif
Packit Bot 3391ed
Packit Bot 3391ed
# if HAVE_STRCPY_Z13
Packit Bot 3391ed
extern __typeof (__redirect_strcpy) STRCPY_Z13 attribute_hidden;
Packit Bot 3391ed
# endif
Packit Service afc107
Packit Bot 3391ed
s390_libc_ifunc_expr (__redirect_strcpy, strcpy,
Packit Bot 3391ed
		      (HAVE_STRCPY_Z13 && (hwcap & HWCAP_S390_VX))
Packit Bot 3391ed
		      ? STRCPY_Z13
Packit Bot 3391ed
		      : STRCPY_DEFAULT
Packit Bot 3391ed
		      )
Packit Service 0d0e7c
#endif