LibC: Further stub out tcflow()

POSIX says we can set errno EINVAL and return -1 if the action is not
supported. This is better than crashing, and fixes bash crashing
whenever you press ^C.
This commit is contained in:
Tyler Lanphear 2020-12-24 22:24:55 -05:00 committed by Andreas Kling
parent 09129782de
commit aed5ec9314
Notes: sideshowbarker 2024-07-19 00:37:10 +09:00

View file

@ -53,7 +53,8 @@ int tcsetattr(int fd, int optional_actions, const struct termios* t)
int tcflow([[maybe_unused]] int fd, [[maybe_unused]] int action)
{
ASSERT_NOT_REACHED();
errno = EINVAL;
return -1;
}
int tcflush(int fd, int queue_selector)