diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-10 21:42:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-10 21:42:52 +0000 |
commit | 106f6f9d9d9e09a4ea3628824a13443836e0fd2c (patch) | |
tree | ae1dce2a4e45a5d44c03a48e58440def5d3e883c /nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c | |
parent | 0be8ee21f050da8b59694b6398740d8fed1b9709 (diff) | |
download | glibc-106f6f9d9d9e09a4ea3628824a13443836e0fd2c.tar.gz glibc-106f6f9d9d9e09a4ea3628824a13443836e0fd2c.tar.xz glibc-106f6f9d9d9e09a4ea3628824a13443836e0fd2c.zip |
Update.
* sysdeps/unix/sysv/linux/s390/lowlevelsem.h: Likewise. * sysdeps/unix/sysv/linux/s390/sem_post.c: Include lowlevellock.h instead of lowlevelsem.h. * sysdeps/unix/sysv/linux/s390/sem_timedwait.c: Likewise. * sysdeps/unix/sysv/linux/s390/sem_trywait.c: Likewise. * sysdeps/unix/sysv/linux/s390/sem_wait.c: Likewise.
Diffstat (limited to 'nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c')
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c b/nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c index 7236842612..669dc3ce12 100644 --- a/nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c +++ b/nptl/sysdeps/unix/sysv/linux/s390/sem_timedwait.c @@ -19,7 +19,7 @@ #include <errno.h> #include <sysdep.h> -#include <lowlevelsem.h> +#include <lowlevellock.h> #include <internaltypes.h> #include <shlib-compat.h> @@ -44,13 +44,13 @@ sem_timedwait (sem, abstime) /* Check for invalid timeout values. */ if (abstime->tv_nsec >= 1000000000) { - __set_errno(EINVAL); + __set_errno (EINVAL); return -1; } /* Get the current time. */ struct timeval tv; - gettimeofday(&tv, NULL); + (void) gettimeofday (&tv, NULL); /* Compute the relative timeout. */ struct timespec rt; @@ -59,12 +59,12 @@ sem_timedwait (sem, abstime) if (rt.tv_nsec < 0) { rt.tv_nsec += 1000000000; - rt.tv_sec--; + --rt.tv_sec; } /* Already timed out. */ if (rt.tv_sec < 0) { - __set_errno(ETIMEDOUT); + __set_errno (ETIMEDOUT); return -1; } |