summaryrefslogtreecommitdiffstats
path: root/src/basic/errno-to-name.awk
blob: 6b18a90e134b25ef749d4c95b7c6f6849f2b5114 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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 "};"
}