libctf: error handling
authorNick Alcock <nick.alcock@oracle.com>
Tue, 23 Apr 2019 21:05:52 +0000 (22:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 28 May 2019 16:07:24 +0000 (17:07 +0100)
commit479604f44fc1eaa02a97ebcc1b60f55a606c4046
tree57b7d78a75be9c8e243dc3a0d957c7c48c8235f1
parent94585e7f93c9477bcf2835d8245e967053ce2b41
libctf: error handling

CTF functions return zero on success or an extended errno value which
can be translated into a string via the functions in this commit.

The errno numbers start at -CTF_BASE.

libctf/
* ctf-error.c: New file.

include/
* ctf-api.h (ctf_errno): New declaration.
(ctf_errmsg): Likewise.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-error.c [new file with mode: 0644]