Skip to contentSkip to conversation

udev - exec status fix for klibc

PATCH Applied Kay Sievers 2 participants 2 messages Jan 8, 2004 – Jan 10, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev - exec status fix for klibc

Here is a patch to remove the ifdef's and fix klibc instead.

thanks,
Kay

klibc_fixups.h +5 -0
diff -Nru a/klibc_fixups.h b/klibc_fixups.h
@@ -4,6 +4,11 @@
 #define KLIBC_FIXUPS_H 
 
 
+#define WTERMSIG(status)	((status) & 0x7f)
+#define WEXITSTATUS(status)	(((status) & 0xff00) >> 8)
+#define WIFEXITED(status)	(WTERMSIG(status) == 0)
+
+
 struct group {
 	char	*gr_name;	/* group name */
 	char	*gr_passwd;	/* group password */
namedev.c +0 -2
diff -Nru a/namedev.c b/namedev.c
@@ -380,12 +380,10 @@
 			retval = -1;
 		}
 
-#ifndef __KLIBC__
 		if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
 			dbg("callout program status 0x%x", status);
 			retval = -1;
 		}
-#endif
 	}
 	return retval;
 }
Applied
#1 lore raw
Quoted 1 line · Kay Sievers

Here is a patch to remove the ifdef's and fix klibc instead.

Applied, thanks.

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel