From: Bruno H. <br...@cl...> - 2004-03-11 16:38:31
|
> does this capture both ints or only the first one? It captures only the first int. This matches the behaviour of glibc >= 2.2 on 32-bit platforms. You don't want to do things differently than glibc, right? <g> > shouldn't it be something like > > uint64_to_I(*(uint64*)&buf.f_fsid) > > to capture both? glibc does this on 64-bit platforms. It probably matters only on 3-year-old Linux/alpha systems. But it is less safe: There might be other systems for which f_fsid is not an int, and that have use than 8 bytes for an f_fsid. Anyway, on the Linux filesystems I've seen the fsid is 0 anyway (*both* ints). Bruno |