]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add syscall.Termios on dragonfly, openbsd
authorMichael Gehring <mg@ebfe.org>
Wed, 22 Jan 2014 18:39:10 +0000 (10:39 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 22 Jan 2014 18:39:10 +0000 (10:39 -0800)
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/55720043

src/pkg/syscall/types_dragonfly.go
src/pkg/syscall/types_openbsd.go
src/pkg/syscall/ztypes_dragonfly_386.go
src/pkg/syscall/ztypes_dragonfly_amd64.go
src/pkg/syscall/ztypes_openbsd_386.go
src/pkg/syscall/ztypes_openbsd_amd64.go

index 009b8f045b02794ce22e8f6ba819dd0262056323..baed2911fcf01fafdddcb205251a88856a99b504 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/event.h>
@@ -239,3 +240,7 @@ type BpfProgram C.struct_bpf_program
 type BpfInsn C.struct_bpf_insn
 
 type BpfHdr C.struct_bpf_hdr
+
+// Terminal handling
+
+type Termios C.struct_termios
index 6fe2af6e0a9d6d1c78a2d4053cc7ab91ef78d25b..e6d1ea70448cea8b4b77b761aab8817d006b1db4 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>
@@ -237,3 +238,7 @@ type BpfInsn C.struct_bpf_insn
 type BpfHdr C.struct_bpf_hdr
 
 type BpfTimeval C.struct_bpf_timeval
+
+// Terminal handling
+
+type Termios C.struct_termios
index c467d85933b229bbc58c7ef50327ce7af9d4e5d7..590d88328d672d65c2c25fe96e296ec08497b798 100644 (file)
@@ -427,3 +427,13 @@ type BpfHdr struct {
        Hdrlen    uint16
        Pad_cgo_0 [2]byte
 }
+
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed uint32
+       Ospeed uint32
+}
index b71bf29f4cbdb8af9592acb712b15522b5ec45d0..a543b7c99acee31a0427c89b9d1c9424ca76e556 100644 (file)
@@ -433,3 +433,13 @@ type BpfHdr struct {
        Hdrlen    uint16
        Pad_cgo_0 [6]byte
 }
+
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed uint32
+       Ospeed uint32
+}
index 5812391a60306fe12dae597c7461d86f99ab735c..2e4d9dd17470609f1b60db474d7bc3c0515d14e2 100644 (file)
@@ -427,3 +427,13 @@ type BpfTimeval struct {
        Sec  uint32
        Usec uint32
 }
+
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed int32
+       Ospeed int32
+}
index 611b8ff3cd3b145ee7043feaeae3e8e862bced5b..f07bc714e975a6807b9a94da3fa91da4daa91b8c 100644 (file)
@@ -434,3 +434,13 @@ type BpfTimeval struct {
        Sec  uint32
        Usec uint32
 }
+
+type Termios struct {
+       Iflag  uint32
+       Oflag  uint32
+       Cflag  uint32
+       Lflag  uint32
+       Cc     [20]uint8
+       Ispeed int32
+       Ospeed int32
+}