diff options
author | Christopher Faylor <me@cgf.cx> | 2005-03-27 02:31:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-03-27 02:31:33 +0000 |
commit | 255557f8c3bcc39467cd02a234d2a544f17d22c9 (patch) | |
tree | e152f9b0f349b6351d12563c0f14718775204142 /winsup/cygwin/signal.cc | |
parent | ec98d19a08c2e4678e8a6f40fea0c9bbeaa4a2c7 (diff) | |
download | cygnal-255557f8c3bcc39467cd02a234d2a544f17d22c9.tar.gz cygnal-255557f8c3bcc39467cd02a234d2a544f17d22c9.tar.bz2 cygnal-255557f8c3bcc39467cd02a234d2a544f17d22c9.zip |
* timer.cc (nanosleep): Treat tv_sec < 0 as invalid.
* include/search.h: Make declarations consistent with newlib.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 1808b2428..41b48313f 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -77,6 +77,7 @@ nanosleep (const struct timespec *rqtp, struct timespec *rmtp) pthread_testcancel (); if ((unsigned int) rqtp->tv_sec > (HIRES_DELAY_MAX / 1000 - 1) + || rqtp->tv_sec < 0 || (unsigned int) rqtp->tv_nsec > 999999999) { set_errno (EINVAL); |