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

James Cowgill <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Hi,

On Wed, 2015-09-16 at 13:54 -0700, Nikolaus Rath wrote:
> 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).

See this thread:
https://lists.debian.org/debian-mips/2015/09/msg00067.html

and this bug:
https://sourceware.org/bugzilla/show_bug.cgi?id=17786

James
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAABCgAGBQJV+deWAAoJEMfxZ23qLQHvKkcQAJeywRoyPp0F9eTx0WZZAX3a
mEYX3dYT4YPQq9JzUaL5e26FOzRvi6VE1YlzHi0Z1Sv1iEdnjH55xipMOxEFTJ7m
yd0kVfgtNQ27fqEmsF433PLHlUglOccw0M5pNzyYaJhcQm/8+Jvwj2z8hhHwMNcR
KGkvnqsrq5sS9g01BMuY8MmY1bHGpr7dmfQrzT2bItxjTRMp8Gu56DLa+dgiO49O
BLQ3Awg/9ttFUxPC5Injy3dELX6SrPFwmPCrnH51I7gF13kyJ2BOk/ERB5Z3l7b5
Xe9E41KwwxAE5k6t7ZlRZd3EqDh1h+An+ZxPtkAO7u+kuJ6ZWivyA5+/VPrMYbiI
ZimOEZZxCP2oZhYhQVb/bdAp4XZKJM1BIvhbaQAXsx2dcDy7zxMKVwqzO+E3qLBU
PwaYiOCVg2eoQQzEIz1VaFGvTKBsBgWz2HsXWUvoWnnYOXkRHkPQQ2kIxKIyHfnE
FQz7tBW0twwj2s1KEZZlxZxDoEFIs/tn8ro+vBYGPAlG6Tl0Hg6ZL4E8TjZ4s4/I
euivbhdXCFYXC2kQmQTi4ZaD+Q4dgOSrREDd39TJTPVtyF5u+TdVQmy/ZEk5502p
dMB65eYiuL8CIe9Wf23KwrkUISpUXuAUK2fUTFvK2xVztoS+cVD6hD4piWBS4BZP
5tvA508oqqKZPpnxcLow
=MqhO
-----END PGP SIGNATURE-----
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.