From: Florian Weimer <fweimer@redhat.com>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Cc: Adhemerval Zanella via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: Should legacy fstat (via __fxstat) and fstat@GLIBC_2.33 call the same syscall?
Date: Thu, 14 Jan 2021 18:18:21 +0100 [thread overview]
Message-ID: <87im7zphcy.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <98dc65ea-4c8a-ba72-3193-409ef35e24ca@linaro.org> (Adhemerval Zanella's message of "Thu, 14 Jan 2021 13:53:45 -0300")
* Adhemerval Zanella:
> This is a spreadsheet with various supported architectures for the xstat
> implementation prior the consolidation and the requirements for each
> syscall and/or transformation required [1].
[1] https://docs.google.com/spreadsheets/d/e/2PACX-1vRG3-1W8roNgHXVaY8zqIBlGqCRtztdyDUvS_VLLkCnmXANYTmZZvONda6TAKcNSNsqfswMn1_IadE5/pubhtml
> It is quite a mess and that's why I think making only fstatat64 the one
> with the syscall logic does simplify a lot.
I still don't get why this wouldn't be a desirable change:
--- a/sysdeps/unix/sysv/linux/fxstat.c
+++ b/sysdeps/unix/sysv/linux/fxstat.c
@@ -35,18 +35,7 @@ __fxstat (int vers, int fd, struct stat *buf)
switch (vers)
{
case _STAT_VER_KERNEL:
- {
-# if STAT_IS_KERNEL_STAT
- /* New kABIs which uses generic pre 64-bit time Linux ABI,
- e.g. csky, nios2 */
- int r = INLINE_SYSCALL_CALL (fstat64, fd, buf);
- return r ?: stat_overflow (buf);
-# else
- /* Old kABIs with old non-LFS support, e.g. arm, i386, hppa, m68k,
- microblaze, s390, sh, powerpc, and sparc. */
- return INLINE_SYSCALL_CALL (fstat, fd, buf);
-# endif
- }
+ return fstat (fd, buf);
default:
{
Thanks,
Florian
--
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill
next prev parent reply other threads:[~2021-01-14 17:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-14 12:00 Florian Weimer
2021-01-14 12:29 ` Adhemerval Zanella
2021-01-14 14:38 ` Florian Weimer
2021-01-14 16:36 ` Adhemerval Zanella
2021-01-14 16:45 ` Florian Weimer
2021-01-14 16:53 ` Adhemerval Zanella
2021-01-14 17:18 ` Florian Weimer [this message]
2021-01-14 17:46 ` Adhemerval Zanella
2021-01-15 10:29 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im7zphcy.fsf@oldenburg2.str.redhat.com \
--to=fweimer@redhat.com \
--cc=adhemerval.zanella@linaro.org \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).