Consistently added return to pthread_exit

This commit is contained in:
Ulrich Drepper 2012-01-10 19:02:21 -05:00
parent a0bfc9c78f
commit 356fa562ec
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2012-01-10 Ulrich Drepper <drepper@gmail.com>
* pthreadP.h: Add noreturn to __pthread_exit.
* sysdeps/pthread/pthread-functions.h: Likewise for ptr___pthread_exit.
2011-12-30 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* sysdeps/unix/sysv/linux/aio_misc.h (__aio_create_helper_thread):

View File

@ -501,7 +501,7 @@ extern int __pthread_atfork (void (*prepare) (void), void (*parent) (void),
extern pthread_t __pthread_self (void);
extern int __pthread_equal (pthread_t thread1, pthread_t thread2);
extern int __pthread_kill (pthread_t threadid, int signo);
extern void __pthread_exit (void *value);
extern void __pthread_exit (void *value) __attribute__ ((__noreturn__));
extern int __pthread_setcanceltype (int type, int *oldtype);
extern int __pthread_enable_asynccancel (void) attribute_hidden;
extern void __pthread_disable_asynccancel (int oldtype)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2003, 2004, 2005, 2006, 2007, 2011 Free Software Foundation, Inc.
/* Copyright (C) 2003-2007, 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
@ -66,7 +66,7 @@ struct pthread_functions
pthread_mutex_t *,
const struct timespec *);
int (*ptr_pthread_equal) (pthread_t, pthread_t);
void (*ptr___pthread_exit) (void *);
void (*ptr___pthread_exit) (void *) __attribute__ ((__noreturn__));
int (*ptr_pthread_getschedparam) (pthread_t, int *, struct sched_param *);
int (*ptr_pthread_setschedparam) (pthread_t, int,
const struct sched_param *);