From 0ebde03a5804392dc301ee1782fcb801484a4761 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 27 Mar 2003 17:55:08 +0000 Subject: (__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed. --- sysdeps/unix/sysv/linux/sysconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/unix/sysv/linux') diff --git a/sysdeps/unix/sysv/linux/sysconf.c b/sysdeps/unix/sysv/linux/sysconf.c index 1ce2439..e07c502 100644 --- a/sysdeps/unix/sysv/linux/sysconf.c +++ b/sysdeps/unix/sysv/linux/sysconf.c @@ -42,7 +42,7 @@ __sysconf (int name) INTERNAL_SYSCALL_DECL (err); int r; r = INTERNAL_SYSCALL (clock_getres, err, 2, CLOCK_MONOTONIC, &ts); - return INTERNAL_SYSCALL_ERROR_P (r, err) ? 0 : 1; + return INTERNAL_SYSCALL_ERROR_P (r, err) ? -1 : 1; } #endif -- cgit v1.1