mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@aerifal.cx>
To: musl@lists.openwall.com
Subject: Re: Remaining ABI issues
Date: Thu, 10 Jan 2013 14:04:54 -0500	[thread overview]
Message-ID: <20130110190454.GD20323@brightrain.aerifal.cx> (raw)
In-Reply-To: <20130110080454.95e3c126.idunham@lavabit.com>

On Thu, Jan 10, 2013 at 08:04:54AM -0800, Isaac Dunham wrote:
> On Wed, 9 Jan 2013 23:03:19 -0500
> Rich Felker <dalias@aerifal.cx> wrote:
> 
> > As for type-2 issues (C++ ABI), there are a number I'm aware of and
> > probably plenty more I'm not aware of, where we don't match glibc and
> > thus can't work with glibc-targeted shared library binaries or
> > applications written in C++:
> > 
> > - FILE, mbstate_t, and fpos_t tags don't match glibc's.
> Hmm...it cares about what FILE looks like?

It cares what it looks like to (for unlocked getc/putc macros), but
that's not the issue at hand (it's already compatible). The issue at
hand is just the name of the struct tag for the struct type behind the
FILE typedef.

> > - Underlying type of pthread_t is pointer in musl, long in glibc
> >
> > - Type of timer_t is a pointer in musl; this is actually
> >   non-conforming to POSIX as well as being incompatible with glibc.
> 
> FYI, I compared man 3posix types.h (SUSv3) with the POSIX 2008
> description, and it looks like the use of a pointer for pthread_t
> was at one point not permitted, though this was fixed by POSIX 2004.

Interesting. At least this provides some motivation for their
otherwise-very-bad definition.

Rich


  reply	other threads:[~2013-01-10 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-10  4:03 Rich Felker
2013-01-10 16:04 ` Isaac Dunham
2013-01-10 19:04   ` Rich Felker [this message]
2013-02-03 19:04     ` Daniel Cegiełka

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=20130110190454.GD20323@brightrain.aerifal.cx \
    --to=dalias@aerifal.cx \
    --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).