summaryrefslogtreecommitdiff
path: root/klibc_fixups.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-10 01:05:38 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:14 -0700
commit2794d2491714bc546bc209d6996f6ad97aa8a994 (patch)
tree1588fe9e2af7d2b2a4849db8637a808568cdabcf /klibc_fixups.h
parentd6e86b3752dc2603c5811b153a1db0143cac5721 (diff)
[PATCH] udev - exec status fix for klibc
Here is a patch to remove the ifdef's and fix klibc instead.
Diffstat (limited to 'klibc_fixups.h')
-rw-r--r--klibc_fixups.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/klibc_fixups.h b/klibc_fixups.h
index a89638ead4..37622c86d6 100644
--- 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 */