On 2025-04-05 05:02, Andrew Schulman via Cygwin-apps wrote:
screen 5.0.0 now includes calls to TIOCCONS, like this:

ioctl(consredirfd[1], TIOCCONS, (char *)&on)

Since TIOCCONS seems not to be present in Cygwin, can someone please suggest
what the equivalent would be?

Documented in Cygwin package man-pages-linux TIOCCONS(2const) for redirecting console output to another terminal or pty slave, and ioctl_tty(2):

        https://man7.org/linux/man-pages/man2/TIOCCONS.2const.html

        https://man7.org/linux/man-pages/man4/tty_ioctl.4.html

which helpfully suggests termios as the POSIX alternative, not really relevant 
here:

        https://man7.org/linux/man-pages/man3/termios.3.html

also man-pages-posix termios.h(0p) and ioctl(3p):

        https://man7.org/linux/man-pages/man0/termios.h.0p.html

        https://man7.org/linux/man-pages/man3/ioctl.3p.html

and:

        https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap11.html

        https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html

as ioctl(3p) has been dropped in SUS V5, Issue 8, 2024, in favour of the new posix_devctl(3p):

        https://cygwin.com/cygwin-api/compatibility.html

        https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/devctl.h.html

https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_devctl.html

for which we do not yet have publicly available POSIX man pages nor any Cygwin interface or definitions (defined only for RTEMS in /usr/include/devctl.h).

--
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                -- Antoine de Saint-Exupéry

Reply via email to