github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/cmds/elvish/sys/termios_64bitflag.go (about)

     1  // +build amd64,darwin arm64,darwin
     2  
     3  package sys
     4  
     5  // The type of Termios.Lflag is different on different platforms.
     6  // This file is for those where Lflag is uint64.
     7  
     8  func setFlag(flag *uint64, mask uint64, v bool) {
     9  	if v {
    10  		*flag |= mask
    11  	} else {
    12  		*flag &= ^mask
    13  	}
    14  }