Re: [patch 1/1] fix syscallN() macro errno value checking for i386

From: H. Peter Anvin
Date: Thu Feb 03 2005 - 19:44:47 EST


Followup to: <5a2cf1f605013010305f8270de@xxxxxxxxxxxxxx>
By author: jerome lacoste <jerome.lacoste@xxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> what about something along?
>
> #define EKEYNEXT 130 /* key counter */
>
> and
>
> if ((unsigned long)(res) >= (unsigned long)(-EKEYNEXT)) {
>

What you really need is EMAX.

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/