This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why was swapcontext removed from POSIX and will glibc continue to support it?

On 06/04/2018 07:57 PM, John Carter wrote:
> Apparently swapcontext has been removed from the POSIX standard, (but
> it still part of glibc).
> Anybody know why they removed it?

You can ask the Austin Group, and it will likely be logged in their
issue tracker with all the rationale required for the change.

Main page:

Issue tracker:

> Anybody know if I can rely on it's continued existence in glibc?

We have no plans to remove swapcontext() and the *context() family
of functions. However, these functions have a lot of genuine problems
in their uses, namely that the context object is of fixed size. A
new API is really what is needed.

If glibc were to deprecate the functions they would remain
as compatibility symbols for use by old applications for a very
long time (probably forever). Newly built applications would be
unable to link against those compatibility symbols. New applications
would have to use whatever new API exists at the time.

Does that answer your questions?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]