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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #endif | 77 #endif |
| 78 |
| 79 #if defined(_LIBC) || defined (__need_emulated_syscalls) |
| 80 #ifndef _IRT_EMULATED_SYSCALLS_H |
| 81 #define _IRT_EMULATED_SYSCALLS_H 1 |
| 82 |
| 83 #ifndef _LINUX_TYPES_H |
| 84 #define ustat __kernel_ustat |
| 85 #include <linux/sysctl.h> |
| 86 #undef ustat |
| 87 #ifdef _LIBC |
| 88 #include <misc/sys/ustat.h> |
| 89 #else |
| 90 #include <sys/ustat.h> |
| 91 #endif |
| 92 #endif |
| 93 #ifndef _LIBC |
| 94 #include <mqueue.h> |
| 95 #endif |
| 96 |
| 97 #include <linux/getcpu.h> |
| 98 #include <linux/posix_types.h> |
| 99 #include <sys/poll.h> |
| 100 #include <sched.h> |
| 101 #include <signal.h> |
| 102 #include <streams/stropts.h> |
| 103 #include <sys/epoll.h> |
| 104 #include <sys/ptrace.h> |
| 105 #include <sys/times.h> |
| 106 #include <sys/types.h> |
| 107 #include <sys/wait.h> |
| 108 #include <time.h> |
| 109 #include <utime.h> |
| 110 |
| 111 #ifdef _LIBC |
| 112 struct robust_list_head; |
| 113 #else |
| 114 struct robust_list_head |
| 115 { |
| 116 void *list; |
| 117 long int futex_offset; |
| 118 void *list_op_pending; |
| 119 }; |
| 120 #endif |
| 121 |
| 122 #endif |
| 123 #endif |
OLD | NEW |