Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Carsten Langgaard <carstenl@mips.com>
To: Daniel Jacobowitz <dan@debian.org>
Cc: Ralf Baechle <ralf@oss.sgi.com>, "H. J. Lu" <hjl@lucon.org>,
	linux-mips@oss.sgi.com
Subject: Re: Personality
Date: Tue, 16 Jul 2002 15:57:30 +0200	[thread overview]
Message-ID: <3D34264A.7845DFDC@mips.com> (raw)
In-Reply-To: 20020716134014.GA19350@nevyn.them.org

Daniel Jacobowitz wrote:

> 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.
> >
> > Any comments ?
>
> Why is the user program including <linux/personality.h> in the first
> place?
>

It need some personality type defines.

>
> The right thing to do here is to provide the necessary bits in a glibc
> header, probably in bits/personality.h or so.
>

Agree, that is probably the right way to do it.

>
> --
> Daniel Jacobowitz                           Carnegie Mellon University
> MontaVista Software                         Debian GNU/Linux Developer

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com

      reply	other threads:[~2002-07-16 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-16  8:34 Personality Carsten Langgaard
2002-07-16 10:36 ` Personality Ralf Baechle
     [not found]   ` <20020716090728.A22128@lucon.org>
2002-07-16 19:16     ` PATCH: Add sys/personality (Re: Personality) Carsten Langgaard
     [not found]       ` <20020716190814.A31309@lucon.org>
2002-07-17  7:14         ` Carsten Langgaard
2002-07-16 13:40 ` Personality Daniel Jacobowitz
2002-07-16 13:57   ` Carsten Langgaard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D34264A.7845DFDC@mips.com \
    --to=carstenl@mips.com \
    --cc=dan@debian.org \
    --cc=hjl@lucon.org \
    --cc=linux-mips@oss.sgi.com \
    --cc=ralf@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox