Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: sysdeps/nacl/clock_getres.c

Issue 9389024: plumb glibc clock_get interfaces to irt (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: GNU style; pass through for clock_nanosleep Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sysdeps/nacl/clock_getcpuclockid.c ('k') | sysdeps/nacl/clock_gettime.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5ded54cdba7d9fc96443b8cbed5e67a3b3889bc0
--- /dev/null
+++ b/sysdeps/nacl/clock_getres.c
@@ -0,0 +1,23 @@
+#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); \
+ if (result != 0) \
+ { \
+ __set_errno (result); \
+ retval = -1; \
+ } \
+ else \
+ retval = 0; \
+ } \
+ break;
+
+#define HANDLED_REALTIME
+
+#include <sysdeps/posix/clock_getres.c>
« no previous file with comments | « sysdeps/nacl/clock_getcpuclockid.c ('k') | sysdeps/nacl/clock_gettime.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698