aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-12-30 22:38:13 +0000
committerChristopher Faylor <me@cgf.cx>2002-12-30 22:38:13 +0000
commitf715db84b6d37834078b97bef0d82d61144959f1 (patch)
tree6df7bfddce51e1b1d3512a74cba1b6a4e2cb41c4
parent9f3255cee641039f0e48492cc0b81a2d4a2c7f29 (diff)
downloadnewlib-f715db84b6d37834078b97bef0d82d61144959f1.zip
newlib-f715db84b6d37834078b97bef0d82d61144959f1.tar.gz
newlib-f715db84b6d37834078b97bef0d82d61144959f1.tar.bz2
* windows.cc (setitimer): Return ENOSYS on invalid argument.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/window.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 2cb8e88..25c789d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-30 Christopher Faylor <cgf@redhat.com>
+
+ * windows.cc (setitimer): Return ENOSYS on invalid argument.
+
2002-12-28 Christopher Faylor <cgf@redhat.com>
* fhandler_termios.cc (fhandler_termios::line_edit): Perform echo
diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc
index 80e95a1..55bc369 100644
--- a/winsup/cygwin/window.cc
+++ b/winsup/cygwin/window.cc
@@ -148,7 +148,7 @@ setitimer (int which, const struct itimerval *value, struct itimerval *oldvalue)
if (which != ITIMER_REAL)
{
- set_errno (EINVAL);
+ set_errno (ENOSYS);
return -1;
}
/* Check if we will wrap */