summaryrefslogtreecommitdiffstats
path: root/src/basic/generate-errno-list.sh
blob: 953d5e37b8180c874e70be56f241c762e04bd35d (plain)
1
2
3
4
5
#!/bin/sh
set -eu

$1 -dM -include errno.h - </dev/null | \
        awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'