Blame resolv/compat-hooks.c

Packit 6c4009
/* Compatibility functions for obsolete libresolv hooks.
Packit 6c4009
   Copyright (C) 1999-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 * Copyright (c) 1995-1999 by Internet Software Consortium.
Packit 6c4009
 *
Packit 6c4009
 * Permission to use, copy, modify, and distribute this software for any
Packit 6c4009
 * purpose with or without fee is hereby granted, provided that the above
Packit 6c4009
 * copyright notice and this permission notice appear in all copies.
Packit 6c4009
 *
Packit 6c4009
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
Packit 6c4009
 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
Packit 6c4009
 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
Packit 6c4009
 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
Packit 6c4009
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
Packit 6c4009
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
Packit 6c4009
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
Packit 6c4009
 * SOFTWARE.
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#include <resolv.h>
Packit 6c4009
Packit 6c4009
#include <shlib-compat.h>
Packit 6c4009
Packit 6c4009
#if SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_25)
Packit 6c4009
Packit 6c4009
void
Packit 6c4009
attribute_compat_text_section
Packit 6c4009
res_send_setqhook(void *hook) {
Packit 6c4009
  _res.__glibc_unused_qhook = hook;
Packit 6c4009
}
Packit 6c4009
compat_symbol (libresolv, res_send_setqhook, res_send_setqhook, GLIBC_2_0);
Packit 6c4009
Packit 6c4009
void
Packit 6c4009
attribute_compat_text_section
Packit 6c4009
res_send_setrhook(void *hook) {
Packit 6c4009
  _res.__glibc_unused_rhook = hook;
Packit 6c4009
}
Packit 6c4009
compat_symbol (libresolv, res_send_setrhook, res_send_setrhook, GLIBC_2_0);
Packit 6c4009
Packit 6c4009
#endif