Skip to content

Commit 593c068

Browse files
Stub out SYS_sendmmsg syscall
1 parent d58db19 commit 593c068

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/library_syscall.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,6 +1260,12 @@ var SyscallsLibrary = {
12601260
}
12611261
return 0;
12621262
},
1263+
__syscall345: function(which, varargs) { // sendmmsg
1264+
#if SYSCALL_DEBUG
1265+
Module.printErr('warning: ignoring SYS_sendmmsg');
1266+
#endif
1267+
return 0;
1268+
},
12631269
};
12641270

12651271
if (SYSCALL_DEBUG) {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ long __syscall331(int which, ...);
142142
long __syscall333(int which, ...);
143143
long __syscall334(int which, ...);
144144
long __syscall340(int which, ...);
145+
long __syscall345(int which, ...);
145146

146147
#undef SYS_futimesat
147148

system/lib/libc/musl/src/network/sendmmsg.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ int sendmmsg(int fd, struct mmsghdr *msgvec, unsigned int vlen, unsigned int fla
2525
error:
2626
return i ? i : -1;
2727
#else
28-
#ifndef __EMSCRIPTEN__
2928
return syscall_cp(SYS_sendmmsg, fd, msgvec, vlen, flags);
30-
#else
31-
return -1;
32-
#endif
3329
#endif
3430
}

0 commit comments

Comments
 (0)