LibC: Move duplicated winsize struct definition into ioctl_numbers.h

This commit is contained in:
Conrad Pankoff 2019-08-18 12:22:49 +10:00 committed by Andreas Kling
parent 879bc28e14
commit 1868523e00
Notes: sideshowbarker 2024-07-19 12:37:56 +09:00
3 changed files with 11 additions and 10 deletions

View file

@ -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;

View file

@ -5,11 +5,6 @@
__BEGIN_DECLS
struct winsize {
unsigned short ws_row;
unsigned short ws_col;
};
int ioctl(int fd, unsigned request, ...);
__END_DECLS

View file

@ -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,