Puzzled: Memory alignment is struct stat

Andreas Gruenbacher (a.gruenbacher@infosys.tuwien.ac.at)
Tue, 05 Oct 1999 22:44:31 +0200


In the kernel, the st_mode field of struct stat is 16 bit (unsigned
short).
In userland, it is unsigned int (32 bit on my machine). There must be
some
conversion between the two types, but I can't find it.

It's not in fs/stat.c...
I couldn't find it in glibc...

HELP!

Andreas

------------------------------------------------------------------------
Andreas Gruenbacher, Vienna University of Technology
a.gruenbacher@infosys.tuwien.ac.at
Contact information: http://www.infosys.tuwien.ac.at/~agruenba

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/