LibC: Define winsize in both termios.h and sys/ioctl.h

This commit is contained in:
2026-07-20 04:07:23 +03:00
parent 2c340c5532
commit 87006e277f
3 changed files with 24 additions and 8 deletions
@@ -0,0 +1,20 @@
#ifndef _BITS_TYPES_WINSIZE_H
#define _BITS_TYPES_WINSIZE_H 1
// https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html
#include <sys/cdefs.h>
__BEGIN_DECLS
struct winsize
{
unsigned short ws_row;
unsigned short ws_col;
unsigned short ws_xpixel; /* unused by kernel */
unsigned short ws_ypixel; /* unused by kernel */
};
__END_DECLS
#endif