[PATCH v1 1/2] support: Add xdlinfo error-checking wrapper
DJ Delorie
dj@redhat.com
Thu Nov 5 19:18:16 GMT 2026
On Tue, Oct 27, 2026 at 6:45 AM Frédéric Bérat <fberat@redhat.com> wrote:
> + xdlinfo \
Ok.
> +int xdlinfo (void *handle, int request, void *arg);
Ok.
> +/* dlinfo with error checking.
> + Copyright (C) 2026 Free Software Foundation, Inc.
> + This file is part of the GNU C Library.
> . . .
> + License along with the GNU C Library; if not, see
> + <https://www.gnu.org/licenses/>. */
> +
> +#include <support/check.h>
> +#include <support/xdlfcn.h>
Ok.
> +int
> +xdlinfo (void *handle, int request, void *arg)
> +{
> + int res = dlinfo (handle, request, arg);
> + if (res < 0)
> + FAIL_EXIT1 ("error: dlinfo: %s\n", dlerror ());
> + return res;
> +}
Ok.
LGTM
Reviewed-by: DJ Delorie <dj@redhat.com>
More information about the Libc-alpha
mailing list