Skip to content

Commit d58db19

Browse files
Stub out SYS_rt_sigqueueinfo syscall
1 parent 43563a5 commit d58db19

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/library_syscall.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,12 @@ var SyscallsLibrary = {
839839
}
840840
return nonzero;
841841
},
842+
__syscall178: function(which, varargs) { // rt_sigqueueinfo
843+
#if SYSCALL_DEBUG
844+
Module.printErr('warning: ignoring SYS_rt_sigqueueinfo');
845+
#endif
846+
return 0;
847+
},
842848
__syscall180: function(which, varargs) { // pread64
843849
var stream = SYSCALLS.getStreamFromFD(), buf = SYSCALLS.get(), count = SYSCALLS.get(), zero = SYSCALLS.getZero(), offset = SYSCALLS.get64();
844850
return FS.read(stream, {{{ heapAndOffset('HEAP8', 'buf') }}}, count, offset);

system/lib/libc/musl/arch/emscripten/syscall_arch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ long __syscall152(int which, ...);
8888
long __syscall153(int which, ...);
8989
long __syscall163(int which, ...);
9090
long __syscall168(int which, ...);
91+
long __syscall178(int which, ...);
9192
long __syscall180(int which, ...);
9293
long __syscall181(int which, ...);
9394
long __syscall183(int which, ...);

system/lib/libc/musl/src/aio/aio.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,7 @@ static void cleanup(void *ctx)
176176
.si_pid = getpid(),
177177
.si_uid = getuid()
178178
};
179-
#ifndef __EMSCRIPTEN__
180179
__syscall(SYS_rt_sigqueueinfo, si.si_pid, si.si_signo, &si);
181-
#endif
182180
}
183181
if (sev.sigev_notify == SIGEV_THREAD) {
184182
a_store(&__pthread_self()->cancel, 0);

system/lib/libc/musl/src/aio/aio_readwrite.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ static void notify_signal(struct sigevent *sev)
2020
.si_pid = __pthread_self()->pid,
2121
.si_uid = getuid()
2222
};
23-
#ifndef __EMSCRIPTEN__
2423
__syscall(SYS_rt_sigqueueinfo, si.si_pid, si.si_signo, &si);
25-
#endif
2624
}
2725

2826
static void *io_thread(void *p)

0 commit comments

Comments
 (0)