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 system/include/emscripten/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ int __syscall_chdir(intptr_t path);
int __syscall_mknod(intptr_t path, int mode, int dev);
int __syscall_chmod(intptr_t path, int mode);
int __syscall_getpid(void);
int __syscall_pause(void);
int __syscall_access(intptr_t path, int amode);
int __syscall_sync(void);
int __syscall_rmdir(intptr_t path);
Expand Down
5 changes: 0 additions & 5 deletions system/lib/libc/emscripten_syscall_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,6 @@ weak int __syscall_getresgid32(intptr_t ruid, intptr_t euid, intptr_t suid) {
return 0;
}

weak int __syscall_pause() {
REPORT(pause);
return -EINTR; // we can't pause
}

weak int __syscall_madvise(intptr_t addr, size_t length, int advice) {
REPORT(madvise);
// advice is welcome, but ignored
Expand Down
1 change: 0 additions & 1 deletion system/lib/libc/musl/arch/emscripten/bits/syscall.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#define SYS_chdir __syscall_chdir
#define SYS_chmod __syscall_chmod
#define SYS_getpid __syscall_getpid
#define SYS_pause __syscall_pause
#define SYS_sync __syscall_sync
#define SYS_rmdir __syscall_rmdir
#define SYS_dup __syscall_dup
Expand Down
6 changes: 6 additions & 0 deletions system/lib/libc/musl/src/internal/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ hidden long __syscall_ret(unsigned long),
#ifdef SYS_pause
#define __sys_pause() __syscall(SYS_pause)
#define __sys_pause_cp() __syscall_cp(SYS_pause)
#elif defined(__EMSCRIPTEN__)
/* Note: When the sigmask argument is NULL, ppoll() differs from poll() only
* in the precision of the timeout argument. For poll -1 means block forever
* as opposed to ppoll which uses NULL/0. */
#define __sys_pause() __syscall(SYS_poll, 0, 0, -1)
#define __sys_pause_cp() __syscall_cp(SYS_poll, 0, 0, -1)
#else
#define __sys_pause() __syscall(SYS_ppoll, 0, 0, 0, 0)
#define __sys_pause_cp() __syscall_cp(SYS_ppoll, 0, 0, 0, 0)
Expand Down
4 changes: 0 additions & 4 deletions system/lib/standalone/standalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,6 @@ weak int __syscall_newfstatat(int dirfd, intptr_t path, intptr_t buf, int flags)
return -ENOSYS;
}

weak int __syscall_pause() {
return -ENOSYS;
}

weak int __syscall_lstat64(intptr_t path, intptr_t buf) {
return -ENOSYS;
}
Expand Down
2 changes: 0 additions & 2 deletions test/codesize/test_codesize_hello_dylink_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2219,7 +2219,6 @@
"__syscall_munlock",
"__syscall_munlockall",
"__syscall_munmap",
"__syscall_pause",
"__syscall_prlimit64",
"__syscall_recvmmsg",
"__syscall_sendmmsg",
Expand Down Expand Up @@ -4089,7 +4088,6 @@
"$__syscall_mremap",
"$__syscall_msync",
"$__syscall_munmap",
"$__syscall_pause",
"$__syscall_prlimit64",
"$__syscall_recvmmsg",
"$__syscall_setdomainname",
Expand Down
2 changes: 1 addition & 1 deletion test/unistd/misc.out
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ link: -1, errno: 34
lockf(good): 0, errno: 0
lockf(bad): -1, errno: 8
nice: -1, errno: 63
pause: -1, errno: 27
pause: 0, errno: 0
pipe(good): 0, errno: 0
pipe(bad): -1, errno: 21
pipe2(good): 0, errno: 0
Expand Down
Loading