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

H. Peter Anvin
2009-01-22T00:47:58Z

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