Blame sysdeps/unix/sysv/linux/alpha/pt-vfork.S

Packit Service 93dc7a
/* vfork ABI-compatibility entry points for libpthread.
Packit Service 93dc7a
   Copyright (C) 2014-2018 Free Software Foundation, Inc.
Packit Service 93dc7a
   This file is part of the GNU C Library.
Packit Service 93dc7a
Packit Service 93dc7a
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 93dc7a
   modify it under the terms of the GNU Lesser General Public
Packit Service 93dc7a
   License as published by the Free Software Foundation; either
Packit Service 93dc7a
   version 2.1 of the License, or (at your option) any later version.
Packit Service 93dc7a
Packit Service 93dc7a
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 93dc7a
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 93dc7a
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 93dc7a
   Lesser General Public License for more details.
Packit Service 93dc7a
Packit Service 93dc7a
   You should have received a copy of the GNU Lesser General Public
Packit Service 93dc7a
   License along with the GNU C Library; if not, see
Packit Service 93dc7a
   <http://www.gnu.org/licenses/>.  */
Packit Service 93dc7a
Packit Service 93dc7a
#include <shlib-compat.h>
Packit Service 93dc7a
Packit Service 93dc7a
/* libpthread used to have its own vfork implementation that differed
Packit Service 93dc7a
   from libc's only in having a pointless micro-optimization.  There
Packit Service 93dc7a
   is no longer any use to having a separate copy in libpthread, but
Packit Service 93dc7a
   the historical ABI requires it.  For static linking, there is no
Packit Service 93dc7a
   need to provide anything here--the libc version will be linked in.
Packit Service 93dc7a
   For shared library ABI compatibility, there must be __vfork and
Packit Service 93dc7a
   vfork symbols in libpthread.so.  */
Packit Service 93dc7a
Packit Service 93dc7a
#if (SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_20) \
Packit Service 93dc7a
     || SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_20))
Packit Service 93dc7a
Packit Service 93dc7a
#include <vfork.S>
Packit Service 93dc7a
Packit Service 93dc7a
#endif
Packit Service 93dc7a
Packit Service 93dc7a
#if SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_20)
Packit Service 93dc7a
compat_symbol (libpthread, __libc_vfork, vfork, GLIBC_2_0);
Packit Service 93dc7a
#endif
Packit Service 93dc7a
Packit Service 93dc7a
#if SHLIB_COMPAT (libpthread, GLIBC_2_1_2, GLIBC_2_20)
Packit Service 93dc7a
strong_alias (__libc_vfork, __vfork_compat)
Packit Service 93dc7a
compat_symbol (libpthread, __vfork_compat, __vfork, GLIBC_2_1_2);
Packit Service 93dc7a
#endif