2014-12-16 12:22:54 +01:00
|
|
|
// +build !amd64
|
|
|
|
|
|
2014-08-09 21:49:10 +02:00
|
|
|
package util
|
|
|
|
|
|
|
|
|
|
import "syscall"
|
|
|
|
|
|
|
|
|
|
func FD_SET(p *syscall.FdSet, fd int) {
|
|
|
|
|
p.Bits[fd/32] |= 1 << uint(fd) % 32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func FD_ISSET(p *syscall.FdSet, fd int) bool {
|
|
|
|
|
return (p.Bits[fd/32] & (1 << uint(fd) % 32)) != 0
|
|
|
|
|
}
|