summaryrefslogtreecommitdiffstats
path: root/src/basic/errno-to-name.awk
blob: 844212448870d623f841a6208dd04e82be6e40af (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 "};"
}