| OLD | NEW |
| 1 #ifndef _NACL_SYSDEP_H | 1 #ifndef _NACL_SYSDEP_H |
| 2 #define _NACL_SYSDEP_H 1 | 2 #define _NACL_SYSDEP_H 1 |
| 3 | 3 |
| 4 #if !defined(__ASSEMBLER__) | 4 #if !defined(__ASSEMBLER__) |
| 5 #include <futex_emulation.h> | 5 #include <futex_emulation.h> |
| 6 #include <irt_syscalls.h> | 6 #include <irt_syscalls.h> |
| 7 #include <lowlevellock.h> | 7 #include <lowlevellock.h> |
| 8 | 8 |
| 9 /* Implementation of all syscalls for use in platform- and OS- independent code | 9 /* Implementation of all syscalls for use in platform- and OS- independent code |
| 10 as inline functions. Each function translates the syscall arguments into IRT | 10 as inline functions. Each function translates the syscall arguments into IRT |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 __extern_always_inline ssize_t | 966 __extern_always_inline ssize_t |
| 967 INTERNAL_SYSCALL_modify_ldt_3 (int *err, int func, void *ptr, | 967 INTERNAL_SYSCALL_modify_ldt_3 (int *err, int func, void *ptr, |
| 968 unsigned long bytecount) | 968 unsigned long bytecount) |
| 969 { | 969 { |
| 970 *err = (38 /* ENOSYS */); | 970 *err = (38 /* ENOSYS */); |
| 971 return 0; | 971 return 0; |
| 972 } | 972 } |
| 973 | 973 |
| 974 __extern_always_inline int | 974 __extern_always_inline int |
| 975 INTERNAL_SYSCALL_mprotect_3 (int *err, const void *addr, size_t len, int prot) | 975 INTERNAL_SYSCALL_mprotect_3 (int *err, void *addr, size_t len, int prot) |
| 976 { | 976 { |
| 977 *err = (38 /* ENOSYS */); | 977 *err = __nacl_irt_mprotect (addr, len, prot); |
| 978 return 0; | 978 return 0; |
| 979 } | 979 } |
| 980 | 980 |
| 981 #if !defined (_LIBC) || defined(IS_IN_librt) | 981 #if !defined (_LIBC) || defined(IS_IN_librt) |
| 982 __extern_always_inline mqd_t | 982 __extern_always_inline mqd_t |
| 983 INTERNAL_SYSCALL_mq_getsetattr_3 (int *err, mqd_t mqdes, | 983 INTERNAL_SYSCALL_mq_getsetattr_3 (int *err, mqd_t mqdes, |
| 984 struct mq_attr *newattr, | 984 struct mq_attr *newattr, |
| 985 struct mq_attr *oldattr) | 985 struct mq_attr *oldattr) |
| 986 { | 986 { |
| 987 *err = (38 /* ENOSYS */); | 987 *err = (38 /* ENOSYS */); |
| (...skipping 1259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2247 #define PSEUDO_END_ERRVAL(name) \ | 2247 #define PSEUDO_END_ERRVAL(name) \ |
| 2248 END (name) | 2248 END (name) |
| 2249 | 2249 |
| 2250 #undef SYSCALL_ERROR_HANDLER_TLS_STORE | 2250 #undef SYSCALL_ERROR_HANDLER_TLS_STORE |
| 2251 #define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff) \ | 2251 #define SYSCALL_ERROR_HANDLER_TLS_STORE(src, destoff) \ |
| 2252 movl %gs:0, %eax; \ | 2252 movl %gs:0, %eax; \ |
| 2253 movl src, (%eax,destoff) | 2253 movl src, (%eax,destoff) |
| 2254 | 2254 |
| 2255 #endif | 2255 #endif |
| 2256 #endif | 2256 #endif |
| OLD | NEW |