linux-mips
[Top] [All Lists]

Re: Personality

To: Carsten Langgaard <carstenl@mips.com>
Subject: Re: Personality
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Tue, 16 Jul 2002 12:36:32 +0200
Cc: "H. J. Lu" <hjl@lucon.org>, linux-mips@oss.sgi.com
In-reply-to: <3D33DAB2.353A4399@mips.com>; from carstenl@mips.com on Tue, Jul 16, 2002 at 10:34:58AM +0200
References: <3D33DAB2.353A4399@mips.com>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5.1i
On Tue, Jul 16, 2002 at 10:34:58AM +0200, Carsten Langgaard wrote:

> The include/linux/personality.h file has changed between the 2.4.3 and
> the 2.4.18 kernel.
> Now there is a define of personality (#define personality(pers) (pers &
> PER_MASK), but that breaks things for the users, if they include this
> file.
> The user wishes to call the glibc personality function (which do the
> syscall), and not use the above definition.
> 
> So I guess we need a "#ifdef __KERNEL__" around some of the code in
> include/linux/personality.h (at least around the define of personality),
> which then has to go into the glibc kernel header files.

The general policy about such problems is to not use kernel include files
from user applications directly.  Hjl - maybe time for <sys/personality.h>?

  Ralf


<Prev in Thread] Current Thread [Next in Thread>