Problem with close_range (util-linux)
Lukasz Majewski
lukma@denx.de
Thu Jul 15 09:04:37 GMT 2021
Hi Florian,
> * Lukasz Majewski:
>
> > Hi Adhmerval,
> >
> > I'm now trying to integrate the -master glibc to Yocto/OE, to build
> > the Y2038 distribution (previously I had the DUT glibc installed in
> > /opt).
> >
> > I've found some problem with close_range syscall on util-linux.
> >
> > It detects if the close_range is available (with autotools) and then
> > tries to use it in lib/fileutils.c
> >
> > The problem is that it has different signature:
> > - close_range(STDERR_FILENO + 1, ~0U);
> > + close_range(STDERR_FILENO + 1, ~0U, 0);
> >
> > than the one from glibc.
> >
> > I've also noted that close_range has the GLIBC symbol version from
> > 2.34 release, so this is not yet a big issue, but:
> >
> > 1. Shall we handle this case in glibc at all?
> >
> > or
> >
> > 2. Wait for 2.34 release and then util-linux shall also adjust to
> > the new, proper signature of close_range?
>
> This is typical for the addition of new system call wrappers.
>
> util-linux upstream has already been fixed. Given that the code was
> rather buggy before, it's a good idea to encourage wide backporting of
> the fix.
>
> I don't think glibc needs to do anything here.
Thanks for the clarification :-)
>
> Thanks,
> Florian
>
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20210715/f7c16287/attachment.sig>
More information about the Libc-alpha
mailing list