mailing list of musl libc
 help / color / mirror / code / Atom feed
d37afd9959c15a1aca366de442db39c4715e7e85 blob 340 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include <errno.h>
#include "syscall.h"

// Wasm doesn't have mmap!  There's just a single linear memory block.

long __syscall_madvise(long arg1, ...)
{
  return 0;
}
long __syscall_mmap(long arg1, ...)
{
  return -ENOSYS;
}
long __syscall_mremap(long arg1, ...)
{
  return -ENOSYS;
}
long __syscall_munmap(long arg1, ...)
{
  return 0;
}
debug log:

solving d37afd99 ...
found d37afd99 in https://inbox.vuxu.org/musl/VI1PR0502MB38851CB41BB1DA99B673004EE73A0@VI1PR0502MB3885.eurprd05.prod.outlook.com/

applying [1/1] https://inbox.vuxu.org/musl/VI1PR0502MB38851CB41BB1DA99B673004EE73A0@VI1PR0502MB3885.eurprd05.prod.outlook.com/
diff --git a/src/internal/wasm/syscall_mmap.c b/src/internal/wasm/syscall_mmap.c
new file mode 100644
index 00000000..d37afd99

Checking patch src/internal/wasm/syscall_mmap.c...
Applied patch src/internal/wasm/syscall_mmap.c cleanly.

index at:
100644 d37afd9959c15a1aca366de442db39c4715e7e85	src/internal/wasm/syscall_mmap.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).