Move decl of pthread_once() out of unsupported
authorKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Sep 2015 21:07:26 +0000 (14:07 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 Oct 2015 20:31:50 +0000 (16:31 -0400)
We already had pthread_once() declared higher up in the header file, so
it shouldn't be declared down in the "unsupported" section. Also, there
is an erroneous declaration for uthread_once_t, which is now removed.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/pthread/pthread.h

index f9b1f87..826218e 100644 (file)
@@ -261,7 +261,6 @@ int pthread_getschedparam(pthread_t thread, int *policy,
                           struct sched_param *param);
 
 /* Unsupported Stuff */
-typedef void *upthread_once_t;
 extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex,
                     const struct timespec *__restrict
                     __abstime) __THROWNL __nonnull ((1, 2));
@@ -269,8 +268,6 @@ extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond,
                    pthread_mutex_t *__restrict __mutex,
                    const struct timespec *__restrict __abstime)
      __nonnull ((1, 2, 3));
-extern int pthread_once (pthread_once_t *__once_control,
-             void (*__init_routine) (void)) __nonnull ((1, 2));
 extern int pthread_cancel (pthread_t __th);
 void pthread_cleanup_push(void (*routine)(void *), void *arg);
 void pthread_cleanup_pop(int execute);