1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

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
3 changed files with 11 additions and 10 deletions

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,