Skip to content

Commit 95d8843

Browse files
committed
errno-name: drop aliases defined for specific arch
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 systemd#21844.
1 parent c99d5ef commit 95d8843

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/basic/generate-errno-list.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
set -eu
44
set -o pipefail
55

6+
# In kernel's arch/parisc/include/uapi/asm/errno.h, ECANCELLED and EREFUSED are defined as aliases of
7+
# ECANCELED and ECONNREFUSED, respectively. Let's drop them.
8+
69
${1:?} -dM -include errno.h - </dev/null | \
10+
grep -Ev '^#define[[:space:]]+(ECANCELLED|EREFUSED)' | \
711
awk '/^#define[ \t]+E[^ _]+[ \t]+/ { print $2; }'

0 commit comments

Comments
 (0)