1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

terminal-util: remove terminal_vhangup() because apparently unused

This commit is contained in:
Lennart Poettering 2024-07-11 10:54:24 +02:00
parent ac508b1173
commit 1ca3924827
2 changed files with 0 additions and 11 deletions

View File

@ -432,16 +432,6 @@ int terminal_vhangup_fd(int fd) {
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;

View File

@ -133,7 +133,6 @@ int acquire_terminal(const char *name, AcquireTerminalFlags flags, usec_t timeou
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);