mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: the case for __MUSL__
Date: Mon, 29 Dec 2014 12:37:13 -0500	[thread overview]
Message-ID: <20141229173713.GM4574@brightrain.aerifal.cx> (raw)
In-Reply-To: <CAMAJcuBgVNOq+kwquOgX+VHoFfc+dK5tjPGw=xJjZpZp_JySXg@mail.gmail.com>

On Mon, Dec 29, 2014 at 11:17:55AM -0600, Josiah Worcester wrote:
> On Dec 29, 2014 11:15 AM, "Josiah Worcester" <josiahw@gmail.com> wrote:
> > I suspect the thing to do here is more to iterate over the set of chars
> and construct the table as needed: there's no sensible interface to this
> bit of functionality in a standard way (and musl to my knowledge doesn't
> have the table you want exposed anywhere). Note that doing it that way
> ought to just work anywhere.
> 
> Minor correction: the table is exposed via __ctype_b_loc which you were
> using. :)

This is not a public interface for musl. The macros needed to
interpret the table are not in any public headers, and the table
contents cannot change in any locale-specific manner. The only purpose
of these tables is for ABI compatibility with glibc-linked binaries.
When building against musl, applications should ue the portable
standard ctype.h functions/macros (and the portable table building
approach you suggested if they need tables) rather than hacking in
access to the ABI-compat tables. Future versions of musl may have an
option for omitting all glibc ABI-compat bloat for users not needing
it.

Rich


  reply	other threads:[~2014-12-29 17:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-29 16:27 Richard Gorton
2014-12-29 17:15 ` Josiah Worcester
2014-12-29 17:17   ` Josiah Worcester
2014-12-29 17:37     ` Rich Felker [this message]
2014-12-29 17:51       ` Richard Gorton
2014-12-29 17:59         ` Josiah Worcester
2014-12-29 21:29           ` Justin Cormack
2014-12-29 21:55           ` Rich Felker

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=20141229173713.GM4574@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).