projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049ac25
)
(__sysconf) <_SC_MONOTONIC_CLOCK>: Return -1 instead of 0 if clock_getres failed.
author
Ulrich Drepper
<drepper@redhat.com>
Thu, 27 Mar 2003 17:55:08 +0000
(17:55 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Thu, 27 Mar 2003 17:55:08 +0000
(17:55 +0000)
sysdeps/unix/sysv/linux/sysconf.c
patch
|
blob
|
history
diff --git
a/sysdeps/unix/sysv/linux/sysconf.c
b/sysdeps/unix/sysv/linux/sysconf.c
index
1ce2439
..
e07c502
100644
(file)
--- 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