mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-16 11:48:13 +01:00
14 lines
245 B
Go
14 lines
245 B
Go
|
|
// +build !amd64
|
||
|
|
|
||
|
|
package util
|
||
|
|
|
||
|
|
import "syscall"
|
||
|
|
|
||
|
|
func FD_SET(p *syscall.FdSet, fd int) {
|
||
|
|
p.X__fds_bits[fd/32] |= 1 << uint(fd) % 32
|
||
|
|
}
|
||
|
|
|
||
|
|
func FD_ISSET(p *syscall.FdSet, fd int) bool {
|
||
|
|
return (p.X__fds_bits[fd/32] & (1 << uint(fd) % 32)) != 0
|
||
|
|
}
|