aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps/unix/sysv/linux/timer_delete.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-27 19:10:51 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-27 19:10:51 +0000
commitc75d02f05653316b8dfccca404a1e33c49562877 (patch)
treea26d5d1ed39f840cc825a9b1fff995a14cbfb881 /nptl/sysdeps/unix/sysv/linux/timer_delete.c
parent0d5420ec80397ae46f8c0a67d013feaef94220f3 (diff)
downloadglibc-c75d02f05653316b8dfccca404a1e33c49562877.tar
glibc-c75d02f05653316b8dfccca404a1e33c49562877.tar.gz
glibc-c75d02f05653316b8dfccca404a1e33c49562877.tar.bz2
glibc-c75d02f05653316b8dfccca404a1e33c49562877.zip
Update.
2003-03-27 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/timer_delete.c (timer_delete): Even if timer_delete syscall fails, but not with ENOSYS, set __no_posix_timers. * sysdeps/unix/sysv/linux/timer_settime.c [!__ASSUME_POSIX_TIMERS] (timer_settime): Fix typo.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/timer_delete.c')
-rw-r--r--nptl/sysdeps/unix/sysv/linux/timer_delete.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_delete.c b/nptl/sysdeps/unix/sysv/linux/timer_delete.c
index cf63364253..9028dc4efc 100644
--- a/nptl/sysdeps/unix/sysv/linux/timer_delete.c
+++ b/nptl/sysdeps/unix/sysv/linux/timer_delete.c
@@ -72,10 +72,13 @@ timer_delete (timerid)
Return the error. */
# ifndef __ASSUME_POSIX_TIMERS
if (errno != ENOSYS)
+ {
+ __no_posix_timers = 1;
# endif
- return -1;
-
+ return -1;
# ifndef __ASSUME_POSIX_TIMERS
+ }
+
__no_posix_timers = -1;
# endif
}