Re: Use enum to declare errno values
From: Ben Pfaff
Date: Thu Nov 24 2005 - 12:23:42 EST
moreau francis <francis_moreau2000@xxxxxxxx> writes:
> I'm just wondering why not declaring errno values using enumaration ? It is
> just more convenient when debuging the kernel.
The C standard says that errno values are macros that expand to
integer constant expressions. This is important for userspace,
if not for the kernel.
--
"Then, I came to my senses, and slunk away, hoping no one overheard my
thinking."
--Steve McAndrewSmith in the Monastery
-
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/