Commit Graph

56 Commits

Author SHA1 Message Date
882a77ccf9 Remove null pointer checks generally, re-add them in Emscripten 2019-09-20 12:02:12 -07:00
3f0dae3329 Fix compilation on AArch64 Linux. 2019-08-20 16:37:32 -07:00
680b833e94 Move emscripten ___syscall221 to the unix implementation 2019-07-07 23:36:50 -07:00
72a80a6122 FIxed emscripten windows issues 2019-07-07 22:50:50 -07:00
f4e60c09c1 Squashed commit of the following:
commit 62d9da4e3e02251a0f61c904e826bc06cf964ff7
Author: Syrus <me@syrusakbary.com>
Date:   Sun Jul 7 18:16:34 2019 -0700

    Fixed syscall221

commit a8fde9148d50d89616d8a85a68110b89e3273229
Author: Syrus <me@syrusakbary.com>
Date:   Sun Jul 7 18:16:04 2019 -0700

    Improved ioctl use case

commit 5ad109d39838624ad84232a4c17714b885835893
Merge: 61526e2c 5cab8161
Author: Syrus <me@syrusakbary.com>
Date:   Sun Jul 7 17:44:25 2019 -0700

    Merge branch 'command/dash' into feature/emscripten-update

commit 5cab816193
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 20:11:49 2019 +0200

    Generic IOCTLs mapping

commit 5a0dc0374c
Merge: 61cfed79 9d120ed3
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 17:15:02 2019 +0200

    Merge remote-tracking branch 'origin/master' into command/dash

commit 61cfed7916
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 13:04:04 2019 +0200

    Fixed implementation for syscalls 200, 201 and 202

commit 91e26d1a0e
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 13:03:26 2019 +0200

    Improved debug messages

commit 53a8fbeb2a
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 13:03:04 2019 +0200

    [___syscall146] Move loop out of `unsafe` zone

commit d6dd3696f1
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 13:01:31 2019 +0200

    [___syscall140] Fixed types

commit c827a6a993
Merge: 2bc16826 5e18d04d
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Sat Jul 6 12:21:33 2019 +0200

    Merge remote-tracking branch 'origin/master' into command/dash

commit 2bc16826b5
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Thu Jul 4 07:05:00 2019 +0200

    Implement `getpgid` syscall

commit d464954f58
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Thu Jul 4 07:04:36 2019 +0200

    [fcntl64] Replace mock for real implementation

commit 3fe0183d85
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Thu Jul 4 07:03:39 2019 +0200

    [ioctl] No-of for `TIOCSPGRP` command & code clean-up

commit cc83ec9ac1
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Thu Jul 4 07:02:47 2019 +0200

    [___syscall5] debug messages

commit 91587c8bde
Author: Jesús Leganés-Combarro 'piranna <piranna@gmail.com>
Date:   Thu Jul 4 07:02:20 2019 +0200

    [___syscall57] debug messages
2019-07-07 19:35:09 -07:00
a4171892ea move unix code to unix only location 2019-07-01 16:50:55 -07:00
623bec001f improve networking in emscripten 2019-07-01 16:36:30 -07:00
6cc41f82c8 Fixed lseek error in Windows 2019-06-27 12:42:27 -07:00
6aec631774 Improved lseek assignment 2019-06-27 12:37:29 -07:00
73367ef6e9 Fixed cast alignment issue 2019-06-27 11:31:08 -07:00
10eab1ca68 Improved code 2019-06-27 11:21:03 -07:00
47e38f0b2a Fixed formatting 2019-06-27 11:18:49 -07:00
dda438ebd1 Fixed lseek 2019-06-27 11:14:38 -07:00
7ebb90527c Fixes remaining clippy issues 2019-06-13 21:23:41 +02:00
1560849e40 Fix lint errors and windows build 2019-06-13 20:46:05 +02:00
8829e1d901 Make Python running 🎉 2019-06-13 14:05:57 +02:00
f12d6f8dd2 Merge branch 'command/pyodide' of github.com:wasmerio/wasmer into command/pyodide 2019-06-12 23:26:02 +02:00
cc740040d2 Merge branch 'master' into command/pyodide 2019-06-12 22:52:05 +02:00
0b416e14c3 Improved syscall220 debug 2019-06-11 17:38:16 +02:00
b36783fc50 remove duplicated code, wrap WasmPtr on wasi side 2019-06-11 11:10:42 +02:00
ff21d9e95f Merge branch 'master' into command/pyodide 2019-06-08 19:48:25 +02:00
98e04193af Merge branch 'master' into feature/better-memory-access-for-emscripten 2019-06-06 18:03:55 -07:00
d7ea46bab7 add wasmptr memory abstraction to emscripten; update wasi array access 2019-06-06 15:45:19 -07:00
6f633cee6f fix pointer casting lint in emscripten syscall191 2019-06-06 12:07:19 -07:00
8df63b1b6e fix bugs in emscripten socket syscalls 2019-06-06 11:55:05 -07:00
222b582207 Merge remote-tracking branch 'origin/master' into command/pyodide 2019-06-02 14:10:25 +02:00
281c5ff45d fix bugs in em mapdir, improve it for relative paths, use it more 2019-05-29 14:20:52 -07:00
f8b94b7469 Merge remote-tracking branch 'origin/master' into feature/add-mapdir-for-emscripten 2019-05-28 13:48:12 -07:00
b78a8af228 Added missing functions for pyodide
Since Pyodide is focused on running on desktop, this pull-request lacks
Javascript runtime functions. It also sorted alphabetically some functions
2019-05-28 09:39:49 +02:00
fc15bc58f6 add mapdir for emscripten; implement getdents, etc. 2019-05-24 18:00:07 -07:00
dd30595358 Trying to fix issues 2019-05-24 13:30:41 -07:00
c7dceba0d8 Improved formatting 2019-05-24 12:09:00 -07:00
8f345dc284 Updated imports required for jq. Added get_str method in VarArgs 2019-05-18 12:38:22 -07:00
e40b4a2c39 fix debug code 2019-05-06 14:58:44 -07:00
91d01d1c05 clean up warnings 2019-05-06 14:17:23 -07:00
341766dee5 Fixed format 2019-05-05 12:09:55 -07:00
2ba680ad2f Improved rename function 2019-05-05 12:09:27 -07:00
10a965cc1e Added few syscalls to run optipng 2019-05-05 11:24:57 -07:00
353ff60c0f add misc changes while debugging 2019-05-03 17:34:57 -07:00
9af1206b62 changes to make PHP run better 2019-04-05 12:06:30 -07:00
49db149224 fix arg passing to getcwd syscall 2019-03-26 14:37:47 -07:00
d2818b1ffa fix alignment check on pointer 2019-03-26 09:56:23 -07:00
abafbbdbb2 fix pointer casting lint 2019-03-25 16:25:39 -07:00
93432bdb12 Make reading database files work too! 2019-03-25 16:13:41 -07:00
20d1023abe fix(emscripten) Various warning fixes and cleanups (#266)
* fix(emscripten) Remove unused imports.

This patch removes unused imports reported by `rustc` as warnings.

* fix(emscripten) Allow unreachable patterns in `_clock_gettime`.

The compiler thinks `CLOCK_MONOTONIC_COARSE` is unreachable, which is
not always the case. Add an attribute to allow unreachable patterns to
remove the warning.

* fix(emscripten) Rename unused variables.

This patch renames various unused variables by appending an underscore
to them.

* fix(emscripten) Declare `table` as immutable.

The `table` variable in `EmscriptenGlobals::new` was declared as
mutable, but it's never mutated.

* fix(emscripten) Remove an unnecessary `unsafe` block.

* fix(emscripten) Remove duplicate definition of `SO_NOSIGPIPE`.

The `SO_NOSIGPIPE` constant is defined in `syscalls/mod.rs` and
`syscalls/unix.rs`. It's never used in the first case. We can safely
remove it in this file, and keep it in `unix.rs`.

* fix(emscripten) `read_string_from_wasm` is used only on Windows.

Mark `read_string_from_wasm` as possible deadcode, since it's used
only on Windows.

* fix(emscripten) Remove `DYNAMICTOP_PTR_DIFF`, `stacktop`, `stack_max`,
`dynamic_base` and `dynamic_ptr`.

Four functions and one constant are used together but never used
inside or outside this file. They are deadcode.

* fix(emscripten) Remove `infinity` and `nan` fields of `EmscriptenGlobalsData`.

Those fields are never used.

* fix(emscripten) Allow non snake case in `emscripten_target.rs`.

Many functions in this file don't follow the snake case style for Rust
function names. The reason is that we want the names to match the
emscripten symbol names; even if a mapping is done in `lib.rs`, it's
easier to get the same names.

* fix(emscripten) Rename `STATIC_TOP` to `static_top`.

This variable is not a constant.
2019-03-12 14:00:33 -07:00
2ea9d0b09b add __syscall42 (pipe) 2019-03-04 08:10:37 -08:00
ff5e1320da Fix casting errors cause io issues (#222) 2019-02-27 13:54:28 -08:00
7fb7529b48 cargo fmt 2019-02-22 15:16:07 -08:00
966be3ee8f right to the out buffer that was passed in syscall183 2019-02-22 14:54:01 -08:00
0f9369c67d cargo fmt and better error message 2019-02-22 12:39:19 -08:00