chiark / gitweb /
[PATCH] fix klibc with printf() and gcc
[elogind.git] / klibc_fixups.h
index 21a23e776237701b1b065ac585ab38ea8d67635e..37622c86d621d9c3a888ad4b56c2cd9ed4a69d68 100644 (file)
@@ -4,9 +4,10 @@
 #define KLIBC_FIXUPS_H 
 
 
-extern char *strerror(int errnum);
+#define WTERMSIG(status)       ((status) & 0x7f)
+#define WEXITSTATUS(status)    (((status) & 0xff00) >> 8)
+#define WIFEXITED(status)      (WTERMSIG(status) == 0)
 
-extern int strcasecmp(const char *s1, const char *s2);
 
 struct group {
        char    *gr_name;       /* group name */