DWARF_SETERRARG(3)
π NAME π
okay so welcome to DWARF_SETERRARG(3), a page from the Library Functions Manual, and itβs all about dwarf_seterrarg and dwarf_seterrhand β configure error handling. π
β¨
π¦ LIBRARY π¦
This one lives in the DWARF Access Library (libdwarf, -ldwarf). π«Ά
πΈ SYNOPSIS πΈ
bestie, here are the signatures, verbatim, do not @ me:
#include <libdwarf.h>
Dwarf_Ptr
dwarf_seterrarg(Dwarf_Debug dbg, Dwarf_Ptr arg);
Dwarf_Handler
dwarf_seterrhand(Dwarf_Debug dbg, Dwarf_Handler handler);
β¨ DESCRIPTION β¨
These functions may be used by applications to configure error handling callbacks. The error handling scheme used by the library is described in dwarf(3). iconic library behavior, tbh π
dwarf_seterrarg()β may be used to set the callback argument passed to a configured error handler at the time it is invoked. Argumentargis the callback argument being set. Argumentdbgcan be a debug context allocated by a prior call todwarf_init(3), or can beNULLto indicate that the library-wide callback argument is to be set. πdwarf_seterrhand()β may be used to associate an error handler denoted by argumenthandlerwith the DWARF debug context descriptor denoted by argumentdbg. Argumentdbgshould be a debug context allocated by a prior call todwarf_init(3), or may beNULLto indicate that the library-wide error handler is to be set. π¦
π₯ RETURN VALUES π₯
- Function
dwarf_seterrhand()returns the previous error handler associated with argumentdbg. If argumentdbgisNULL, functiondwarf_seterrhand()returns the previous library-wide error handler. π - Function
dwarf_seterrarg()returns the previous callback argument associated with argumentdbg. If argumentdbgisNULL, functiondwarf_seterrarg()returns the previous library-wide callback argument. β
π COMPATIBILITY π
The behavior of these functions when argument dbg is NULL is a local extension.
so like, that NULL behavior is a local extension β cute, but local, iykyk ππ
π ERRORS π
These functions do not set an error code. periodt. π
π§ SEE ALSO π§
dwarf(3), dwarf_init(3) π
mwah π β this page is from Debian, dated May 01, 2010, and itβs the DWARF_SETERRARG(3) manual page. byeee bestie πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: libdwarf 15.0.0
- Copyright (c) 2010 Joseph Koshy. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms