Skip to content

Commit 028e59b

Browse files
kempniukhuey
authored andcommitted
Support TCSETSW2 and TCSETSF2
1 parent 7f3bb73 commit 028e59b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/record_syscall.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,6 +1984,8 @@ static Switchable prepare_ioctl(RecordTask* t,
19841984
case IOCTL_MASK_SIZE(TUNSETVNETLE):
19851985
case IOCTL_MASK_SIZE(TUNSETVNETBE):
19861986
case IOCTL_MASK_SIZE(TCSETS2):
1987+
case IOCTL_MASK_SIZE(TCSETSW2):
1988+
case IOCTL_MASK_SIZE(TCSETSF2):
19871989
return PREVENT_SWITCH;
19881990
case IOCTL_MASK_SIZE(USBDEVFS_GETDRIVER):
19891991
// Reads and writes its parameter despite not having the _IOC_READ bit.

src/test/ioctl_tty.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ int main(void) {
132132
tc2->c_iflag, tc2->c_oflag, tc2->c_cflag, tc2->c_lflag,
133133
tc2->c_ispeed, tc2->c_ospeed);
134134
test_assert(0 == ioctl(fd, TCSETS2, tc2));
135+
test_assert(0 == ioctl(fd, TCSETSW2, tc2));
136+
test_assert(0 == ioctl(fd, TCSETSF2, tc2));
135137

136138
// NB: leaving the TCSETS2 as the last word seems to mess up the terminal,
137139
// so fix it.

0 commit comments

Comments
 (0)