github.com/system-transparency/u-root@v6.0.1-0.20190919065413-ed07a650de4c+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  }