aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/extract_errnos.sh
blob: c134db8f65923e20f5941af1e99dbf426c5afe81 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2023 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}'