Blame sysdeps/s390/memmem-c.c

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