1
0
mirror of https://github.com/rancher/os.git synced 2025-09-03 15:54:24 +00:00

hashicorp version pkg uses alpha sort on -rc11 metadata - so switching to Josh's catalog pkg

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-02-10 00:37:08 +00:00
parent 3929481b5b
commit 9a75d2d5b4
29 changed files with 523 additions and 976 deletions

8
vendor/github.com/tredoe/term/sys/doc.go generated vendored Normal file
View File

@@ -0,0 +1,8 @@
// Copyright 2013 Jonas mg
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Package sys contains low-level operating system primitives of the term.
package sys

47
vendor/github.com/tredoe/term/sys/key_unix.go generated vendored Normal file
View File

@@ -0,0 +1,47 @@
// Copyright 2013 Jonas mg
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// +build !plan9,!windows
package sys
// Key codes
const (
K_TAB = 0x09 // TAB key
K_BACK = 0x7F // BACKSPACE key
K_RETURN = 0x0D // RETURN key
K_ESCAPE = 0x1B // ESC key
)
// Control+letters key codes.
const (
K_CTRL_A = iota + 0x01
K_CTRL_B
K_CTRL_C
K_CTRL_D
K_CTRL_E
K_CTRL_F
K_CTRL_G
K_CTRL_H
K_CTRL_I
K_CTRL_J
K_CTRL_K
K_CTRL_L
K_CTRL_M
K_CTRL_N
K_CTRL_O
K_CTRL_P
K_CTRL_Q
K_CTRL_R
K_CTRL_S
K_CTRL_T
K_CTRL_U
K_CTRL_V
K_CTRL_W
K_CTRL_X
K_CTRL_Y
K_CTRL_Z
)

14
vendor/github.com/tredoe/term/sys/sys_bsd.go generated vendored Normal file
View File

@@ -0,0 +1,14 @@
// Copyright 2012 Jonas mg
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// +build ignore
package sys
//cgo const TCGETS = TIOCGETA
//cgo const TCSETS = TIOCSETA
//cgo const TCSETSW = TIOCSETAW
//cgo const TCSETSF = TIOCSETAF

11
vendor/github.com/tredoe/term/sys/sys_linux.go generated vendored Normal file
View File

@@ -0,0 +1,11 @@
// Copyright 2012 Jonas mg
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// +build ignore
package sys
//cgo const (TCGETS, TCSETS, TCSETSW, TCSETSF)

120
vendor/github.com/tredoe/term/sys/sys_unix.go generated vendored Normal file
View File

@@ -0,0 +1,120 @@
// Copyright 2010 Jonas mg
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
// +build !plan9,!windows
// Reference: man termios ; man tty_ioctl
// Linux file: "asm-generic/termbits.h"
package sys
import (
"unsafe"
"golang.org/x/sys/unix"
)
// int tcgetattr(int fd, struct termios *termios_p)
func Getattr(fd int, state *Termios) (err error) {
_, _, e1 := unix.Syscall(unix.SYS_IOCTL, uintptr(fd),
uintptr(TCGETS), uintptr(unsafe.Pointer(state)))
if e1 != 0 {
err = e1
}
return
}
// int tcsetattr(int fd, int optional_actions, const struct termios *termios_p)
func Setattr(fd int, action uint, state *Termios) (err error) {
switch action {
case TCSANOW:
action = TCSETS
case TCSADRAIN:
action = TCSETSW
case TCSAFLUSH:
action = TCSETSF
}
_, _, e1 := unix.Syscall(unix.SYS_IOCTL, uintptr(fd),
uintptr(action), uintptr(unsafe.Pointer(state)))
if e1 != 0 {
err = e1
}
return
}
// GetWinsize gets the winsize struct with the terminal size set by the kernel.
func GetWinsize(fd int, ws *Winsize) (err error) {
_, _, e1 := unix.Syscall(unix.SYS_IOCTL, uintptr(fd),
uintptr(TIOCGWINSZ), uintptr(unsafe.Pointer(ws)))
if e1 != 0 {
err = e1
}
return
}
// Types
//cgo const (TCSANOW, TCSADRAIN, TCSAFLUSH)
//cgo const TIOCGWINSZ
//cgo type struct_termios
//cgo type struct_winsize
//cgo// c_cc characters
//cgo const (VINTR, VQUIT, VERASE, VKILL, VEOF, VTIME, VMIN, VSTART, VSTOP,
// VSUSP, VEOL, VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOL2)
//cgo// c_iflag bits
//cgo const (IGNBRK, BRKINT, IGNPAR, PARMRK, INPCK, ISTRIP, INLCR, IGNCR, ICRNL,
// IXON, IXANY, IXOFF, IMAXBEL)
//cgo// c_oflag bits
//cgo const (OPOST, ONLCR, OCRNL, ONOCR, ONLRET, NL0, NL1, CR0, CR1, CR2, CR3,
// TAB0, TAB1, TAB2, XTABS, BS0, BS1, FF0, FF1)
//cgo// c_cflag bits
//cgo const (B0, B50, B75, B110, B134, B150, B200, B300,
// B600, B1200, B1800, B2400, B4800, B9600, B19200, B38400, EXTA, EXTB, CSIZE,
// CS5, CS6, CS7, CS8, CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL,
// B57600, B115200, B230400, CRTSCTS)
//cgo// c_lflag bits
//cgo const (ISIG, ICANON, ECHO, ECHOE, ECHOK, ECHONL, NOFLSH, TOSTOP, ECHOCTL,
// ECHOPRT, ECHOKE, FLUSHO, PENDIN, IEXTEN, EXTPROC)
/*
== FreeBSD has not:
// c_cc characters
VSWTC
// c_iflag bits
(IUCLC, IUTF8)
// c_oflag bits
(OLCUC, OFILL, OFDEL, NLDLY, CRDLY, BSDLY, VTDLY, VT0, VT1, FFDLY)
// c_cflag bits
(CBAUD, CBAUDEX, BOTHER, B500000, B576000,
B1000000, B1152000, B1500000, B2000000, B2500000, B3000000, B3500000,
B4000000, CIBAUD, CMSPAR, IBSHIFT)
// c_lflag bits
XCASE
== NetBSD, besides, has not:
// c_oflag bits
(TABDLY, TAB3)
== OpenBSD, besides, has not:
// c_cflag bits
(B460800, B921600)
*/

151
vendor/github.com/tredoe/term/sys/z-sys_darwin_386.go generated vendored Normal file
View File

@@ -0,0 +1,151 @@
// go.mkdef -w sys_unix.go sys_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_darwin_386.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x40087468
const (
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
FF0 = 0x0
FF1 = 0x4000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x40
ONOCR = 0x20
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
XTABS = 0xc00
)
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
CLOCAL = 0x8000
CREAD = 0x800
CRTSCTS = 0x30000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
EXTA = 0x4b00
EXTB = 0x9600
HUPCL = 0x4000
PARENB = 0x1000
PARODD = 0x2000
)
const (
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTPROC = 0x800
FLUSHO = 0x800000
ICANON = 0x100
IEXTEN = 0x400
ISIG = 0x80
NOFLSH = 0x80000000
PENDIN = 0x20000000
TOSTOP = 0x400000
)
const TCGETS = 0x402c7413
const TCSETS = 0x802c7414
const TCSETSW = 0x802c7415
const TCSETSF = 0x802c7416
type termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed uint32
Ospeed uint32
}
type winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

152
vendor/github.com/tredoe/term/sys/z-sys_darwin_amd64.go generated vendored Normal file
View File

@@ -0,0 +1,152 @@
// go.mkdef -w sys_unix.go sys_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_darwin_amd64.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x40087468
const (
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
FF0 = 0x0
FF1 = 0x4000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x40
ONOCR = 0x20
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
XTABS = 0xc00
)
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
CLOCAL = 0x8000
CREAD = 0x800
CRTSCTS = 0x30000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
EXTA = 0x4b00
EXTB = 0x9600
HUPCL = 0x4000
PARENB = 0x1000
PARODD = 0x2000
)
const (
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTPROC = 0x800
FLUSHO = 0x800000
ICANON = 0x100
IEXTEN = 0x400
ISIG = 0x80
NOFLSH = 0x80000000
PENDIN = 0x20000000
TOSTOP = 0x400000
)
const TCGETS = 0x40487413
const TCSETS = 0x80487414
const TCSETSW = 0x80487415
const TCSETSF = 0x80487416
type Termios struct {
Iflag uint64
Oflag uint64
Cflag uint64
Lflag uint64
Cc [20]uint8
Pad_cgo_0 [4]byte
Ispeed uint64
Ospeed uint64
}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

151
vendor/github.com/tredoe/term/sys/z-sys_freebsd.go generated vendored Normal file
View File

@@ -0,0 +1,151 @@
// go.mkdef -w sys_unix.go sys_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_freebsd_amd64.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x40087468
const (
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
FF0 = 0x0
FF1 = 0x4000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x40
ONOCR = 0x20
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
XTABS = 0xc00
)
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
CLOCAL = 0x8000
CREAD = 0x800
CRTSCTS = 0x30000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
EXTA = 0x4b00
EXTB = 0x9600
HUPCL = 0x4000
PARENB = 0x1000
PARODD = 0x2000
)
const (
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTPROC = 0x800
FLUSHO = 0x800000
ICANON = 0x100
IEXTEN = 0x400
ISIG = 0x80
NOFLSH = 0x80000000
PENDIN = 0x20000000
TOSTOP = 0x400000
)
const TCGETS = 0x402c7413
const TCSETS = 0x802c7414
const TCSETSW = 0x802c7415
const TCSETSF = 0x802c7416
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed uint32
Ospeed uint32
}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

149
vendor/github.com/tredoe/term/sys/z-sys_linux.go generated vendored Normal file
View File

@@ -0,0 +1,149 @@
// go.mkdef -w sys_unix.go sys_linux.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_linux_amd64.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x5413
const (
VDISCARD = 0xd
VEOF = 0x4
VEOL = 0xb
VEOL2 = 0x10
VERASE = 0x2
VINTR = 0x0
VKILL = 0x3
VLNEXT = 0xf
VMIN = 0x6
VQUIT = 0x1
VREPRINT = 0xc
VSTART = 0x8
VSTOP = 0x9
VSUSP = 0xa
VTIME = 0x5
VWERASE = 0xe
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x1000
IXON = 0x400
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x2000
CR0 = 0x0
CR1 = 0x200
CR2 = 0x400
CR3 = 0x600
FF0 = 0x0
FF1 = 0x8000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x8
ONLCR = 0x4
ONLRET = 0x20
ONOCR = 0x10
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x800
TAB2 = 0x1000
XTABS = 0x1800
)
const (
B0 = 0x0
B110 = 0x3
B115200 = 0x1002
B1200 = 0x9
B134 = 0x4
B150 = 0x5
B1800 = 0xa
B19200 = 0xe
B200 = 0x6
B230400 = 0x1003
B2400 = 0xb
B300 = 0x7
B38400 = 0xf
B4800 = 0xc
B50 = 0x1
B57600 = 0x1001
B600 = 0x8
B75 = 0x2
B9600 = 0xd
CLOCAL = 0x800
CREAD = 0x80
CRTSCTS = 0x80000000
CS5 = 0x0
CS6 = 0x10
CS7 = 0x20
CS8 = 0x30
CSIZE = 0x30
CSTOPB = 0x40
EXTA = 0xe
EXTB = 0xf
HUPCL = 0x400
PARENB = 0x100
PARODD = 0x200
)
const (
ECHO = 0x8
ECHOCTL = 0x200
ECHOE = 0x10
ECHOK = 0x20
ECHOKE = 0x800
ECHONL = 0x40
ECHOPRT = 0x400
EXTPROC = 0x10000
FLUSHO = 0x1000
ICANON = 0x2
IEXTEN = 0x8000
ISIG = 0x1
NOFLSH = 0x80
PENDIN = 0x4000
TOSTOP = 0x100
)
const (
TCGETS = 0x5401
TCSETS = 0x5402
TCSETSF = 0x5404
TCSETSW = 0x5403
)
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Line uint8
Cc [19]uint8
}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

151
vendor/github.com/tredoe/term/sys/z-sys_netbsd.go generated vendored Normal file
View File

@@ -0,0 +1,151 @@
// go.mkdef -w sys_unix.go sys_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_netbsd_amd64.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x40087468
const (
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
FF0 = 0x0
FF1 = 0x4000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x40
ONOCR = 0x20
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
XTABS = 0xc00
)
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
CLOCAL = 0x8000
CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
EXTA = 0x4b00
EXTB = 0x9600
HUPCL = 0x4000
PARENB = 0x1000
PARODD = 0x2000
)
const (
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTPROC = 0x800
FLUSHO = 0x800000
ICANON = 0x100
IEXTEN = 0x400
ISIG = 0x80
NOFLSH = 0x80000000
PENDIN = 0x20000000
TOSTOP = 0x400000
)
const TCGETS = 0x402c7413
const TCSETS = 0x802c7414
const TCSETSW = 0x802c7415
const TCSETSF = 0x802c7416
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}

151
vendor/github.com/tredoe/term/sys/z-sys_openbsd.go generated vendored Normal file
View File

@@ -0,0 +1,151 @@
// go.mkdef -w sys_unix.go sys_bsd.go
// MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
//
// Created by cgo -godefs - DO NOT EDIT
// cgo -godefs _z-sys_openbsd_amd64.go
package sys
const (
TCSADRAIN = 0x1
TCSAFLUSH = 0x2
TCSANOW = 0x0
)
const TIOCGWINSZ = 0x40087468
const (
VDISCARD = 0xf
VEOF = 0x0
VEOL = 0x1
VEOL2 = 0x2
VERASE = 0x3
VINTR = 0x8
VKILL = 0x5
VLNEXT = 0xe
VMIN = 0x10
VQUIT = 0x9
VREPRINT = 0x6
VSTART = 0xc
VSTOP = 0xd
VSUSP = 0xa
VTIME = 0x11
VWERASE = 0x4
)
const (
BRKINT = 0x2
ICRNL = 0x100
IGNBRK = 0x1
IGNCR = 0x80
IGNPAR = 0x4
IMAXBEL = 0x2000
INLCR = 0x40
INPCK = 0x10
ISTRIP = 0x20
IXANY = 0x800
IXOFF = 0x400
IXON = 0x200
PARMRK = 0x8
)
const (
BS0 = 0x0
BS1 = 0x8000
CR0 = 0x0
CR1 = 0x1000
CR2 = 0x2000
CR3 = 0x3000
FF0 = 0x0
FF1 = 0x4000
NL0 = 0x0
NL1 = 0x100
OCRNL = 0x10
ONLCR = 0x2
ONLRET = 0x80
ONOCR = 0x40
OPOST = 0x1
TAB0 = 0x0
TAB1 = 0x400
TAB2 = 0x800
XTABS = 0xc00
)
const (
B0 = 0x0
B110 = 0x6e
B115200 = 0x1c200
B1200 = 0x4b0
B134 = 0x86
B150 = 0x96
B1800 = 0x708
B19200 = 0x4b00
B200 = 0xc8
B230400 = 0x38400
B2400 = 0x960
B300 = 0x12c
B38400 = 0x9600
B4800 = 0x12c0
B50 = 0x32
B57600 = 0xe100
B600 = 0x258
B75 = 0x4b
B9600 = 0x2580
CLOCAL = 0x8000
CREAD = 0x800
CRTSCTS = 0x10000
CS5 = 0x0
CS6 = 0x100
CS7 = 0x200
CS8 = 0x300
CSIZE = 0x300
CSTOPB = 0x400
EXTA = 0x4b00
EXTB = 0x9600
HUPCL = 0x4000
PARENB = 0x1000
PARODD = 0x2000
)
const (
ECHO = 0x8
ECHOCTL = 0x40
ECHOE = 0x2
ECHOK = 0x4
ECHOKE = 0x1
ECHONL = 0x10
ECHOPRT = 0x20
EXTPROC = 0x800
FLUSHO = 0x800000
ICANON = 0x100
IEXTEN = 0x400
ISIG = 0x80
NOFLSH = 0x80000000
PENDIN = 0x20000000
TOSTOP = 0x400000
)
const TCGETS = 0x402c7413
const TCSETS = 0x802c7414
const TCSETSW = 0x802c7415
const TCSETSF = 0x802c7416
type Termios struct {
Iflag uint32
Oflag uint32
Cflag uint32
Lflag uint32
Cc [20]uint8
Ispeed int32
Ospeed int32
}
type Winsize struct {
Row uint16
Col uint16
Xpixel uint16
Ypixel uint16
}