From f715db84b6d37834078b97bef0d82d61144959f1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 30 Dec 2002 22:38:13 +0000 Subject: * windows.cc (setitimer): Return ENOSYS on invalid argument. --- winsup/cygwin/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/window.cc') diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc index 80e95a143..55bc369c0 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 */ -- cgit v1.2.3