]> gitweb.factorcode.org Git - factor.git/blob - extra/io/serial/unix/termios/linux/linux.factor
put mach call_fault_handler in the vm
[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 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 C-STRUCT: termios
13     { "tcflag_t" "iflag" }           !  input mode flags
14     { "tcflag_t" "oflag" }           !  output mode flags
15     { "tcflag_t" "cflag" }           !  control mode flags
16     { "tcflag_t" "lflag" }           !  local mode flags
17     { "cc_t" "line" }                !  line discipline
18     { { "cc_t" NCCS } "cc" }         !  control characters
19     { "speed_t" "ispeed" }           !  input speed
20     { "speed_t" "ospeed" } ;         !  output speed