* fhandler.h (fhandler_termios::tcinit): Make second argument non-optional.
* fhandler_console.cc (fhandler_console::open): Specify second argument to tcinit. * fhandler_termios.cc (fhandler_termios::tcinit): Rename second argument. Set pgid to 0 if this is a pty master. (fhandler_termios::tcgetpgrp): Just return value of pgid. It will be zero if not initialized. * fhandler_tty.cc (fhandler_tty_slave::open): Specify second argument to tcinit. (fhandler_tty_slave::ioctl): Implement TIOCGPRP/TIOCSPGRP. Fix switch indentation. (fhandler_tty_master::ioctl): Implement TIOCGPRP/TIOCSPGRP. * include/sys/termios.h (TIOCGPGRP): Define similarly to Linux. * include/sys/termios.h (TIOCSPGRP): Ditto.
This commit is contained in:
@ -348,5 +348,7 @@ struct winsize
|
||||
#define TIOCGWINSZ (('T' << 8) | 1)
|
||||
#define TIOCSWINSZ (('T' << 8) | 2)
|
||||
#define TIOCLINUX (('T' << 8) | 3)
|
||||
#define TIOCGPGRP (('T' << 8) | 0xf)
|
||||
#define TIOCSPGRP (('T' << 8) | 0x10)
|
||||
|
||||
#endif /* _SYS_TERMIOS_H */
|
||||
|
Reference in New Issue
Block a user