xorriso  1.5.4.pl02
About: GNU xorriso creates, loads, manipulates and writes ISO 9660 filesystem images with Rock Ridge extensions. It is suitable for incremental data backup and for production of bootable ISO 9660 images. GNU xorriso is a statical compilation of the libraries libburn, libisofs, libisoburn, and libjte.
  Fossies Dox: xorriso-1.5.4.pl02.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

cleanup.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef int(* Cleanup_app_handler_T) (void *, int, int)
 

Functions

int Cleanup_set_handlers (void *handle, Cleanup_app_handler_T handler, int flag)
 

Typedef Documentation

◆ Cleanup_app_handler_T

typedef int(* Cleanup_app_handler_T) (void *, int, int)

Layout of an application provided cleanup function using an application provided handle as first argument and the signal number as second argument. The third argument is a flag bit field with no defined bits yet. If the handler returns 2 or -2 then it has delegated exit() to some other instance and the Cleanup handler shall return rather than exit.

Definition at line 19 of file cleanup.h.

Function Documentation

◆ Cleanup_set_handlers()

int Cleanup_set_handlers ( void *  handle,
Cleanup_app_handler_T  handler,
int  flag 
)

Establish exiting signal handlers on (hopefully) all signals that are not ignored by default or non-catchable.

Parameters
handleOpaque object which knows how to cleanup application
handlerFunction which uses handle to perform application cleanup
flagControl Bitfield bit0= reset to default signal handling

Definition at line 146 of file cleanup.c.

References cleanup_app_handle, cleanup_app_handler, Cleanup_handler_generic(), cleanup_msg, cleanup_perform_app_handler_first, Cleanup_signo_to_name(), non_signal_list, non_signal_list_count, signal_list, and signal_list_count.

Referenced by burn_builtin_abort_handler(), and burn_set_signal_handling().