summaryrefslogtreecommitdiff
path: root/vendor/github.com/containerd/console/tc_solaris_nocgo.go
blob: 0aefa0d2bb122148095e440ac2ba4dc40f41c14f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// +build solaris,!cgo

//
// Implementing the functions below requires cgo support.  Non-cgo stubs
// versions are defined below to enable cross-compilation of source code
// that depends on these functions, but the resultant cross-compiled
// binaries cannot actually be used.  If the stub function(s) below are
// actually invoked they will display an error message and cause the
// calling process to exit.
//

package console

import (
	"os"

	"golang.org/x/sys/unix"
)

const (
	cmdTcGet = unix.TCGETS
	cmdTcSet = unix.TCSETS
)

func ptsname(f *os.File) (string, error) {
	panic("ptsname() support requires cgo.")
}

func unlockpt(f *os.File) error {
	panic("unlockpt() support requires cgo.")
}