]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
errno-name: drop aliases defined for specific arch
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 21 Dec 2021 11:34:23 +0000 (20:34 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Dec 2021 06:29:55 +0000 (15:29 +0900)
In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and
EREFUSED are defined as aliases of ECANCELED and ECONNREFUSED,
respectively. Let's drop them.

Fixes #21844.

src/basic/generate-errno-list.sh

index d2ce51e981d3543491ff326c321fb7dd5012e0ba..f756b2e020834d5ec10f7c05177213f8d1595c97 100755 (executable)
@@ -3,5 +3,9 @@
 set -eu
 set -o pipefail
 
+# In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of
+# ECANCELED and ECONNREFUSED, respectively. Let's drop them.
+
 ${1:?} -dM -include errno.h - </dev/null | \
+       grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED)' | \
        awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'