summaryrefslogtreecommitdiff
path: root/src/shared/exit-status.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-07-29 19:05:25 +0200
committerLennart Poettering <lennart@poettering.net>2019-07-29 19:05:25 +0200
commite04ed6db6b44681b7a7876b9c4a1e6adaf877670 (patch)
tree092d3d785b252e74139db089c16bce42a2cd9b91 /src/shared/exit-status.c
parent1d7458fbb1b09ebbfdcf775909e09c56d6a6023e (diff)
downloadsystemd-e04ed6db6b44681b7a7876b9c4a1e6adaf877670.tar.gz
exit-status: rename EXIT_STATUS_GLIBC → EXIT_STATUS_LIBC
After all these two exit codes are defined by ISO C as part of the C library, and it's not the GNU implementation defines them.
Diffstat (limited to 'src/shared/exit-status.c')
-rw-r--r--src/shared/exit-status.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/exit-status.c b/src/shared/exit-status.c
index 80ac4868cb..44b1c9b749 100644
--- a/src/shared/exit-status.c
+++ b/src/shared/exit-status.c
@@ -26,8 +26,8 @@ const ExitStatusMapping exit_status_mappings[256] = {
* │ signal or such, and we follow that logic here.)
*/
- [EXIT_SUCCESS] = { "SUCCESS", EXIT_STATUS_GLIBC },
- [EXIT_FAILURE] = { "FAILURE", EXIT_STATUS_GLIBC },
+ [EXIT_SUCCESS] = { "SUCCESS", EXIT_STATUS_LIBC },
+ [EXIT_FAILURE] = { "FAILURE", EXIT_STATUS_LIBC },
[EXIT_CHDIR] = { "CHDIR", EXIT_STATUS_SYSTEMD },
[EXIT_NICE] = { "NICE", EXIT_STATUS_SYSTEMD },
@@ -107,8 +107,8 @@ const char* exit_status_class(int code) {
return NULL;
switch (exit_status_mappings[code].class) {
- case EXIT_STATUS_GLIBC:
- return "glibc";
+ case EXIT_STATUS_LIBC:
+ return "libc";
case EXIT_STATUS_SYSTEMD:
return "systemd";
case EXIT_STATUS_LSB: