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

Commit

Permalink
change termios structures to match glibc headers
Browse files Browse the repository at this point in the history
removed termios2, termio, winsize. these seem to be kernel-level structures.
also, the termios expected by cfsetospeed, et al should have c_ispeed and
 c_ospeed.
  • Loading branch information
Ellery Newcomer committed Nov 28, 2013
1 parent 180bb86 commit 45b7186
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/core/sys/posix/termios.d
Expand Up @@ -138,16 +138,6 @@ version( linux )
enum NCCS = 32;

struct termios
{
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;
}

struct termios2
{
tcflag_t c_iflag;
tcflag_t c_oflag;
Expand All @@ -159,26 +149,6 @@ version( linux )
speed_t c_ospeed;
}

struct winsize
{
ushort ws_row;
ushort ws_col;
ushort ws_xpixel;
ushort ws_ypixel;
}

enum NCC = 8;

struct termio
{
ushort c_iflag;
ushort c_oflag;
ushort c_cflag;
ushort c_lflag;
ubyte c_line;
ubyte[NCC] c_cc;
}

enum VEOF = 4;
enum VEOL = 11;
enum VERASE = 2;
Expand Down

0 comments on commit 45b7186

Please sign in to comment.