From: Dave Jones <davej@suse.de>
To: Claude Lamy <clamy@sunrisetelecom.com>, linux-kernel@vger.kernel.org
Subject: Re: Fw: /usr/include/asm/system.h
Date: Tue, 21 May 2002 18:51:07 +0200 [thread overview]
Message-ID: <20020521185107.C15417@suse.de> (raw)
In-Reply-To: <000d01c200c4$4d0b9570$5132a8c0@AVANSUN.COM> <20020521144833.X15417@suse.de>
On Tue, May 21, 2002 at 02:48:33PM +0200, Dave Jones wrote:
> > > > I am running a Mandrake 8.1 linux distribution with gcc 2.96. In
> > > > the file /usr/include/asm/system.h, the function __cmpxchg uses a
> > > > parameter named "new" which is a reserved keyword in C++.
> The function is wrapped in an #ifdef __KERNEL__
> Kernel code isn't meant to be compiled with a c++ compiler
I was of course, completely wrong about this, that #ifdef doesn't cover
the whole of <asm/system.h>.
Some of the stuff outside that ifdef will never work in a userspace
app anyway (like wbinvd). Looking at it, is there anything there at all
that we should let userspace be seeing, or should that #ifdef cover
the whole file ?
Dave.
--
| Dave Jones. http://www.codemonkey.org.uk
| SuSE Labs
prev parent reply other threads:[~2002-05-21 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 12:37 Fw: /usr/include/asm/system.h Claude Lamy
2002-05-21 12:48 ` Dave Jones
2002-05-21 16:51 ` Dave Jones [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=20020521185107.C15417@suse.de \
--to=davej@suse.de \
--cc=clamy@sunrisetelecom.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.