github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/cmds/core/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  }