This patch is for adding the tcgetwinsize() and tcsetwinsize() functions that are expected to be a part of POSIX.1 issue 8: https://www.austingroupbugs.net/view.php?id=1151#c3856. These functions get/set tty winsize respectively. They are currently available in NetBSD and in musl libc.
If this patch is accepted, then
- please use "soumendraganguly AT gmail DOTCOM" for my email address in the commit;
- I will happily create documentation for tcgetwinsize(), tcsetwinsize()!