Re: st_dev and st_rdev members of 'stat struct' are not of dev_t type on mips/mipsel

Nikolaus Rath <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi George,
> Which basically means that st_rdev member of stat struct is not of
> type dev_t on mips and mipsel, which of course deviates from man 2
> stat, that prescribes that st_rdev member (as well as st_dev member)
> of stat struct must be of type dev_t. I wonder what could be wrong
> with the definition of the stat struct on mips/mipsel, it is a known
> flaw in libc, and whether it has anything to do with the situation of
> having 64-bit kernel and 32 bit userland, usually met on misp/mipsel.
> Yes, the issue could be solved in the application side if one knows
> about the problem on these particular architectures (mips/mipsel), but
> I believe this is not the general case. 

Did you ever get a reply to this? I've encountered the same problem, and
I'm thinking about filing a bug (though I'm not yet sure where). As far
as I know, this breaks POSIX (which requires both st_rdev and st_dev to
be of type dev_t).

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«
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.