core: kill custom error handling
authorBartosz Golaszewski <bartekgola@gmail.com>
Sat, 24 Jun 2017 10:21:57 +0000 (12:21 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 6 Jul 2017 09:11:36 +0000 (11:11 +0200)
commitcc0b3fac72db7c6c04ea4571c5c2af6cb823e0a6
tree068beacfad5e57ec47edf9381a172d2bb9c9312e
parent9257ed818bb177a8b87b3444e340fcae749ac9e2
core: kill custom error handling

The libgpiod-specific error codes are not really necessary and can be
easily replaced with regular libc error numbers defined in errno.h.

Remove all routines and definitions dealing with error numbers and
switch to using errnos in the library code.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
configure.ac
include/gpiod.h
src/lib/core.c
src/tools/tools-common.c
tests/tests-chip.c
tests/tests-line.c
tests/tests-misc.c
tests/tests-simple-api.c