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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « sysdeps/nacl/clock_settime.c ('k') | sysdeps/nacl/irt_syscalls.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ 6 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_
7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_ 7 #define NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H_
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <sys/types.h> 10 #include <sys/types.h>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 struct nacl_irt_ppapihook { 141 struct nacl_irt_ppapihook {
142 int (*ppapi_start)(const struct PP_StartFunctions *); 142 int (*ppapi_start)(const struct PP_StartFunctions *);
143 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *); 143 void (*ppapi_register_thread_creator)(const struct PP_ThreadFunctions *);
144 }; 144 };
145 145
146 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1" 146 #define NACL_IRT_RESOURCE_OPEN_v0_1 "nacl-irt-resource-open-0.1"
147 struct nacl_irt_resource_open { 147 struct nacl_irt_resource_open {
148 int (*open_resource)(const char *file, int *fd); 148 int (*open_resource)(const char *file, int *fd);
149 }; 149 };
150 150
151 #define NACL_IRT_CLOCK_v0_1 "nacl-irt-clock_get-0.1"
152 struct nacl_irt_clock {
153 int (*getres)(clockid_t clk_id, struct timespec *res);
154 int (*gettime)(clockid_t clk_id, struct timespec *tp);
155 };
156
151 #if __cplusplus 157 #if __cplusplus
152 } 158 }
153 #endif 159 #endif
154 160
155 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */ 161 #endif /* NATIVE_CLIENT_SRC_UNTRUSTED_IRT_IRT_H */
OLDNEW
« 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