github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/cmds/elvish/sys/termios_32bitflag.go (about) 1 // +build 386,darwin arm,darwin dragonfly freebsd linux netbsd openbsd solaris 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 uint32. 7 8 func setFlag(flag *uint32, mask uint32, v bool) { 9 if v { 10 *flag |= mask 11 } else { 12 *flag &= ^mask 13 } 14 }