tc_solaris_nocgo.go 702 B

1234567891011121314151617181920212223242526272829303132
  1. // +build solaris,!cgo
  2. //
  3. // Implementing the functions below requires cgo support. Non-cgo stubs
  4. // versions are defined below to enable cross-compilation of source code
  5. // that depends on these functions, but the resultant cross-compiled
  6. // binaries cannot actually be used. If the stub function(s) below are
  7. // actually invoked they will display an error message and cause the
  8. // calling process to exit.
  9. //
  10. package console
  11. import (
  12. "os"
  13. "golang.org/x/sys/unix"
  14. )
  15. const (
  16. cmdTcGet = unix.TCGETS
  17. cmdTcSet = unix.TCSETS
  18. )
  19. func ptsname(f *os.File) (string, error) {
  20. panic("ptsname() support requires cgo.")
  21. }
  22. func unlockpt(f *os.File) error {
  23. panic("unlockpt() support requires cgo.")
  24. }