bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

termios: Define struct winsize on all platforms.


From: Collin Funk
Subject: termios: Define struct winsize on all platforms.
Date: Mon, 12 Aug 2024 20:17:08 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi,

A prerequisite of implementing tcgetwinsize and tcsetwinsize as
specified by POSIX 2024 is defining struct winsize on all platforms in
termios.h.

This patch defines the struct on Windows where it is missing and checks
if it is defined in sys/ioctl.h like glibc. POSIX 2024 states that it
should be defined in termios.h so I reported a glibc bug here [1].

I haven't tested other platforms yet but hopefully it should all be
handled in termios.h there or through a single #include like glibc.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=32074

Attachment: 0001-termios-Define-struct-winsize-on-all-platforms.patch
Description: Text Data

Attachment: 0002-termios-tests-Check-for-struct-winsize.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]