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