Remove support for the TIOCGSIZE ioctl. Systems that use this

rather than TIOCGWINSZ are too old for sudo to build on anyway.
This commit is contained in:
Todd C. Miller
2017-02-26 16:41:25 -07:00
parent 13fcdb4f5f
commit 4b1f0c4176
2 changed files with 0 additions and 15 deletions

View File

@@ -30,14 +30,6 @@
#include "sudo_debug.h"
#include "sudo_util.h"
/* Compatibility with older tty systems. */
#if !defined(TIOCGWINSZ) && defined(TIOCGSIZE)
# define TIOCGWINSZ TIOCGSIZE
# define winsize ttysize
# define ws_col ts_cols
# define ws_row ts_lines
#endif
#ifdef TIOCGWINSZ
static int
get_ttysize_ioctl(int *rowp, int *colp)

View File

@@ -57,13 +57,6 @@
#define TERM_COOKED 0
#define TERM_RAW 1
/* Compatibility with older tty systems. */
#if !defined(TIOCGWINSZ) && defined(TIOCGSIZE)
# define TIOCGWINSZ TIOCGSIZE
# define TIOCSWINSZ TIOCSSIZE
# define winsize ttysize
#endif
/*
* I/O buffer with associated read/write events and a logging action.
* Used to, e.g. pass data from the pty to the user's terminal