mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibC: Make sure that ioctl() requests are #defined as macros
This fixes terminal UI resizing in the vim port. The problem was that vim had "#ifdef TIOCGWINSZ" around the code that figures out the size of the terminal. Since all of our ioctl() requests were enum values, this code was not compiled into vim at all. This patch fixes that. :^)
This commit is contained in:
parent
3c2fbc825c
commit
a586a84450
1 changed files with 22 additions and 0 deletions
|
@ -66,3 +66,25 @@ enum IOCtlNumber {
|
|||
SIOCADDRT,
|
||||
SIOCDELRT
|
||||
};
|
||||
|
||||
#define TIOCGPGRP TIOCGPGRP
|
||||
#define TIOCSPGRP TIOCSPGRP
|
||||
#define TCGETS TCGETS
|
||||
#define TCSETS TCSETS
|
||||
#define TCSETSW TCSETSW
|
||||
#define TCSETSF TCSETSF
|
||||
#define TIOCGWINSZ TIOCGWINSZ
|
||||
#define TIOCSCTTY TIOCSCTTY
|
||||
#define TIOCNOTTY TIOCNOTTY
|
||||
#define TIOCSWINSZ TIOCSWINSZ
|
||||
#define FB_IOCTL_GET_SIZE_IN_BYTES FB_IOCTL_GET_SIZE_IN_BYTES
|
||||
#define FB_IOCTL_GET_RESOLUTION FB_IOCTL_GET_RESOLUTION
|
||||
#define FB_IOCTL_SET_RESOLUTION FB_IOCTL_SET_RESOLUTION
|
||||
#define FB_IOCTL_GET_BUFFER FB_IOCTL_GET_BUFFER
|
||||
#define FB_IOCTL_SET_BUFFER FB_IOCTL_SET_BUFFER
|
||||
#define SIOCSIFADDR SIOCSIFADDR
|
||||
#define SIOCGIFADDR SIOCGIFADDR
|
||||
#define SIOCGIFHWADDR SIOCGIFHWADDR
|
||||
#define SIOCSIFNETMASK SIOCSIFNETMASK
|
||||
#define SIOCADDRT SIOCADDRT
|
||||
#define SIOCDELRT SIOCDELRT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue