__set_liberror(3pub)

__set_liberror3pub

Modify error handling for publib

Usage

#include <publib.h>

void __set_liberror(enum __liberror);

Overview

Unless the documentation for the function specifies otherwise, the default action when a library function notices an error is to abort whatever it was doing and return an error indication. It is possible to change this behaviour with __set_liberror(3). The argument should be a bitwise OR of the following values:

	__abort_on_error
	__exit_on_error
	__complain_on_error

Note that __abort_on_error and __exit_on_error are
mutually exclusive, only use one.

Releases

16 releases since Debian 1.2 (Rex); the text changed 4 times.

  1. 1.2–2.2
  2. 3.0
  3. 3.1
  4. 5.0–6.0
  5. 7–13

Author

Lars Wirzenius ([email protected])

From publib-dev 0.40-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.