Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for errnoErr (0.1 sec)

  1. src/internal/poll/fd_poll_runtime.go

    	runtimeCtx uintptr
    }
    
    var serverInit sync.Once
    
    func (pd *pollDesc) init(fd *FD) error {
    	serverInit.Do(runtime_pollServerInit)
    	ctx, errno := runtime_pollOpen(uintptr(fd.Sysfd))
    	if errno != 0 {
    		return errnoErr(syscall.Errno(errno))
    	}
    	pd.runtimeCtx = ctx
    	return nil
    }
    
    func (pd *pollDesc) close() {
    	if pd.runtimeCtx == 0 {
    		return
    	}
    	runtime_pollClose(pd.runtimeCtx)
    	pd.runtimeCtx = 0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top