@@ -1918,19 +1918,20 @@ EMSCRIPTEN_KEEPALIVE off_t wasm_get_end_offset(int fd) {
1918
1918
return eof_offset ;
1919
1919
}
1920
1920
1921
- // TODO: EXPLAIN WHY THIS SHIM FUNCTION
1922
- EM_ASYNC_JS (int , call_js__syscall_fcntl64 , (int fd , int cmd , va_list args ), {
1923
- const result = await _js__syscall_fcntl64 (fd , cmd , args );
1924
- return result ;
1925
- });
1926
-
1927
- int __syscall_fcntl64 (int fd , int cmd , ...) {
1928
- va_list args ;
1929
- va_start (args , cmd );
1930
- wasm_trace ("__syscall_fcntl64: errno before %d" , errno );
1931
- int result = call_js__syscall_fcntl64 (fd , cmd , args );
1932
- wasm_trace ("__syscall_fcntl64: errno after %d" , errno );
1933
- va_end (args );
1934
- wasm_trace ("__syscall_fcntl64: errno after va_end %d" , errno );
1935
- return result ;
1936
- }
1921
+ // TODO: Remove this if it is no longer needed
1922
+ // // TODO: EXPLAIN WHY THIS SHIM FUNCTION
1923
+ // EM_ASYNC_JS(int, call_js__syscall_fcntl64, (int fd, int cmd, va_list args), {
1924
+ // const result = await _js__syscall_fcntl64(fd, cmd, args);
1925
+ // return result;
1926
+ // });
1927
+
1928
+ // int __syscall_fcntl64(int fd, int cmd, ...) {
1929
+ // va_list args;
1930
+ // va_start(args, cmd);
1931
+ // wasm_trace("__syscall_fcntl64: errno before %d", errno);
1932
+ // int result = call_js__syscall_fcntl64(fd, cmd, args);
1933
+ // wasm_trace("__syscall_fcntl64: errno after %d", errno);
1934
+ // va_end(args);
1935
+ // wasm_trace("__syscall_fcntl64: errno after va_end %d", errno);
1936
+ // return result;
1937
+ // }
0 commit comments