systemd/src/basic/errno-to-name.awk
2021-03-31 15:25:31 +02:00

12 lines
240 B
Awk

# SPDX-License-Identifier: LGPL-2.1-or-later
BEGIN{
print "static const char* const errno_names[] = { "
}
!/EDEADLOCK/ && !/EWOULDBLOCK/ && !/ENOTSUP/ {
printf " [%s] = \"%s\",\n", $1, $1
}
END{
print "};"
}