summaryrefslogtreecommitdiff
path: root/src/basic/generate-errno-list.sh
blob: e2bab8b3201053af9f16ad7eeacf6a91c23af957 (plain)
1
2
3
4
#!/bin/sh -eu

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