Blame support/xdlmopen.c

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