Skip to contentSkip to conversation

sizeof(target_int)

Qemu-devel Kirill A. Shutemov 2 participants 2 messages Apr 16, 2007 – Apr 17, 2007

lore
Share & tools
lore
#0 lore raw

Is it possible to get size of target int? Why is only TARGET_LONG_BITS defined?
I have need of size of target int for correct define fsid_t for linux user mode. fsid_t is struct { int val[2]; } for linux.

Signature · 4 lines
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + Velesys LLC, http://www.velesys.com/
 + ALT Linux Team, http://www.altlinux.com/
#1 lore raw
Quoted 4 lines · Kirill A. Shutemov

Is it possible to get size of target int? Why is only TARGET_LONG_BITS defined?
I have need of size of target int for correct define fsid_t for linux user mode. fsid_t is struct { int val[2]; } for linux.

That's int32_t for all Linux versions and architectures.

Thiemo