aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>1999-08-19 23:18:07 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>1999-08-19 23:18:07 +0000
commit4c263f605cc20869401935f4927d0377c7df7c44 (patch)
tree1688a615873cf162e027de0361c64a5b2889478f /lib
parent91518882e0644ea4047cdeffbed637e857906caa (diff)
downloadsrc-4c263f605cc20869401935f4927d0377c7df7c44.tar.gz
src-4c263f605cc20869401935f4927d0377c7df7c44.zip
time_to_sleep->tv_nsec > 1000000000
-to- time_to_sleep->tv_nsec >= 1000000000
Notes
Notes: svn path=/head/; revision=50066
Diffstat (limited to 'lib')
-rw-r--r--lib/libc_r/uthread/uthread_nanosleep.c4
-rw-r--r--lib/libkse/thread/thr_nanosleep.c4
-rw-r--r--lib/libpthread/thread/thr_nanosleep.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_nanosleep.c b/lib/libc_r/uthread/uthread_nanosleep.c
index 1a1e1739053a..41488ffae554 100644
--- a/lib/libc_r/uthread/uthread_nanosleep.c
+++ b/lib/libc_r/uthread/uthread_nanosleep.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_nanosleep.c,v 1.7 1999/08/05 12:15:18 deischen Exp $
+ * $Id: uthread_nanosleep.c,v 1.8 1999/08/19 23:06:10 alfred Exp $
*/
#include <stdio.h>
#include <errno.h>
@@ -49,7 +49,7 @@ nanosleep(const struct timespec * time_to_sleep,
/* Check if the time to sleep is legal: */
if (time_to_sleep == NULL || time_to_sleep->tv_sec < 0 ||
- time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec > 1000000000) {
+ time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec >= 1000000000) {
/* Return an EINVAL error : */
errno = EINVAL;
ret = -1;
diff --git a/lib/libkse/thread/thr_nanosleep.c b/lib/libkse/thread/thr_nanosleep.c
index 1a1e1739053a..41488ffae554 100644
--- a/lib/libkse/thread/thr_nanosleep.c
+++ b/lib/libkse/thread/thr_nanosleep.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_nanosleep.c,v 1.7 1999/08/05 12:15:18 deischen Exp $
+ * $Id: uthread_nanosleep.c,v 1.8 1999/08/19 23:06:10 alfred Exp $
*/
#include <stdio.h>
#include <errno.h>
@@ -49,7 +49,7 @@ nanosleep(const struct timespec * time_to_sleep,
/* Check if the time to sleep is legal: */
if (time_to_sleep == NULL || time_to_sleep->tv_sec < 0 ||
- time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec > 1000000000) {
+ time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec >= 1000000000) {
/* Return an EINVAL error : */
errno = EINVAL;
ret = -1;
diff --git a/lib/libpthread/thread/thr_nanosleep.c b/lib/libpthread/thread/thr_nanosleep.c
index 1a1e1739053a..41488ffae554 100644
--- a/lib/libpthread/thread/thr_nanosleep.c
+++ b/lib/libpthread/thread/thr_nanosleep.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: uthread_nanosleep.c,v 1.7 1999/08/05 12:15:18 deischen Exp $
+ * $Id: uthread_nanosleep.c,v 1.8 1999/08/19 23:06:10 alfred Exp $
*/
#include <stdio.h>
#include <errno.h>
@@ -49,7 +49,7 @@ nanosleep(const struct timespec * time_to_sleep,
/* Check if the time to sleep is legal: */
if (time_to_sleep == NULL || time_to_sleep->tv_sec < 0 ||
- time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec > 1000000000) {
+ time_to_sleep->tv_nsec < 0 || time_to_sleep->tv_nsec >= 1000000000) {
/* Return an EINVAL error : */
errno = EINVAL;
ret = -1;