add tcgetwinsize and tcsetwinsize functions, move struct winsize
commit4d5786544bb52c62fc1ae84d91684ef2268afa05
authorRich Felker <dalias@aerifal.cx>
Mon, 24 Aug 2020 16:29:30 +0000 (24 12:29 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 25 Aug 2020 01:31:18 +0000 (24 21:31 -0400)
tree4d511ec96569212a52676dc363091f3cf4a76821
parent9d4b25b4738dbabf628055601d96ba0609c2b4a8
add tcgetwinsize and tcsetwinsize functions, move struct winsize

these have been adopted for future issue of POSIX as the outcome of
Austin Group issue 1151, and are simply functions performing the roles
of the historical ioctls. since struct winsize is being standardized
along with them, its definition is moved to the appropriate header.

there is some chance this will break source files that expect struct
winsize to be defined by sys/ioctl.h without including termios.h. if
this happens, further changes will be needed to have sys/ioctl.h
expose it too.
include/sys/ioctl.h
include/termios.h
src/stdio/__fdopen.c
src/stdio/__stdout_write.c
src/termios/tcgetwinsize.c [new file with mode: 0644]
src/termios/tcsetwinsize.c [new file with mode: 0644]
src/unistd/isatty.c