about summary refs log tree commit diff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-09-15 02:37:32 +0000
committerUlrich Drepper <drepper@redhat.com>2002-09-15 02:37:32 +0000
commit7ae4abe9af5d7c76c7ab01a72aebe307a06120e1 (patch)
tree18fca0dd7b02623bec5e7e8d1f39aae93f50c68a /include/unistd.h
parentdf17727a5efa1a5447e970e31cf9673a7f508fba (diff)
downloadglibc-7ae4abe9af5d7c76c7ab01a72aebe307a06120e1.tar.gz
glibc-7ae4abe9af5d7c76c7ab01a72aebe307a06120e1.tar.xz
glibc-7ae4abe9af5d7c76c7ab01a72aebe307a06120e1.zip
Update.
2002-09-14  Ulrich Drepper  <drepper@redhat.com>

	* include/unistd.h: Declare __exit_thread.
	* sysdeps/generic/libc-start.c: Remove dummy_addr.
	Wrap call to main in setjmp if HAVE_CANCELBUF is defined.
	* sysdeps/unix/sysv/linux/exit-thread.S: New file.
	* sysdeps/unix/sysv/linux/_exit.c: New file.
	* sysdeps/unix/sysv/linux/i386/_exit.S: New file.
	* sysdeps/unix/sysv/linux/Makefile [subdir==posix] (sysdep_routines):
	Add exit-thread.

	* configure.in: Add dl_iterate_phdr to test using -nostdlib.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 289eb4b740..26993d4dfe 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -140,4 +140,8 @@ extern int __libc_enable_secure_internal attribute_hidden;
 /* Various internal function.  */
 extern void __libc_check_standard_fds (void);
 
+
+/* Special exit function which only terminates the current thread.  */
+extern void __exit_thread (int val) __attribute__ ((noreturn));
+
 #endif