GNU bug report logs -
#65486
[PATCH] syscalls: Add support for musl libc
Previous Next
Reported by: soeren <at> soeren-tempel.net
Date: Thu, 24 Aug 2023 06:35:01 UTC
Severity: normal
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #23 received at 65486 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Ludovic,
Ludovic Courtès <ludo <at> gnu.org> wrote:
> You could call it ‘musl?’ instead, to (hopefully) convey we’re
> interested in the C library specifically.
I used musl-libc? instead to make it more clear that we are interested
in the C library for this case-distinction. This is implemented in the
attached git-format-patch(1). Would that be suitable for inclusion in
Guix?
> No no, I meant something like:
>
> (or (false-if-exception (dynamic-func "readdir64" (dynamic-link)))
> (dynamic-func "readdir" (dynamic-link)))
>
> Of course, it’s not as simple as this because we’d rather have it
> integrated with ‘syscall->procedure’ (maybe by adding an
> #:alternative-name argument for the Musl name?), but you get the idea.
Also this check doesn't ensure struct layout compatibility, e.g. if
readdir uses 32-bit types so not sure if this is necessarily better
than the musl libc check I proposed above.
Let me know what you think.
Greetings
Sören
[0002-syscalls-Add-support-for-musl-libc.patch (text/plain, attachment)]
This bug report was last modified 1 year and 271 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.