]> gitweb.factorcode.org Git - factor.git/blob - extra/io/serial/unix/termios/linux/linux.factor
Merge Phil Dawes' VM work
[factor.git] / extra / io / serial / unix / termios / linux / linux.factor
1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: alien.syntax classes.struct kernel system unix ;
4 IN: io.serial.unix.termios
5
6 CONSTANT: NCCS 32
7
8 TYPEDEF: uchar cc_t
9 TYPEDEF: uint speed_t
10 TYPEDEF: uint tcflag_t
11
12 STRUCT: termios
13     { iflag tcflag_t }
14     { oflag tcflag_t }
15     { cflag tcflag_t }
16     { lflag tcflag_t }
17     { line cc_t }
18     { cc { cc_t NCCS } }
19     { ispeed speed_t }
20     { ospeed speed_t } ;