Package: dietlibc
Version: 0.33~cvs20120325
Severity: critical
Tags: patch

Can you please apply this patch for the next upload of dietlibc?

It adjusts (for the hppa architecture only):

- EWOULDBLOCK is now same as EAGAIN, see upstream kernel commit (since kernel 
3.14):
  
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f5a408d53edef3af07ac7697b8bc54a755628450

- adjusts SIGSTKFLT, SIGXCPU, SIGXFSZ and SIGRTMIN to our new scheme, see Linux 
kernel upstream commit:
  
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1f25df2eff5b25f52c139d3ff31bc883eee9a0ab

Thanks,
Helge
diff -up ./include/errno.h.org ./include/errno.h
--- ./include/errno.h.org	2014-11-11 11:01:32.500997002 +0100
+++ ./include/errno.h	2014-11-11 11:02:33.356987381 +0100
@@ -550,7 +550,7 @@
 
 #define	EALREADY	244	/* Operation already in progress */
 #define	EINPROGRESS	245	/* Operation now in progress */
-#define	EWOULDBLOCK	246	/* Operation would block (Linux returns EAGAIN) */
+#define	EWOULDBLOCK	EAGAIN	/* Operation would block (Linux returns EAGAIN) */
 #define	ENOTEMPTY	247	/* Directory not empty */
 #define	ENAMETOOLONG	248	/* File name too long */
 #define	ELOOP		249	/* Too many symbolic links encountered */
diff -up ./include/signal.h.org ./include/signal.h
--- ./include/signal.h.org	2014-11-11 11:04:33.988968598 +0100
+++ ./include/signal.h	2014-11-11 11:14:17.980881783 +0100
@@ -97,9 +97,9 @@ __BEGIN_DECLS
 #define SIGXCPU		30
 #define SIGXFSZ		31
 #elif defined(__hppa__)
-#define SIGEMT		 7
+#define SIGSTKFLT	 7
 #define SIGBUS		10
-#define SIGSYS		12
+#define SIGXCPU		12
 #define SIGUSR1		16
 #define SIGUSR2		17
 #define SIGCHLD		18
@@ -114,12 +114,10 @@ __BEGIN_DECLS
 #define SIGTTIN		27
 #define SIGTTOU		28
 #define SIGURG		29
-#define SIGLOST		30
+#define SIGXFSZ		30
 #define SIGUNUSED	31
-#define SIGRESERVE	SIGUNUSE
-#define SIGXCPU		33
-#define SIGXFSZ		34
-#define SIGSTKFLT	36
+#define SIGRESERVE	SIGUNUSED
+#define SIGSYS		31
 
 #else
 #error signal layout not yet known
@@ -129,12 +127,8 @@ __BEGIN_DECLS
 #define SIGPOLL		SIGIO
 
 /* These should not be considered constants from userland.  */
-#ifdef __hppa__
-#define SIGRTMIN	37
-#else
 #define SIGLOST		SIGPWR
 #define SIGRTMIN	32
-#endif
 #define SIGRTMAX	(_NSIG-1)
 
 /* SA_FLAGS values: */

Reply via email to