Index: sysdeps/nacl/clock_getres.c |
diff --git a/sysdeps/nacl/clock_getres.c b/sysdeps/nacl/clock_getres.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f51743cab23e3a19cbac162497ad333e18a01a4b |
--- /dev/null |
+++ b/sysdeps/nacl/clock_getres.c |
@@ -0,0 +1,18 @@ |
+ |
+#include <errno.h> |
+#include <time.h> |
+ |
+#include <irt_syscalls.h> |
+ |
+ |
Roland McGrath
2012/02/14 00:15:45
excess blank lines
bsy
2012/02/15 18:35:59
Done.
|
+ |
+int clock_getres (clockid_t clk_id, struct timespec *res) |
+{ |
+ int result = __nacl_irt_clock_getres (clk_id, res); |
+ if (result != 0) { |
Roland McGrath
2012/02/14 00:15:45
glibc style puts { on a new line here, though styl
bsy
2012/02/15 18:35:59
Done.
|
+ __set_errno(result); |
Roland McGrath
2012/02/14 00:15:45
space before paren here
bsy
2012/02/15 18:35:59
Done.
|
+ return -1; |
+ } |
+ return 0; |
+} |
+ |