about summary refs log tree commit diff
path: root/stdlib/exit.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-27 21:50:29 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-27 21:50:29 +0000
commitc41041bc2f84eb8f44ff36c3d14e55944185e665 (patch)
treec545add82b7ed403c5494a121f7f56ae724601c7 /stdlib/exit.c
parent8892c471bf1078c28adb239a4866a01356651843 (diff)
downloadglibc-c41041bc2f84eb8f44ff36c3d14e55944185e665.tar.gz
glibc-c41041bc2f84eb8f44ff36c3d14e55944185e665.tar.xz
glibc-c41041bc2f84eb8f44ff36c3d14e55944185e665.zip
Update.
1999-12-17  Andreas Jaeger  <aj@suse.de>

	* stdlib/Versions: Export __cxa_atexit and __cxa_finalize.

1999-12-16  Mark Mitchell  <mark@codesourcery.com>

	* stdlib/Makefile (routines): Add cxa_atexit and cxa_finalize.
	* stdlib/exit.h (flavor): Add ef_cxa.
	(exit_function): Add cxa variant.
	* stdlib/exit.c (exit): Handle ef_cxa exit functions.
	* stdlib/cxa_atexit.c: New file.
	* stdlib/cxa_finalize.c: New file.
Diffstat (limited to 'stdlib/exit.c')
-rw-r--r--stdlib/exit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/exit.c b/stdlib/exit.c
index f63dc1fdec..904c225336 100644
--- a/stdlib/exit.c
+++ b/stdlib/exit.c
@@ -56,6 +56,9 @@ exit (int status)
 	    case ef_at:
 	      (*f->func.at) ();
 	      break;
+	    case ef_cxa:
+	      (*f->func.cxa.fn) (f->func.cxa.arg);
+	      break;
 	    }
 	}