mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
feat(userspace/libc): define TIOC*WINSZ constants in <sys/ioctl.h>
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
parent
cc81facf50
commit
67692f2cef
@ -18,7 +18,65 @@
|
|||||||
#ifndef _SYS_IOCTL_H
|
#ifndef _SYS_IOCTL_H
|
||||||
#define _SYS_IOCTL_H
|
#define _SYS_IOCTL_H
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <termios.h>
|
||||||
|
|
||||||
|
#define __SID ('S' << 8)
|
||||||
|
|
||||||
|
#define I_NREAD (__SID | 1)
|
||||||
|
#define I_PUSH (__SID | 2)
|
||||||
|
#define I_POP (__SID | 3)
|
||||||
|
#define I_LOOK (__SID | 4)
|
||||||
|
#define I_FLUSH (__SID | 5)
|
||||||
|
#define I_SRDOPT (__SID | 6)
|
||||||
|
#define I_GRDOPT (__SID | 7)
|
||||||
|
#define I_STR (__SID | 8)
|
||||||
|
#define I_SETSIG (__SID | 9)
|
||||||
|
#define I_GETSIG (__SID | 10)
|
||||||
|
#define I_FIND (__SID | 11)
|
||||||
|
#define I_LINK (__SID | 12)
|
||||||
|
#define I_UNLINK (__SID | 13)
|
||||||
|
#define I_PEEK (__SID | 15)
|
||||||
|
#define I_FDINSERT (__SID | 16)
|
||||||
|
#define I_SENDFD (__SID | 17)
|
||||||
|
#define I_RECVFD (__SID | 14)
|
||||||
|
#define I_SWROPT (__SID | 19)
|
||||||
|
#define I_GWROPT (__SID | 20)
|
||||||
|
#define I_LIST (__SID | 21)
|
||||||
|
#define I_PLINK (__SID | 22)
|
||||||
|
#define I_PUNLINK (__SID | 23)
|
||||||
|
#define I_FLUSHBAND (__SID | 28)
|
||||||
|
#define I_CKBAND (__SID | 29)
|
||||||
|
#define I_GETBAND (__SID | 30)
|
||||||
|
#define I_ATMARK (__SID | 31)
|
||||||
|
#define I_SETCLTIME (__SID | 32)
|
||||||
|
#define I_GETCLTIME (__SID | 33)
|
||||||
|
#define I_CANPUT (__SID | 34)
|
||||||
|
|
||||||
|
#define TCGETS 0x5401
|
||||||
|
#define TCSETS 0x5402
|
||||||
|
#define TCSETSW 0x5403
|
||||||
|
#define TCSETSF 0x5404
|
||||||
|
#define TCGETA 0x5405
|
||||||
|
#define TCSETA 0x5406
|
||||||
|
#define TCSETAW 0x5407
|
||||||
|
#define TCSETAF 0x5408
|
||||||
|
#define TCSBRK 0x5409
|
||||||
|
#define TCXONC 0x540A
|
||||||
|
#define TCFLSH 0x540B
|
||||||
|
#define TIOCEXCL 0x540C
|
||||||
|
#define TIOCNXCL 0x540D
|
||||||
|
#define TIOCSCTTY 0x540E
|
||||||
|
#define TIOCGPGRP 0x540F
|
||||||
|
#define TIOCSPGRP 0x5410
|
||||||
|
#define TIOCOUTQ 0x5411
|
||||||
|
#define TIOCSTI 0x5412
|
||||||
|
#define TIOCGWINSZ 0x5413
|
||||||
|
#define TIOCSWINSZ 0x5414
|
||||||
|
#define TIOCMGET 0x5415
|
||||||
|
#define TIOCMBIS 0x5416
|
||||||
|
#define TIOCMBIC 0x5417
|
||||||
|
#define TIOCMSET 0x5418
|
||||||
|
#define TIOCGSID 0x5429
|
||||||
|
|
||||||
int ioctl(int fd, unsigned long op, ...);
|
int ioctl(int fd, unsigned long op, ...);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#ifndef _TERMIOS_H
|
#ifndef _TERMIOS_H
|
||||||
#define _TERMIOS_H
|
#define _TERMIOS_H
|
||||||
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
typedef unsigned char cc_t;
|
typedef unsigned char cc_t;
|
||||||
typedef unsigned int speed_t;
|
typedef unsigned int speed_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user