diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-03-27 17:55:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-03-27 17:55:08 +0000 |
commit | 0ebde03a5804392dc301ee1782fcb801484a4761 (patch) | |
tree | 17786eb049dbc0b9c4991cbf5b1d4456753d51f0 /sysdeps/unix/sysv/linux/sysconf.c | |
parent | 049ac25989aa6b9d80d213cf570dab80be3e85d3 (diff) | |
download | glibc-0ebde03a5804392dc301ee1782fcb801484a4761.tar glibc-0ebde03a5804392dc301ee1782fcb801484a4761.tar.gz glibc-0ebde03a5804392dc301ee1782fcb801484a4761.tar.bz2 glibc-0ebde03a5804392dc301ee1782fcb801484a4761.zip |
(__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sysconf.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sysconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sysconf.c b/sysdeps/unix/sysv/linux/sysconf.c index 1ce2439488..e07c502cc3 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 |