diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/extract_errnos.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/extract_errnos.sh b/src/tools/extract_errnos.sh new file mode 100644 index 000000000..43b225828 --- /dev/null +++ b/src/tools/extract_errnos.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | echo -e "#include <errno.h>\n#include <attr/xattr.h>" | \ | ||
2 | cpp -dD | \ | ||
3 | grep "^#define E" | \ | ||
4 | sed -e '{s/#define \(.*\) .*/\t"\1", \1,/g}' | ||