]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
errlist: add missing entry for EDEADLOCK (bug 29545)
authorAndreas Schwab <schwab@suse.de>
Thu, 8 Sep 2022 08:25:21 +0000 (10:25 +0200)
committerAndreas Schwab <schwab@suse.de>
Thu, 8 Sep 2022 09:40:24 +0000 (11:40 +0200)
Some architectures (mips, powerpc and sparc) define separate values for
EDEADLOCK and EDEADLK.  Readd the errlist entry for EDEADLOCK for those
configurations.  Also use the dependency files from generating the
auxiliary errlist and siglist files.

stdio-common/Makefile
sysdeps/gnu/errlist.h

index e11aaedd96b61508a23bc841388de8beae8de046..9c98c02884659745da376bea4bc5d9dac2562d10 100644 (file)
@@ -267,6 +267,10 @@ $(objpfx)errlist-data-aux.S: errlist-data-gen.c
        $(make-target-directory)
        $(compile-command.c) $(pie-default) $(no-stack-protector) -S
 
+ifndef no_deps
+-include $(objpfx)errlist-data-aux.S.d $(objpfx)errlist-data-aux-shared.S.d
+endif
+
 $(objpfx)errlist-data.os: $(objpfx)errlist-data-aux-shared.S
 $(objpfx)errlist-data.o: $(objpfx)errlist-data-aux.S
 
@@ -278,6 +282,10 @@ $(objpfx)siglist-aux.S: siglist-gen.c
        $(make-target-directory)
        $(compile-command.c) $(pie-default) $(no-stack-protector) -S
 
+ifndef no_deps
+-include $(objpfx)siglist-aux.S.d $(objpfx)siglist-aux-shared.S.d
+endif
+
 $(objpfx)siglist.os: $(objpfx)siglist-aux-shared.S
 $(objpfx)siglist.o: $(objpfx)siglist-aux.S
 
index 6329e5f393edac2689e7304f04cfa81ce080242c..e8416448da99051dc2bb8fe7c632346b90b0660c 100644 (file)
@@ -593,6 +593,9 @@ _S(EBADRQC, N_("Invalid request code"))
 #ifdef EBADSLT
 _S(EBADSLT, N_("Invalid slot"))
 #endif
+#if defined EDEADLOCK && EDEADLOCK != EDEADLK
+_S (EDEADLOCK, N_ ("File locking deadlock error"))
+#endif
 #ifdef EBFONT
 _S(EBFONT, N_("Bad font file format"))
 #endif