From 697568d1b48a497024bca234483a157cee79c7a2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 21 Jun 2000 04:35:29 +0000 Subject: Update. 2000-06-20 Jes Sorensen * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file. 2000-06-20 Jes Sorensen * sysdeps/unix/sysv/linux/ia64/machine-gmon.h: New file. * sysdeps/unix/sysv/linux/ia64/profil-counter.h: New file. 2000-06-20 David Mosberger-Tang * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file. 2000-06-20 Jes Sorensen * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo. --- linuxthreads/sysdeps/pthread/timer_create.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'linuxthreads/sysdeps/pthread/timer_create.c') diff --git a/linuxthreads/sysdeps/pthread/timer_create.c b/linuxthreads/sysdeps/pthread/timer_create.c index cbefb91831..1dccd30361 100644 --- a/linuxthreads/sysdeps/pthread/timer_create.c +++ b/linuxthreads/sysdeps/pthread/timer_create.c @@ -46,7 +46,7 @@ timer_create (clock_id, evp, timerid) #endif ) { - errno = EINVAL; + __set_errno (EINVAL); return -1; } @@ -54,7 +54,7 @@ timer_create (clock_id, evp, timerid) if (__timer_init_failed) { - errno = ENOMEM; + __set_errno (ENOMEM); return -1; } @@ -63,7 +63,7 @@ timer_create (clock_id, evp, timerid) newtimer = __timer_alloc (); if (__builtin_expect (newtimer == NULL, 0)) { - errno = EAGAIN; + __set_errno (EAGAIN); goto unlock_bail; } @@ -106,13 +106,13 @@ timer_create (clock_id, evp, timerid) break; #endif } - + if (! thread->exists) { if (__builtin_expect (__timer_thread_start (thread), 1) < 0) { - errno = EAGAIN; + __set_errno (EAGAIN); goto unlock_bail; } } @@ -138,7 +138,7 @@ timer_create (clock_id, evp, timerid) /* Out of luck; no threads are available. */ if (__builtin_expect (thread == NULL, 0)) { - errno = EAGAIN; + __set_errno (EAGAIN); goto unlock_bail; } @@ -146,13 +146,13 @@ timer_create (clock_id, evp, timerid) if (! thread->exists && __builtin_expect (! __timer_thread_start (thread), 0)) { - errno = EAGAIN; + __set_errno (EAGAIN); goto unlock_bail; } break; default: - errno = EINVAL; + __set_errno (EINVAL); goto unlock_bail; } -- cgit v1.2.3-70-g09d2