]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add syscall.Termios on netbsd
authorMichael Gehring <mg@ebfe.org>
Sun, 19 Jan 2014 17:57:02 +0000 (09:57 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 19 Jan 2014 17:57:02 +0000 (09:57 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/54290043

src/pkg/syscall/types_netbsd.go
src/pkg/syscall/ztypes_netbsd_386.go
src/pkg/syscall/ztypes_netbsd_amd64.go
src/pkg/syscall/ztypes_netbsd_arm.go

index badaa1049a0572f91d644bba0fa6440f1dbbd3ba..04354a32a964aa049ecca9f6fe35134330ba9819 100644 (file)
@@ -18,6 +18,7 @@ package syscall
 #include <dirent.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <termios.h>
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/param.h>
@@ -222,6 +223,10 @@ type BpfHdr C.struct_bpf_hdr
 
 type BpfTimeval C.struct_bpf_timeval
 
+// Terminal handling
+
+type Termios C.struct_termios
+
 // Sysctl
 
 type Sysctlnode C.struct_sysctlnode
index 59314bad28400356792747b707a4dd2f868801fd..6add325a37bff37c4ab884f0c5dce05407b3c846 100644 (file)
@@ -370,6 +370,16 @@ type BpfTimeval struct {
        Usec int32
 }
 
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed int32
+       Ospeed int32
+}
+
 type Sysctlnode struct {
        Flags           uint32
        Num             int32
index a021a573876af842e1b260ff09ce946fe6c6d94d..4451fc1f026118ce671d79ca1a0dc12490e9e5cf 100644 (file)
@@ -377,6 +377,16 @@ type BpfTimeval struct {
        Usec int64
 }
 
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed int32
+       Ospeed int32
+}
+
 type Sysctlnode struct {
        Flags           uint32
        Num             int32
index 59314bad28400356792747b707a4dd2f868801fd..6add325a37bff37c4ab884f0c5dce05407b3c846 100644 (file)
@@ -370,6 +370,16 @@ type BpfTimeval struct {
        Usec int32
 }
 
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed int32
+       Ospeed int32
+}
+
 type Sysctlnode struct {
        Flags           uint32
        Num             int32