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

Unified Diff: sysdeps/nacl/irt.h

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_settime.c ('k') | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/nacl/irt.h
diff --git a/sysdeps/nacl/irt.h b/sysdeps/nacl/irt.h
index 4012d133a6ccc0dd9b5f9981f4fa799550a77a67..c363d032da8aafaf02b7466ee4e52ce466419dea 100644
--- a/sysdeps/nacl/irt.h
+++ b/sysdeps/nacl/irt.h
@@ -148,6 +148,12 @@ struct nacl_irt_resource_open {
int (*open_resource)(const char *file, int *fd);
};
+#define NACL_IRT_CLOCK_v0_1 "nacl-irt-clock_get-0.1"
+struct nacl_irt_clock {
+ int (*getres)(clockid_t clk_id, struct timespec *res);
+ int (*gettime)(clockid_t clk_id, struct timespec *tp);
+};
+
#if __cplusplus
}
#endif
« no previous file with comments | « sysdeps/nacl/clock_settime.c ('k') | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698