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..6917736ce1e580620b81c5f96dbb9a82ff7f7b98 |
--- /dev/null |
+++ b/sysdeps/nacl/clock_getres.c |
@@ -0,0 +1,25 @@ |
+#include <errno.h> |
+#include <time.h> |
+ |
+#include <irt_syscalls.h> |
+ |
+#define SYSDEP_GETRES \ |
+ case CLOCK_REALTIME: \ |
+ case CLOCK_MONOTONIC: \ |
+ { \ |
+ int result = __nacl_irt_clock_getres (clock_id, res); \ |
Roland McGrath
2012/02/15 18:45:26
GNU style says this should be indented only two sp
bsy
2012/02/15 19:33:29
Done. (well, i indented the brace further.)
|
+ if (result != 0) \ |
+ { \ |
Roland McGrath
2012/02/15 18:45:26
GNU style says this whole block is indented two sp
bsy
2012/02/15 19:33:29
Done.
|
+ __set_errno (result); \ |
+ retval = -1; \ |
+ } \ |
+ else \ |
+ { \ |
Roland McGrath
2012/02/15 18:45:26
GNU style avoids superfluous braces for single-lin
bsy
2012/02/15 19:33:29
Done.
|
+ retval = 0; \ |
+ } \ |
+ } \ |
+ break; |
+ |
+#define HANDLED_REALTIME |
+ |
+#include <sysdeps/posix/clock_getres.c> |