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

Re: [Xen-devel] [PATCH 1/5] xen: add ssize_t to types.h



>>> On 31.05.12 at 17:07, Jean Guyader <jean.guyader@xxxxxxxxxx> wrote:
>--- a/xen/include/xen/types.h
>+++ b/xen/include/xen/types.h
>@@ -58,5 +58,6 @@ typedef __u64 __le64;
> typedef __u64 __be64;
> 
> typedef unsigned long uintptr_t;
>+typedef int ssize_t;

If you add a new type, it needs to be defined correctly and
portably - here, it obviously needs to follow the definition of
size_t (which isn't a typedef of "unsigned int" unilaterally).

With ssize_t in particular I have always been wondering what
benefit it provides over ptrdiff_t (i.e. whether there are
environments where the two could sensibly be different).

Jan

> 
> #endif /* __TYPES_H__ */


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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