On Wed, Jan 30, 2002 at 02:46:47PM -0800, David S. Miller wrote:
> All the values that go through these syscalls seem to be
> opaque and filesystem specific. Therefore can I ask the filesystems
> that use these things use fixed sized types such as "u32" "u16" et al.
> instead of things such as "long" or "int"?
Yes, agreed. The main consumer of this interface currently
is Andreas' POSIX ACL code, and IIRC he does use fixed size
types for his ACL attributes. The man pages do refer to this
issue, I will flesh out the wording to be a bit more explicit
in this regard.
> The reason I ask is, unless strict sized types are used it is going
> to be a real pain in the ass to translate the types passed to these
> system calls in mixed 32-bit/64-bit environments. This is thus going
> to be a mess on sparc64, ppc64, mips64, ia64, and probably others I
> have forgotten :-)
> If strict sized types are used for the attributes, then no
> translations will need to occur at all.