]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include/c: add errexec()
authorKarel Zak <kzak@redhat.com>
Thu, 1 Feb 2018 13:58:52 +0000 (14:58 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 1 Feb 2018 13:58:52 +0000 (14:58 +0100)
commitcf654e1c3ec8f6f9ac93bf4f6981d560249868d9
tree6741056f336fae92b89c357b0779814c9711cb9d
parent79d6aa38119a38816ce53632ec77284b35f8ed2a
include/c: add errexec()

The new errexec() macro consolidate and unify the way how util-linux
tools react to failed exec()-like functions:

 * exit code 126 when program located, but not usable
 * exit code 127 when could not find program to exec

The exit codes are compatible with coreutils.

Note that all the change is located in c.h; the file exitcodes.h
contains API specific (mkfs, fsck, ...) codes only.

Addresses: https://github.com/karelzak/util-linux/pull/311
Signed-off-by: Karel Zak <kzak@redhat.com>
include/c.h