aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-21 04:35:29 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-21 04:35:29 +0000
commit697568d1b48a497024bca234483a157cee79c7a2 (patch)
tree890f34b715a2a1fdbeaa1307e676e49ea15d3632 /linuxthreads/sysdeps/pthread/timer_create.c
parentUpdate. (diff)
downloadglibc-697568d1b48a497024bca234483a157cee79c7a2.tar.gz
glibc-697568d1b48a497024bca234483a157cee79c7a2.tar.bz2
glibc-697568d1b48a497024bca234483a157cee79c7a2.zip
Update.
2000-06-20 Jes Sorensen <jes@linuxcare.com> * sysdeps/unix/sysv/linux/ia64/syscalls.list: New file. 2000-06-20 Jes Sorensen <jes@linuxcare.com> * 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 <davidm@hpl.hp.com> * sysdeps/unix/sysv/linux/ia64/getpagesize.c: New file. 2000-06-20 Jes Sorensen <jes@linuxcare.com> * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Fix typo.
Diffstat (limited to 'linuxthreads/sysdeps/pthread/timer_create.c')
-rw-r--r--linuxthreads/sysdeps/pthread/timer_create.c16
1 files changed, 8 insertions, 8 deletions
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;
}