__set_liberror(3) modify error handling for publib


#include <publib.h>

void __set_liberror(enum __liberror);


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:


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


Lars Wirzenius ([email protected])