@@ -257,17 +257,16 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
257
257
#define __sys_open_cp2 (x ,pn ,fl ) __syscall_cp3(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE)
258
258
#define __sys_open_cp3 (x ,pn ,fl ,mo ) __syscall_cp4(SYS_openat, AT_FDCWD, pn, (fl)|O_LARGEFILE, mo)
259
259
#endif
260
+ #else // __EMSCRIPTEN__
261
+ #define __sys_open2 (x ,pn ,fl ) __SYSCALL_CONCAT(__syscall, SYS_open)(SYS_open, __scc(pn), __scc((fl)|O_LARGEFILE))
262
+ #define __sys_open3 (x ,pn ,fl ,mo ) __SYSCALL_CONCAT(__syscall, SYS_open)(SYS_open, __scc(pn), __scc((fl)|O_LARGEFILE), __scc(mo))
263
+ #define __sys_open_cp2 (x ,pn ,fl ) __SYSCALL_CONCAT(__syscall, SYS_open)(SYS_open, __scc(pn), __scc((fl)|O_LARGEFILE))
264
+ #define __sys_open_cp3 (x ,pn ,fl ,mo ) __SYSCALL_CONCAT(__syscall, SYS_open)(SYS_open, __scc(pn), __scc((fl)|O_LARGEFILE), __scc(mo))
265
+ #endif
260
266
#define __sys_open (...) __SYSCALL_DISP(__sys_open,,__VA_ARGS__)
261
267
#define sys_open (...) __syscall_ret(__sys_open(__VA_ARGS__))
262
268
263
269
#define __sys_open_cp (...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__)
264
270
#define sys_open_cp (...) __syscall_ret(__sys_open_cp(__VA_ARGS__))
265
- #else // __EMSCRIPTEN__
266
- #define __sys_open (...) __syscall(SYS_open, __VA_ARGS__)
267
- #define sys_open (...) syscall(SYS_open, __VA_ARGS__)
268
-
269
- #define __sys_open_cp (...) __syscall_cp(SYS_open, __VA_ARGS__)
270
- #define sys_open_cp (...) syscall_cp(SYS_open, __VA_ARGS__)
271
- #endif // __EMSCRIPTEN__
272
271
273
272
#endif
0 commit comments