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:
@@ -30,14 +30,6 @@
|
|||||||
#include "sudo_debug.h"
|
#include "sudo_debug.h"
|
||||||
#include "sudo_util.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
|
#ifdef TIOCGWINSZ
|
||||||
static int
|
static int
|
||||||
get_ttysize_ioctl(int *rowp, int *colp)
|
get_ttysize_ioctl(int *rowp, int *colp)
|
||||||
|
@@ -57,13 +57,6 @@
|
|||||||
#define TERM_COOKED 0
|
#define TERM_COOKED 0
|
||||||
#define TERM_RAW 1
|
#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.
|
* 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
|
* Used to, e.g. pass data from the pty to the user's terminal
|
||||||
|
Reference in New Issue
Block a user