[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: