Blame sysdeps/s390/memmem-c.c

Packit Service ae60be
/* Default memmem implementation for S/390.
Packit Service ae60be
   Copyright (C) 2018 Free Software Foundation, Inc.
Packit Service ae60be
   This file is part of the GNU C Library.
Packit Service ae60be
Packit Service ae60be
   The GNU C Library is free software; you can redistribute it and/or
Packit Service ae60be
   modify it under the terms of the GNU Lesser General Public
Packit Service ae60be
   License as published by the Free Software Foundation; either
Packit Service ae60be
   version 2.1 of the License, or (at your option) any later version.
Packit Service ae60be
Packit Service ae60be
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service ae60be
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service ae60be
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service ae60be
   Lesser General Public License for more details.
Packit Service ae60be
Packit Service ae60be
   You should have received a copy of the GNU Lesser General Public
Packit Service ae60be
   License along with the GNU C Library; if not, see
Packit Service ae60be
   <http://www.gnu.org/licenses/>.  */
Packit Service ae60be
Packit Service ae60be
#include <ifunc-memmem.h>
Packit Service ae60be
Packit Service ae60be
#if HAVE_MEMMEM_C
Packit Service ae60be
# if HAVE_MEMMEM_IFUNC
Packit Service ae60be
#  include <string.h>
Packit Service ae60be
Packit Service ae60be
#  ifndef _LIBC
Packit Service ae60be
#   define memmem MEMMEM_C
Packit Service ae60be
#  else
Packit Service ae60be
#   define __memmem MEMMEM_C
Packit Service ae60be
#  endif
Packit Service ae60be
Packit Service ae60be
#  if defined SHARED && IS_IN (libc)
Packit Service ae60be
#   undef libc_hidden_def
Packit Service ae60be
#   define libc_hidden_def(name)				\
Packit Service ae60be
  strong_alias (__memmem_c, __memmem_c_1);			\
Packit Service ae60be
  __hidden_ver1 (__memmem_c, __GI___memmem, __memmem_c);
Packit Service ae60be
Packit Service ae60be
#   undef libc_hidden_weak
Packit Service ae60be
#   define libc_hidden_weak(name)					\
Packit Service ae60be
  __hidden_ver1 (__memmem_c_1, __GI_memmem, __memmem_c_1) __attribute__((weak));
Packit Service ae60be
#  endif
Packit Service ae60be
Packit Service ae60be
#  undef weak_alias
Packit Service ae60be
#  define weak_alias(a, b)
Packit Service ae60be
# endif
Packit Service ae60be
Packit Service ae60be
# include <string/memmem.c>
Packit Service ae60be
#endif