aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/extract_errnos.sh
blob: 286fdd7677c0bfab4a96291d730347abeb324ff5 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2020 Firejail Authors
# License GPL v2

echo -e "#include <errno.h>\n#include <attr/xattr.h>" | \
    cpp -dD | \
    grep "^#define E" | \
    sed -e '{s/#define \(.*\) .*/\t"\1", \1,/g}'