return RET_NERRNO(ioctl(fd, TIOCVHANGUP));
}
-int terminal_vhangup(const char *name) {
- _cleanup_close_ int fd = -EBADF;
-
- fd = open_terminal(name, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
- if (fd < 0)
- return fd;
-
- return terminal_vhangup_fd(fd);
-}
-
int vt_disallocate(const char *name) {
const char *e;
int r;
int release_terminal(void);
int terminal_vhangup_fd(int fd);
-int terminal_vhangup(const char *name);
int terminal_set_size_fd(int fd, const char *ident, unsigned rows, unsigned cols);
int proc_cmdline_tty_size(const char *tty, unsigned *ret_rows, unsigned *ret_cols);