From: Michael Gehring Date: Mon, 13 Jan 2014 21:57:38 +0000 (-0800) Subject: syscall: add syscall.Termios on freebsd/{386,amd64} X-Git-Tag: go1.3beta1~992 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5ce3e6a1efd834189057002e6b28180dee5657d4;p=gostls13.git syscall: add syscall.Termios on freebsd/{386,amd64} R=golang-codereviews, bradfitz, mg CC=golang-codereviews https://golang.org/cl/51580044 --- diff --git a/src/pkg/syscall/types_freebsd.go b/src/pkg/syscall/types_freebsd.go index ccf53d0adf..ff3adc3f6e 100644 --- a/src/pkg/syscall/types_freebsd.go +++ b/src/pkg/syscall/types_freebsd.go @@ -18,6 +18,7 @@ package syscall #include #include #include +#include #include #include #include @@ -248,3 +249,7 @@ type BpfInsn C.struct_bpf_insn type BpfHdr C.struct_bpf_hdr type BpfZbufHeader C.struct_bpf_zbuf_header + +// Terminal handling + +type Termios C.struct_termios diff --git a/src/pkg/syscall/ztypes_freebsd_386.go b/src/pkg/syscall/ztypes_freebsd_386.go index e77bd4b413..3df7c51731 100644 --- a/src/pkg/syscall/ztypes_freebsd_386.go +++ b/src/pkg/syscall/ztypes_freebsd_386.go @@ -443,3 +443,13 @@ type BpfZbufHeader struct { User_gen uint32 X_bzh_pad [5]uint32 } + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +} diff --git a/src/pkg/syscall/ztypes_freebsd_amd64.go b/src/pkg/syscall/ztypes_freebsd_amd64.go index 922de2ce50..49ad8af81f 100644 --- a/src/pkg/syscall/ztypes_freebsd_amd64.go +++ b/src/pkg/syscall/ztypes_freebsd_amd64.go @@ -446,3 +446,13 @@ type BpfZbufHeader struct { User_gen uint32 X_bzh_pad [5]uint32 } + +type Termios struct { + Iflag uint32 + Oflag uint32 + Cflag uint32 + Lflag uint32 + Cc [20]uint8 + Ispeed uint32 + Ospeed uint32 +}