glibc/sysdeps/unix/sysv/linux/hppa
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 hppa: fix __O_SYNC to match the kernel 2015-02-27 01:46:01 -05:00
sys Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
____longjmp_chk.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
arch-fork.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
brk.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
c++-types.data HPPA: Add c++-types.data. 2014-09-07 22:09:49 -04:00
clone.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fcntl.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
fxstat.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
fxstatat.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
getcontext.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getdents64.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
getrlimit64.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
Implies NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
internaltypes.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
kernel_sigaction.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
kernel_stat.h Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
kernel-features.h Correct __ASSUME_PRLIMIT64 for hppa/microblaze/sh (bug 17779). 2015-03-02 23:05:55 +00:00
ld.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libanl.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libBrokenLocale.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libc.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libcrypt.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libdl.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libm.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libnsl.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libpthread.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libresolv.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
librt.abilist hppa: Remove GLIBC_2.3 from librt.abilist. 2014-07-02 03:18:26 -04:00
libthread_db.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
libutil.abilist hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
lowlevellock.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
lxstat.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
makecontext.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
mmap.c hppa: Remove warnings and fix conformance errors. 2015-02-05 21:37:47 -05:00
profil-counter.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pt-vfork.S Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_broadcast.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_destroy.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_init.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_signal.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_timedwait.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread_cond_wait.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
pthread.h hppa: Sync with pthread.h. 2015-02-06 01:59:32 -05:00
pthreadP.h HPPA: Transition to new non-addon NPTL. 2014-09-07 22:08:36 -04:00
setcontext.S Bug 18125: Call exit after last linked context. 2015-05-08 11:29:38 -04:00
shlib-versions Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
socket.S Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
swapcontext.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
syscall.c hppa: Remove warnings and fix conformance errors. 2015-02-05 21:37:47 -05:00
syscalls.list Remove stray *_internal aliases (bug 14132). 2014-10-09 01:11:14 +00:00
sysdep-cancel.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
sysdep.c hppa: Remove warnings and fix conformance errors. 2015-02-05 21:37:47 -05:00
sysdep.h hppa: fix build failure with RTLD_PRIVATE_ERRNO 2015-02-24 00:10:42 -05:00
ucontext_i.sym Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
umount.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00
utimes.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Versions hppa: Add ABI baselines. 2014-07-01 23:59:47 -04:00
xstat.c Relocate hppa from ports to libc. 2014-04-29 04:20:39 -04:00