Home | History | Annotate | Download | only in runtime

Lines Matching full:portfd

111 var portfd int32 = -1
114 portfd = port_create()
115 if portfd >= 0 {
116 fcntl(portfd, _F_SETFD, _FD_CLOEXEC)
125 return uintptr(portfd)
137 r := port_associate(portfd, _PORT_SOURCE_FD, fd, 0, uintptr(unsafe.Pointer(pd)))
143 return port_dissociate(portfd, _PORT_SOURCE_FD, fd)
160 if events != 0 && port_associate(portfd, _PORT_SOURCE_FD, pd.fd, events, uintptr(unsafe.Pointer(pd))) != 0 {
184 if portfd == -1 {
197 if port_getn(portfd, &events[0], uint32(len(events)), &n, wait) < 0 {
199 print("runtime: port_getn on fd ", portfd, " failed (errno=", e, ")\n")