Re: Inconsistency about struct stat and dev_t on mips and mipsel

"Thomas Schmitt" <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

before i start bitching:

Is there a more specific way to recognize mips and mipsel
in source at compile time, besides testing sizeof(dev_t)
versus sizeof(stbuf.st_rdev) ?


Now for bitching:

> Yes, for historical reasons mips (o32) defines struct stat with a 32
> -bit dev_t even though it defines dev_t to be 64-bits. It's been
> defined this way since at least 1997

How is this supposed to work semantically ?
Is there a mips_stat(2) function with struct mips_stat which
can retrieve the 64 bit device numbers ?

Well, i can at least prevent runtime memory errors.


Have a nice day :)

Thomas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.