OLD | NEW |
1 #ifndef _IRT_SYSCALLS_H | 1 #ifndef _IRT_SYSCALLS_H |
2 #define _IRT_SYSCALLS_H | 2 #define _IRT_SYSCALLS_H |
3 | 3 |
4 #include <sys/types.h> | 4 #include <sys/types.h> |
5 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <fcntl.h> | 6 #include <fcntl.h> |
7 #include <time.h> | 7 #include <time.h> |
8 | 8 |
9 #include <nacl_stat.h> | 9 #include <nacl_stat.h> |
10 | 10 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 extern int (*__nacl_irt_cond_broadcast) (int cond_handle); | 67 extern int (*__nacl_irt_cond_broadcast) (int cond_handle); |
68 extern int (*__nacl_irt_cond_wait) (int cond_handle, int mutex_handle); | 68 extern int (*__nacl_irt_cond_wait) (int cond_handle, int mutex_handle); |
69 extern int (*__nacl_irt_cond_timed_wait_abs) (int cond_handle, int mutex_handle, | 69 extern int (*__nacl_irt_cond_timed_wait_abs) (int cond_handle, int mutex_handle, |
70 const struct timespec *abstime); | 70 const struct timespec *abstime); |
71 | 71 |
72 extern int (*__nacl_irt_tls_init) (void *tdb); | 72 extern int (*__nacl_irt_tls_init) (void *tdb); |
73 extern void *(*__nacl_irt_tls_get) (void); | 73 extern void *(*__nacl_irt_tls_get) (void); |
74 | 74 |
75 extern int (*__nacl_irt_open_resource) (const char* file, int *fd); | 75 extern int (*__nacl_irt_open_resource) (const char* file, int *fd); |
76 | 76 |
| 77 extern int (*__nacl_irt_clock_getres) (clockid_t clk_id, struct timespec *res); |
| 78 extern int (*__nacl_irt_clock_gettime) (clockid_t clk_id, struct timespec *tp); |
| 79 |
77 #ifdef _LIBC | 80 #ifdef _LIBC |
78 void init_irt_table (void) attribute_hidden; | 81 void init_irt_table (void) attribute_hidden; |
79 #endif | 82 #endif |
80 #endif | 83 #endif |
81 | 84 |
82 #if defined(_LIBC) || defined (__need_emulated_syscalls) | 85 #if defined(_LIBC) || defined (__need_emulated_syscalls) |
83 #ifndef _IRT_EMULATED_SYSCALLS_H | 86 #ifndef _IRT_EMULATED_SYSCALLS_H |
84 #define _IRT_EMULATED_SYSCALLS_H 1 | 87 #define _IRT_EMULATED_SYSCALLS_H 1 |
85 | 88 |
86 #ifndef _LINUX_TYPES_H | 89 #ifndef _LINUX_TYPES_H |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 struct robust_list_head | 133 struct robust_list_head |
131 { | 134 { |
132 void *list; | 135 void *list; |
133 long int futex_offset; | 136 long int futex_offset; |
134 void *list_op_pending; | 137 void *list_op_pending; |
135 }; | 138 }; |
136 #endif | 139 #endif |
137 | 140 |
138 #endif | 141 #endif |
139 #endif | 142 #endif |
OLD | NEW |