[RFC PATCH] __fxstat: replace if() with #if when checking version
Yury Norov
ynorov@caviumnetworks.com
Tue Sep 6 16:06:00 GMT 2016
On Tue, Sep 06, 2016 at 06:59:18PM +0300, Yury Norov wrote:
> On Tue, Sep 06, 2016 at 03:08:58PM +0200, Andreas Schwab wrote:
> > On Sep 06 2016, Yury Norov <ynorov@caviumnetworks.com> wrote:
> >
> > > __fxstat() is always passed with _STAT_VER as vers parameter and it's
> > > in internal namespace.
> >
> > It is part of the glibc ABI.
> >
> > > If patch is found reasonable, I can check and fix other platforms and
> > > stat syscalls. Could someone explain me, what for we need 'vers',
> > > if we pass it with the only value everywhere. Maybe it's time to remove it
> > > completely?
> >
> > _STAT_VER has changed over time.
> >
> > Andreas.
>
> OK, now I see. It seems like STAT_IS_KERNEL_STAT hint is used not
> optimal way. In my understanding, it forces user pass vers == _STAT_VER_KERNEL.
> But if so, glibc may avoid generating the text of __xstat_conv(), and
> so no struct kernel_stat is needed. Take a look at the patch below.
> Does it make sense to you?
>
> Yury.
Sorry, I was wrong. Everything is right.
More information about the Libc-alpha
mailing list