using off_t in talloc
Stefan (metze) Metzmacher
metze at samba.org
Thu Jul 20 11:26:36 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *,
I thought about removing off_t from talloc,
it's used as return value of talloc_total_size() and
talloc_total_blocks().
I have added some configure checks
to the standalone build of talloc.
And it seems that:
sizeof(off_t) is 8 (only Stratos has 4)
sizeof(size_t) is 4 on x86 and 8 on 64bit platforms
Are there any platforms where the total RAM-size per
process doesn't fit into size_t?
If it always fits, I'll remove off_t from talloc
metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFEv2hsm70gjA5TCD8RAsWRAJ9/vA31X7R/VjGOHpHCd/ZUn0dh5wCffMto
6GCnaHSIm4YMt2bKmvPmWQg=
=MMd6
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list