1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

(__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed.

This commit is contained in:
Ulrich Drepper
2003-03-27 17:55:08 +00:00
parent 049ac25989
commit 0ebde03a58

View File

@@ -42,7 +42,7 @@ __sysconf (int name)
INTERNAL_SYSCALL_DECL (err); INTERNAL_SYSCALL_DECL (err);
int r; int r;
r = INTERNAL_SYSCALL (clock_getres, err, 2, CLOCK_MONOTONIC, &ts); 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 #endif