Index: sysdeps/nacl/clock_gettime.c |
diff --git a/sysdeps/nacl/clock_gettime.c b/sysdeps/nacl/clock_gettime.c |
new file mode 100644 |
index 0000000000000000000000000000000000000000..89735624bc00633048be58d5542c9cf461694274 |
--- /dev/null |
+++ b/sysdeps/nacl/clock_gettime.c |
@@ -0,0 +1,19 @@ |
+ |
+#include <errno.h> |
+#include <time.h> |
+ |
+#include <irt_syscalls.h> |
+ |
+ |
Roland McGrath
2012/02/14 00:15:45
excess blank line here.
bsy
2012/02/15 18:35:59
Done.
|
+ |
+int clock_gettime (clockid_t clk_id, struct timespec *tp) |
+{ |
+ int result = __nacl_irt_clock_gettime (clk_id, tp); |
+ if (result != 0) { |
+ __set_errno (result); |
+ return -1; |
+ } |
+ return 0; |
+} |
+librt_hidden_def (clock_gettime) |
+ |