[Top][All Lists]

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

[RFC, hurd 64bit]: st_dev type

From: Samuel Thibault
Subject: [RFC, hurd 64bit]: st_dev type
Date: Mon, 1 May 2023 15:45:26 +0200
User-agent: NeoMutt/20170609 (1.8.3)


Since we are creating a new ABI, it's time to take care of types :)

I have fixed a few cases that had been identified on hurd 32bit, so that
hurd 64bit doesn't get affected.

There is however one case which remains problematic: stat.st_dev, which
the standars say to have type dev_t, is #defined to st_fsid on Hurd,
since the pid of the translator is what is representative of the device
number. It happens that dev_t is 32bit (__U32_TYPE) and fsid_t is
64bit (__UQUAD_TYPE), see BZ 23084. Perhaps we should just make dev_t
UWORD_TYPE, so it becomes 64bit on Hurd 64bit, as the attached patch
does? (it is UQUAD or 64bit on Linux ports)

I have only checked what is tested by the testsuite, we should
probably carefully review all types exposed by libc with hurd-specific


Attachment: patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]