glibc/sysdeps/unix/sysv/linux/nios2
Carlos O'Donell c92d40c0bc Bug 18125: Call exit after last linked context.
There appears to be a discrepancy among the implementations
of setcontext with regards to the function called once the last
linked-to context has finished executing via setcontext.

The POSIX standard says:
~~~
If the uc_link member of the ucontext_t structure pointed to by
the ucp argument is equal to 0, then this context is the main
context, and the thread will exit when this context returns.
~~~

It says "exit" not "exit immediately" nor "exit without running
functions registered with atexit or on_exit."

Therefore the AArch64, ARM, hppa and NIOS II implementations are
wrong and no test detects it.

It is questionable if this should even be fixed or just documented
that the above 4 targets are wrong. The functions are deprecated
and nobody should be using them, but at the same time it silly to
have cross-target differences that make it hard to port old
applications from say x86_64 to AArch64.

Therefore I will ix the 4 arches, and checkin a regression
test to prevent it from changing again.

https://sourceware.org/ml/libc-alpha/2015-03/msg00720.html
2015-05-08 11:29:38 -04:00
..
bits
sys
arch-fork.h
c++-types.data
cacheflush.c
clone.S
configure
configure.ac
getcontext.S
Implies
kernel_rt_sigframe.h
kernel-features.h
ld.abilist
libanl.abilist
libBrokenLocale.abilist
libc.abilist
libcrypt.abilist
libdl.abilist
libm.abilist
libnsl.abilist
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.c
Makefile
profil-counter.h
setcontext.S Bug 18125: Call exit after last linked context. 2015-05-08 11:29:38 -04:00
shlib-versions
sigcontextinfo.h
swapcontext.S
syscall.S
sysdep-cancel.h
sysdep.h
sysdep.S
ucontext_i.sym
Versions
vfork.S