Skip to content

Commit ab6c77d

Browse files
committed
No-op more forms of TCGET/TCSET ioctl syscalls. Closes #6019.
1 parent 4c5a641 commit ab6c77d

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/library_syscall.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,20 @@ var SyscallsLibrary = {
321321
#else
322322
var stream = SYSCALLS.getStreamFromFD(), op = SYSCALLS.get();
323323
switch (op) {
324+
case {{{ cDefine('TCGETA') }}}:
324325
case {{{ cDefine('TCGETS') }}}: {
325326
if (!stream.tty) return -ERRNO_CODES.ENOTTY;
326327
#if SYSCALL_DEBUG
327328
Module.printErr('warning: not filling tio struct');
328329
#endif
329330
return 0;
330331
}
331-
case {{{ cDefine('TCSETS') }}}: {
332+
case {{{ cDefine('TCSETA') }}}:
333+
case {{{ cDefine('TCSETAW') }}}:
334+
case {{{ cDefine('TCSETAF') }}}:
335+
case {{{ cDefine('TCSETS') }}}:
336+
case {{{ cDefine('TCSETSW') }}}:
337+
case {{{ cDefine('TCSETSF') }}}: {
332338
if (!stream.tty) return -ERRNO_CODES.ENOTTY;
333339
return 0; // no-op, not actually adjusting terminal settings
334340
}

0 commit comments

Comments
 (0)