mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
LibC: Move duplicated winsize struct definition into ioctl_numbers.h
This commit is contained in:
parent
879bc28e14
commit
1868523e00
3 changed files with 11 additions and 10 deletions
|
@ -215,11 +215,6 @@
|
||||||
#define TCSADRAIN 1
|
#define TCSADRAIN 1
|
||||||
#define TCSAFLUSH 2
|
#define TCSAFLUSH 2
|
||||||
|
|
||||||
struct winsize {
|
|
||||||
unsigned short ws_row;
|
|
||||||
unsigned short ws_col;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef u32 dev_t;
|
typedef u32 dev_t;
|
||||||
typedef u32 ino_t;
|
typedef u32 ino_t;
|
||||||
typedef u16 mode_t;
|
typedef u16 mode_t;
|
||||||
|
|
|
@ -5,11 +5,6 @@
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
struct winsize {
|
|
||||||
unsigned short ws_row;
|
|
||||||
unsigned short ws_col;
|
|
||||||
};
|
|
||||||
|
|
||||||
int ioctl(int fd, unsigned request, ...);
|
int ioctl(int fd, unsigned request, ...);
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <sys/cdefs.h>
|
||||||
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
struct winsize {
|
||||||
|
unsigned short ws_row;
|
||||||
|
unsigned short ws_col;
|
||||||
|
};
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
|
||||||
enum IOCtlNumber {
|
enum IOCtlNumber {
|
||||||
TIOCGPGRP,
|
TIOCGPGRP,
|
||||||
TIOCSPGRP,
|
TIOCSPGRP,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue