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

Re: [RFC v3 1/2] v4l: Do not use enums in IOCTL structs

On Thu, 3 May 2012 00:39:15 +0300, Sakari Ailus <sakari.ailus@xxxxxx>
> - ppc64: int is 64 bits there, and thus also enums,


(e)glibc assumes that signed int and unsigned int are 32-bits on all
platforms. From bits/types.h:

typedef signed int __int32_t;
typedef unsigned int __uint32_t;

> - C does not specify which integer type enums actually use; this is what
> GCC manual says about it:

The Linux ABI, at least as defined in GCC, requires 'short enums' be
disabled, even on ARM.
So enums should always be unsigned or int with gcc, thus with V4L2 code.

Rémi Denis-Courmont
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Linux Input]     [Video for Linux]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]     [Yosemite Backpacking]

Add to Google Powered by Linux