X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=klibc_fixups.h;h=37622c86d621d9c3a888ad4b56c2cd9ed4a69d68;hb=be9b51f6638d66025ebde1ca154ae9180383409c;hp=21a23e776237701b1b065ac585ab38ea8d67635e;hpb=2023350eece60db60d30e387cfb644df09b9e8b6;p=elogind.git diff --git a/klibc_fixups.h b/klibc_fixups.h index 21a23e776..37622c86d 100644 --- a/klibc_fixups.h +++ b/klibc_fixups.h @@ -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 */