libnl/lib
Thomas Graf 8a3efffa5b Thread-safe error handling
In order for the interface to become more thread safe, the error
handling was revised to no longer depend on a static errno and
error string buffer.

This patch converts all error paths to return a libnl specific
error code which can be translated to a error message using
nl_geterror(int error). The functions nl_error() and
nl_get_errno() are therefore obsolete.

This change required various sets of function prototypes to be
changed in order to return an error code, the most prominent
are:

    struct nl_cache *foo_alloc_cache(...);
changed to:
    int foo_alloc_cache(..., struct nl_cache **);

    struct nl_msg *foo_build_request(...);
changed to:
    int foo_build_request(..., struct nl_msg **);

    struct foo *foo_parse(...);
changed to:
    int foo_parse(..., struct foo **);

This pretty much only leaves trivial allocation functions to
still return a pointer object which can still return NULL to
signal out of memory.

This change is a serious API and ABI breaker, sorry!
2008-05-14 17:49:44 +02:00
..
fib_lookup Thread-safe error handling 2008-05-14 17:49:44 +02:00
genl Thread-safe error handling 2008-05-14 17:49:44 +02:00
netfilter Thread-safe error handling 2008-05-14 17:49:44 +02:00
route Thread-safe error handling 2008-05-14 17:49:44 +02:00
.gitignore Tell git to ignore temporary files and push to pre9 2008-01-09 12:28:17 +01:00
addr.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
attr.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cache.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cache_mngr.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
cache_mngt.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
data.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
defs.h.in Remove leftover definition of verbose errors 2008-04-30 18:53:01 +02:00
doc.c Initial import 2007-09-15 01:28:01 +02:00
error.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
family.c Initial import 2007-09-15 01:28:01 +02:00
handlers.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
Makefile Define datarootdir to silent autoconf 2008-04-29 23:01:39 +02:00
msg.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
nl.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
object.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
socket.c Thread-safe error handling 2008-05-14 17:49:44 +02:00
utils.c Thread-safe error handling 2008-05-14 17:49:44 +02:00