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