a15ec5eac4
missing include asm/ioctls.h with error 'TCGETS2' undeclared The gcc warning "overflow in conversion from 'long unsigned int' to 'int' changes value from '2150388778' to '-2144578518' " can be surrpres wtith a musl patch https://gist.github.com/stargieg/3dbfe94b5776d9dfb3e14d18ee43aade from the musl mailing list with discussion on this bug, but no solution. [PATCH] ioctl: Fix implicit constant conversion overflow https://www.openwall.com/lists/musl/2024/06/01/1
This is a port to Linux for testing. The unit tests can be run via the test.sh script.