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