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