Blame support/xdlmopen.c

Packit Bot 00cb17
/* dlmopen with error checking.
Packit Bot 00cb17
   Copyright (C) 2017-2019 Free Software Foundation, Inc.
Packit Bot 00cb17
   This file is part of the GNU C Library.
Packit Bot 00cb17
Packit Bot 00cb17
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 00cb17
   modify it under the terms of the GNU Lesser General Public
Packit Bot 00cb17
   License as published by the Free Software Foundation; either
Packit Bot 00cb17
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 00cb17
Packit Bot 00cb17
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 00cb17
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 00cb17
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 00cb17
   Lesser General Public License for more details.
Packit Bot 00cb17
Packit Bot 00cb17
   You should have received a copy of the GNU Lesser General Public
Packit Bot 00cb17
   License along with the GNU C Library; if not, see
Packit Bot 00cb17
   <http://www.gnu.org/licenses/>.  */
Packit Bot 00cb17
Packit Bot 00cb17
#include <support/check.h>
Packit Bot 00cb17
#include <support/xdlfcn.h>
Packit Bot 00cb17
Packit Bot 00cb17
void *
Packit Bot 00cb17
xdlmopen (Lmid_t lmid, const char *filename, int flags)
Packit Bot 00cb17
{
Packit Bot 00cb17
  void *dso = dlmopen (lmid, filename, flags);
Packit Bot 00cb17
Packit Bot 00cb17
  if (dso == NULL)
Packit Bot 00cb17
    FAIL_EXIT1 ("error: dlmopen: %s\n", dlerror ());
Packit Bot 00cb17
Packit Bot 00cb17
  return dso;
Packit Bot 00cb17
}