github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/termios/sgtty_freebsd.go (about)

     1  // Copyright 2021 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package termios
     6  
     7  import "golang.org/x/sys/unix"
     8  
     9  const (
    10  	gets       = unix.TIOCGETA
    11  	sets       = unix.TIOCSETA
    12  	getWinSize = unix.TIOCGWINSZ
    13  	setWinSize = unix.TIOCSWINSZ
    14  )
    15  
    16  func speed(speed int) uint32 {
    17  	return uint32(speed)
    18  }