public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] C++ compatible include files
@ 2000-08-22 18:23 roneng
  2000-08-22 18:34 ` David Mosberger
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: roneng @ 2000-08-22 18:23 UTC (permalink / raw)
  To: linux-ia64


Hi,

I was wondering if there are plans to make the ia64 kernel include files
C++ compatible. In particular
the ::: in the embedded assembly in system.h and atomic.h seems to prevent
these files,
and the files that include them (e.g. fs.h) from being included in C++
programs.

Thanks,
Ronen Grosman
roneng@ca.ibm.com




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] C++ compatible include files
  2000-08-22 18:23 [Linux-ia64] C++ compatible include files roneng
@ 2000-08-22 18:34 ` David Mosberger
  2000-08-22 18:38 ` David Mosberger
  2000-08-22 19:37 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2000-08-22 18:34 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 22 Aug 2000 14:23:53 -0400, roneng@ca.ibm.com said:

  Ronen> I was wondering if there are plans to make the ia64 kernel
  Ronen> include files C++ compatible. In particular the ::: in the
  Ronen> embedded assembly in system.h and atomic.h seems to prevent
  Ronen> these files, and the files that include them (e.g. fs.h) from
  Ronen> being included in C++ programs.

Umh, why are you including kernel headers?  That's a no-can-do, as
Linus has stated repeatedly.

Since the kernel is written in C, there is no point in adding C++
hacks.

	--david


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] C++ compatible include files
  2000-08-22 18:23 [Linux-ia64] C++ compatible include files roneng
  2000-08-22 18:34 ` David Mosberger
@ 2000-08-22 18:38 ` David Mosberger
  2000-08-22 19:37 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2000-08-22 18:38 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Tue, 22 Aug 2000 11:34:15 -0700 (PDT), David Mosberger <davidm@hpl.hp.com> said:

>>>>> On Tue, 22 Aug 2000 14:23:53 -0400, roneng@ca.ibm.com said:

  Ronen> I was wondering if there are plans to make the ia64 kernel
  Ronen> include files C++ compatible. In particular the ::: in the
  Ronen> embedded assembly in system.h and atomic.h seems to prevent
  Ronen> these files, and the files that include them (e.g. fs.h) from
  Ronen> being included in C++ programs.

  David> Umh, why are you including kernel headers?  That's a
  David> no-can-do, as Linus has stated repeatedly.

In case that isn't obvious: I was talking about including kernel
headers in _applications_.  I'm assuming that's what you were trying
to do.  If not, please explain.

	--david


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Linux-ia64] C++ compatible include files
  2000-08-22 18:23 [Linux-ia64] C++ compatible include files roneng
  2000-08-22 18:34 ` David Mosberger
  2000-08-22 18:38 ` David Mosberger
@ 2000-08-22 19:37 ` Jes Sorensen
  2 siblings, 0 replies; 4+ messages in thread
From: Jes Sorensen @ 2000-08-22 19:37 UTC (permalink / raw)
  To: linux-ia64

>>>>> "Ronen" = roneng  <roneng@ca.ibm.com> writes:

Ronen> Hi,

Ronen> I was wondering if there are plans to make the ia64 kernel
Ronen> include files C++ compatible. In particular the ::: in the
Ronen> embedded assembly in system.h and atomic.h seems to prevent
Ronen> these files, and the files that include them (e.g. fs.h) from
Ronen> being included in C++ programs.

That will probably never happen, you shouldn't use the kernel header
files directly from user space.

Jes


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-08-22 19:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-22 18:23 [Linux-ia64] C++ compatible include files roneng
2000-08-22 18:34 ` David Mosberger
2000-08-22 18:38 ` David Mosberger
2000-08-22 19:37 ` Jes Sorensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox