All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Cc: James Harper <james.harper@bendigoit.com.au>,
	Daniel Stodden <dns@somacoma.net>,
	Samuel Thibault <samuel.thibault@eu.citrix.com>,
	John Levon <levon@movementarian.org>
Subject: Re: sizeof(long) different under windows x64 and linuxx64
Date: Wed, 23 Jan 2008 15:45:25 +0100	[thread overview]
Message-ID: <200801231545.26182.Christoph.Egger@amd.com> (raw)
In-Reply-To: <C3BD00B0.1B4E1%Keir.Fraser@cl.cam.ac.uk>

On Wednesday 23 January 2008 15:33:20 Keir Fraser wrote:
> On 23/1/08 14:25, "John Levon" <levon@movementarian.org> wrote:
> >> Can I get some feedback from the people-who-make-decisions if a patch
> >> changing all 'unsigned long's in the public .h files to uintptr_t's
> >> would be accepted? If not, what type should I use?
> >
> > Shouldn't it be changed appropriately? That is, uintptr_t for values
> > that actually do, or can, hold a "pointer" value, and something else for
> > other 'longs'?
>
> We could just call it xen_long or xen_ulong. That would hide the underlying
> uintptr_t, which is needed anyway for XEN_INTERFACE_VERSION backward
> source-level compatibility.

When that ends up for uintptr_t being "unsigned long long" on 64bit platforms
and "unsigned long" on 32bit platforms, then you did it in a portable way.

BTW: C99 also defines intptr_t for whatever that might be useful.

Christoph

-- 
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy

  reply	other threads:[~2008-01-23 14:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-22 23:01 sizeof(long) different under windows x64 and linux x64 James Harper
2008-01-22 23:26 ` Daniel Stodden
2008-01-22 23:34   ` sizeof(long) different under windows x64 and linuxx64 James Harper
2008-01-22 23:41     ` James Harper
2008-01-23  0:01     ` Daniel Stodden
2008-01-23  0:47     ` Samuel Thibault
2008-01-23  0:55       ` James Harper
2008-01-23  1:01         ` Samuel Thibault
2008-01-23  1:38           ` James Harper
2008-01-23  2:30             ` James Harper
2008-01-23  8:04               ` Keir Fraser
2008-01-23 14:25               ` John Levon
2008-01-23 14:33                 ` Keir Fraser
2008-01-23 14:45                   ` Christoph Egger [this message]
2008-01-23  8:48             ` Christoph Egger
2008-01-22 23:39 ` sizeof(long) different under windows x64 and linux x64 Andy Grover
2008-01-23  8:00   ` Keir Fraser
2008-01-23 20:41   ` Chris Morrow
2008-01-23 21:18     ` Keir Fraser

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=200801231545.26182.Christoph.Egger@amd.com \
    --to=christoph.egger@amd.com \
    --cc=dns@somacoma.net \
    --cc=james.harper@bendigoit.com.au \
    --cc=levon@movementarian.org \
    --cc=samuel.thibault@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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 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.