Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/lib/libsigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ sigs = {
__syscall_dup__sig: 'ii',
__syscall_dup3__sig: 'iiii',
__syscall_faccessat__sig: 'iipii',
__syscall_fadvise64__sig: 'iijji',
__syscall_fallocate__sig: 'iiijj',
__syscall_fchdir__sig: 'ii',
__syscall_fchmod__sig: 'iii',
Expand Down
3 changes: 0 additions & 3 deletions src/lib/libsyscall.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,6 @@ var SyscallsLibrary = {
SYSCALLS.writeStatFs(buf, FS.statfsStream(stream));
return 0;
},
__syscall_fadvise64__nothrow: true,
__syscall_fadvise64__proxy: 'none',
__syscall_fadvise64: (fd, offset, len, advice) => 0,
__syscall_openat__deps: ['$syscallGetVarargI'],
__syscall_openat: (dirfd, path, flags, varargs) => {
path = SYSCALLS.getStr(path);
Expand Down
5 changes: 5 additions & 0 deletions system/lib/libc/emscripten_syscall_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ weak int __syscall_madvise(intptr_t addr, size_t length, int advice) {
return 0;
}

weak int __syscall_fadvise64(int fd, off_t offset, off_t length, int advice) {
// this is purely advisory, so we don't warn
return 0;
}

weak int __syscall_mlock(intptr_t addr, size_t len) {
REPORT(mlock);
return 0;
Expand Down
1 change: 0 additions & 1 deletion system/lib/pthread/threading_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ void emscripten_conditional_set_current_thread_status(EM_THREAD_STATUS expectedS

int __pthread_kill_js(pthread_t t, int sig);
int __pthread_create_js(pthread_t thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg);
int _emscripten_default_pthread_stack_size();
void __set_thread_state(pthread_t ptr, int is_main, int is_runtime, int can_block);

double _emscripten_receive_on_main_thread_js(int funcIndex, void* emAsmAddr, pthread_t callingThread, int numCallArgs, double* args, void* ctx, void* ctxArgs);
Expand Down
11 changes: 5 additions & 6 deletions test/codesize/test_codesize_hello_dylink_all.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"a.out.js": 268175,
"a.out.nodebug.wasm": 587614,
"total": 855789,
"a.out.js": 268126,
"a.out.nodebug.wasm": 587596,
"total": 855722,
"sent": [
"IMG_Init",
"IMG_Load",
Expand Down Expand Up @@ -223,7 +223,6 @@
"__syscall_dup",
"__syscall_dup3",
"__syscall_faccessat",
"__syscall_fadvise64",
"__syscall_fallocate",
"__syscall_fchdir",
"__syscall_fchmod",
Expand Down Expand Up @@ -1742,7 +1741,6 @@
"env.__syscall_dup",
"env.__syscall_dup3",
"env.__syscall_faccessat",
"env.__syscall_fadvise64",
"env.__syscall_fallocate",
"env.__syscall_fchdir",
"env.__syscall_fchmod",
Expand Down Expand Up @@ -2194,6 +2192,7 @@
"__subvti3",
"__synccall",
"__syscall_acct",
"__syscall_fadvise64",
"__syscall_getegid32",
"__syscall_geteuid32",
"__syscall_getgid32",
Expand Down Expand Up @@ -4075,6 +4074,7 @@
"$__subvti3",
"$__synccall",
"$__syscall_acct",
"$__syscall_fadvise64",
"$__syscall_getgroups32",
"$__syscall_getpid",
"$__syscall_getppid",
Expand Down Expand Up @@ -4906,7 +4906,6 @@
"$pop_arg_long_double",
"$popen",
"$posix_close",
"$posix_fadvise",
"$posix_fallocate",
"$posix_getdents",
"$posix_openpt",
Expand Down
Loading