mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
LibC: Move duplicated winsize struct definition into ioctl_numbers.h
This commit is contained in:
parent
879bc28e14
commit
1868523e00
Notes:
sideshowbarker
2024-07-19 12:37:56 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/1868523e007 Pull-request: https://github.com/SerenityOS/serenity/pull/463
3 changed files with 11 additions and 10 deletions
|
@ -215,11 +215,6 @@
|
|||
#define TCSADRAIN 1
|
||||
#define TCSAFLUSH 2
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
};
|
||||
|
||||
typedef u32 dev_t;
|
||||
typedef u32 ino_t;
|
||||
typedef u16 mode_t;
|
||||
|
|
|
@ -5,11 +5,6 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
};
|
||||
|
||||
int ioctl(int fd, unsigned request, ...);
|
||||
|
||||
__END_DECLS
|
||||
|
|
|
@ -1,5 +1,16 @@
|
|||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct winsize {
|
||||
unsigned short ws_row;
|
||||
unsigned short ws_col;
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
|
||||
enum IOCtlNumber {
|
||||
TIOCGPGRP,
|
||||
TIOCSPGRP,
|
||||
|
|
Loading…
Add table
Reference in a new issue