From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oss.sgi.com (localhost [127.0.0.1]) by oss.sgi.com (8.12.5/8.12.5) with ESMTP id g6G8UORw021994 for ; Tue, 16 Jul 2002 01:30:24 -0700 Received: (from majordomo@localhost) by oss.sgi.com (8.12.5/8.12.3/Submit) id g6G8UOgT021993 for linux-mips-outgoing; Tue, 16 Jul 2002 01:30:24 -0700 X-Authentication-Warning: oss.sgi.com: majordomo set sender to owner-linux-mips@oss.sgi.com using -f Received: from mx2.mips.com (ftp.mips.com [206.31.31.227]) by oss.sgi.com (8.12.5/8.12.5) with SMTP id g6G8UERw021983; Tue, 16 Jul 2002 01:30:16 -0700 Received: from newman.mips.com (ns-dmz [206.31.31.225]) by mx2.mips.com (8.12.5/8.12.5) with ESMTP id g6G8YxXb026890; Tue, 16 Jul 2002 01:34:59 -0700 (PDT) Received: from copfs01.mips.com (copfs01 [192.168.205.101]) by newman.mips.com (8.9.3/8.9.0) with ESMTP id BAA15285; Tue, 16 Jul 2002 01:35:00 -0700 (PDT) Received: from mips.com (copsun17 [192.168.205.27]) by copfs01.mips.com (8.11.4/8.9.0) with ESMTP id g6G8Yxb05588; Tue, 16 Jul 2002 10:34:59 +0200 (MEST) Message-ID: <3D33DAB2.353A4399@mips.com> Date: Tue, 16 Jul 2002 10:34:58 +0200 From: Carsten Langgaard X-Mailer: Mozilla 4.77 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: Ralf Baechle , "H. J. Lu" , linux-mips@oss.sgi.com Subject: Personality Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.0 tests= version=2.20 X-Spam-Level: Sender: owner-linux-mips@oss.sgi.com Precedence: bulk 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 ? /Carsten -- _ _ ____ ___ 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