[PATCH] update error codes and signal numbers for hppa/parisc architecture

Helge Deller deller at gmx.de
Sat Nov 8 21:52:44 UTC 2014


Dear strace developers,

can you please apply this patch to strace in git?
It updates some error codes and signal numbers for the hppa (parisc)
architecture.

There are two important changes in here:

1. EWOULDBLOCK has been up to kernel 3.14 errorcode #246. Since we had
problems with EWOULDBLOCK != EAGAIN, this was changes in kernel 3.14.

2. Starting with kernel 3.18 we changed some signal numbers in such a
way, that we end up with SIGRTMIN == 32, which brings hppa in sync with
other linux ports. This was necessary to be able to support systemd on
hppa.

Both were incompatible changes (which basically broke our ABI), but both
were necessary on our port.

Thanks,
Helge Deller


diff -up ./linux/hppa/errnoent.h.org ./linux/hppa/errnoent.h
--- ./linux/hppa/errnoent.h.org	2014-11-08 22:13:40.493828740 +0100
+++ ./linux/hppa/errnoent.h	2014-11-08 22:36:02.269032977 +0100
@@ -182,10 +182,10 @@
 	"EREMOTEIO", /* 181 */
 	"ENOMEDIUM", /* 182 */
 	"EMEDIUMTYPE", /* 183 */
-	"ERRNO_184", /* 184 */
-	"ERRNO_185", /* 185 */
-	"ERRNO_186", /* 186 */
-	"ERRNO_187", /* 187 */
+	"ENOKEY", /* 184 */
+	"EKEYEXPIRED", /* 185 */
+	"EKEYREVOKED", /* 186 */
+	"EKEYREJECTED", /* 187 */
 	"ERRNO_188", /* 188 */
 	"ERRNO_189", /* 189 */
 	"ERRNO_190", /* 190 */
@@ -244,7 +244,7 @@
 	"ERRNO_243", /* 243 */
 	"EALREADY", /* 244 */
 	"EINPROGRESS", /* 245 */
-	"EWOULDBLOCK", /* 246 */
+	"EWOULDBLOCK_OLD", /* 246 */  /* was EWOULDBLOCK before kernel 3.14 */
 	"ENOTEMPTY", /* 247 */
 	"ENAMETOOLONG", /* 248 */
 	"ELOOP", /* 249 */
@@ -252,3 +252,7 @@
 	"ENOSYS", /* 251 */
 	"ENOTSUP", /* 252 */
 	"ECANCELLED", /* 253 */
+	"EOWNERDEAD", /* 254 */
+	"ENOTRECOVERABLE", /* 255 */
+	"ERFKILL", /* 256 */
+	"EHWPOISON", /* 257 */
diff -up ./linux/hppa/signalent.h.org ./linux/hppa/signalent.h
--- ./linux/hppa/signalent.h.org	2014-11-08 22:13:49.013848876 +0100
+++ ./linux/hppa/signalent.h	2014-11-08 22:17:27.854367048 +0100
@@ -5,12 +5,12 @@
 	"SIGILL",	/* 4 */
 	"SIGTRAP",	/* 5 */
 	"SIGABRT",	/* 6 */
-	"SIGEMT",	/* 7 */
+	"SIGSTKFLT",	/* 7 */
 	"SIGFPE",	/* 8 */
 	"SIGKILL",	/* 9 */
 	"SIGBUS",	/* 10 */
 	"SIGSEGV",	/* 11 */
-	"SIGSYS",	/* 12 */
+	"SIGXCPU",	/* 12 */
 	"SIGPIPE",	/* 13 */
 	"SIGALRM",	/* 14 */
 	"SIGTERM",	/* 15 */
@@ -28,11 +28,6 @@
 	"SIGTTIN",	/* 27 */
 	"SIGTTOU",	/* 28 */
 	"SIGURG",	/* 29 */
-	"SIGLOST",	/* 30 */
+	"SIGXFSZ",	/* 30 */
 	"SIGUNUSED",	/* 31 */
-	"SIG_32",	/* 32 */
-	"SIGXCPU",	/* 33 */
-	"SIGXFSZ",	/* 34 */
-	"SIG_35",	/* 35 */
-	"SIGSTKFLT",	/* 36 */
-	"SIGRTMIN",	/* 37 */
+	"SIGRTMIN",	/* 32 */




More information about the Strace-devel mailing list