Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
ioctl needs termios2
Browse files Browse the repository at this point in the history
termios2 has different NCCS than termios's termios.
just stick termios2 in ioctl I guess
  • Loading branch information
ariovistus committed Nov 29, 2013
1 parent bd6f2cd commit 596d089
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/core/sys/posix/sys/ioctl.d
Expand Up @@ -24,7 +24,7 @@ nothrow:

version (linux)
{
import core.sys.posix.termios; // termios2
import core.sys.posix.termios; // tcflag_t, speed_t, cc_t

enum _IOC_NRBITS = 8;
enum _IOC_TYPEBITS = 8;
Expand Down Expand Up @@ -99,6 +99,20 @@ version (linux)
enum IOCSIZE_MASK = _IOC_SIZEMASK << _IOC_DIRSHIFT;
enum IOCSIZE_SHIFT = _IOC_SIZESHIFT;

enum NCCS = 19;

struct termios2
{
tcflag_t c_iflag;
tcflag_t c_oflag;
tcflag_t c_cflag;
tcflag_t c_lflag;
cc_t c_line;
cc_t[NCCS] c_cc;
speed_t c_ispeed;
speed_t c_ospeed;
}

struct winsize
{
ushort ws_row;
Expand Down

0 comments on commit 596d089

Please sign in to comment.