chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] add support for figuring out which device on the sysfs "chain" the rule appli...
[elogind.git]
/
klibc_fixups.h
diff --git
a/klibc_fixups.h
b/klibc_fixups.h
index a89638ead4b428e27eac67b3d463882e37b28e89..37622c86d621d9c3a888ad4b56c2cd9ed4a69d68 100644
(file)
--- a/
klibc_fixups.h
+++ b/
klibc_fixups.h
@@
-4,6
+4,11
@@
#define KLIBC_FIXUPS_H
#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 */
struct group {
char *gr_name; /* group name */
char *gr_passwd; /* group password */