This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Vineet Gupta <Vineet dot Gupta1 at synopsys dot com>
- Cc: Alistair Francis <alistair23 at gmail dot com>, Florian Weimer <fweimer at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Arnd Bergmann <arnd at arndb dot de>, Palmer Dabbelt <palmerdabbelt at google dot com>, Zong Li <zongbox at gmail dot com>, Alistair Francis <alistair dot francis at wdc dot com>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>, "Maciej W. Rozycki" <macro at wdc dot com>, arcml <linux-snps-arc at lists dot infradead dot org>
- Date: Tue, 18 Feb 2020 23:13:38 +0000
- Subject: Re: switching ARC to 64-bit time_t (Re: [RFC v6 07/23] RISC-V: Use 64-bit time_t and off_t for RV32 and RV64)
- Ironport-sdr: MZtuIG2Tx1My3o9F4xPXWMOmHqeiw06GD3Kd/Pmh43loDY2dYQy1vHISsSfuaFmFUNi8CRRc2Y BfpX0mTq2dI0fv4L1nn4s9J49tNmEpcuPY/jgl6M6Z8eQp2Q9ZZMToIcPJlAUnAcakmQXbrILp sW0OBS4aqZeBcLyfK4kny0Is1Cs7IseP4jZAiJX/hQ56nrXxvH9Yll0y1C+NMwoIcDq7CtFntY VnInOSwr49/pVDF9DJkqQXt33ft/DmUQlrqglgE3c5d3AzAIhiZR0Fu+C6w1AipSDs4y8+2yvW Joo=
- Ironport-sdr: 885qo12RWYNMhCqMBkJGq7TRK5FPsNDz1xE3c4njqeVyum/TqY2iSUD3DU7Uj98oPjOMW0Cz7v 4qBNOjBZMYKlmrNyjF4QTyJLxgLBW6XAdHrA5gJYjd2kkwVzeOauHRWRdk/8sNgsk+udlwsg4q 7CBHFPzsl3FY+v3NcwyVH4yKnLZB22gPuZPXbehYVg3T/cgHTwsq8l7v4lW5GsctQKD8Oa6G28 QA4cemS8NMdKP2bDUJBMzYz6Q0H/nCXE0dCSIZwmSV4/u8Jf2COplkXAdDivicmLPl0H4v9lJ0 gUQ=
- References: <cover.1578824547.git.alistair.francis@wdc.com> <4e95f95966d8d7c6a8339160dc62d81c1f6a1bfb.1578824547.git.alistair.francis@wdc.com> <00574bfb-981a-3a1c-cbdf-b2fee4eddc32@gmail.com> <CAKmqyKMyf2psPp+-EHoidvbPbSXv0=dP26GjVQnT5BUriLc1gA@mail.gmail.com> <alpine.DEB.2.21.2002120123230.3988@digraph.polyomino.org.uk> <CAKmqyKOgFRfMOws_-48GqMnuS3ygmN9A4DzLg6UtEjRXVoM82A@mail.gmail.com> <8a9784b3-fc52-adc3-4595-33142b059388@synopsys.com>
On Tue, 18 Feb 2020, Vineet Gupta wrote:
> An the reason this all works on RISCV is that your kernel doesn't define
> __ARCH_WANT_STAT64 -> lacks __NR_statat64 and instead uses the statx call which
> does itemized copy and would work fine when copying from 32-bits time (in kernel)
> to 64-bits container in glibc. Is this is right understanding or am I missing
> something here.
That looks right - so you'll need a way (e.g. a new macro in
kernel_stat.h) to tell the stat implementations to use the statx path even
though the older stat64 syscalls exist.
--
Joseph S. Myers
joseph@codesourcery.com