Re: Confusion in usr/include/asm-generic/fcntl.h

From: H. Peter Anvin
Date: Wed Jan 21 2009 - 19:47:59 EST


John David Anglin wrote:
CONFIG_64BIT on parisc user space looks very wrong.
This shouldn't be exported to user space. Is that what you meant?

This does get exported to user space as applications sometimes need
to know whether they are running under a 32 or 64-bit kernel. See
config.guess. However, it certainly would be wrong to use this
to make decisions about user space.


CONFIG_* macros are not (or at least should not) be exported to userspace! Userspace should not make compile-time decisions based on kernel configuration -- a runtime property!

-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/