[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [patch] [3/3] dom0_ops explicitly sized types



Anthony Liguori <aliguori@xxxxxxxxxx> writes:

> Ian Campbell wrote:
>>> If you use __u64, you'd need to include some header defining what __u64
>>> is, so you're requiring another header anyways. You might as well use
>>> the standard stdint.h rather than inventing your own.
>>>
>>
>> As I understand it the issue is that the C spec makes the __* namespace
>> available for the kernel to pollute and reserves the non-prefixed
>> namespace for application usage. (Single underscore is for compiler or
>> libc internals or something).
>>
>
> The relevant portions of the spec are:
[...]
> It's pretty clear that __* names are reserved.  The kernel is wrong
> here.  The best explanation I've gotten is "egocentrism" :-)

Reserved for what?  The `implementation'.  Which is the combination of
compiler, libc and whatever kernel headers libc lets through.  How
these guys divvy up their reserved name space is up to them, and we
better play by their rules.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.