Commit 081e2d01 authored by Michael Gehring's avatar Michael Gehring Committed by Brad Fitzpatrick

syscall: add syscall.Termios on netbsd

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/54290043
parent b51e1578
...@@ -18,6 +18,7 @@ package syscall ...@@ -18,6 +18,7 @@ package syscall
#include <dirent.h> #include <dirent.h>
#include <fcntl.h> #include <fcntl.h>
#include <signal.h> #include <signal.h>
#include <termios.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <sys/param.h> #include <sys/param.h>
...@@ -222,6 +223,10 @@ type BpfHdr C.struct_bpf_hdr ...@@ -222,6 +223,10 @@ type BpfHdr C.struct_bpf_hdr
type BpfTimeval C.struct_bpf_timeval type BpfTimeval C.struct_bpf_timeval
// Terminal handling
type Termios C.struct_termios
// Sysctl // Sysctl
type Sysctlnode C.struct_sysctlnode type Sysctlnode C.struct_sysctlnode
...@@ -370,6 +370,16 @@ type BpfTimeval struct { ...@@ -370,6 +370,16 @@ type BpfTimeval struct {
Usec int32 Usec int32
} }
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type Sysctlnode struct { type Sysctlnode struct {
Flags uint32 Flags uint32
Num int32 Num int32
......
...@@ -377,6 +377,16 @@ type BpfTimeval struct { ...@@ -377,6 +377,16 @@ type BpfTimeval struct {
Usec int64 Usec int64
} }
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type Sysctlnode struct { type Sysctlnode struct {
Flags uint32 Flags uint32
Num int32 Num int32
......
...@@ -370,6 +370,16 @@ type BpfTimeval struct { ...@@ -370,6 +370,16 @@ type BpfTimeval struct {
Usec int32 Usec int32
} }
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type Sysctlnode struct { type Sysctlnode struct {
Flags uint32 Flags uint32
Num int32 Num int32
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment