Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsPollDescriptor (0.15 sec)

  1. src/internal/poll/fd_poll_runtime.go

    	if fd.pd.runtimeCtx == 0 {
    		return ErrNoDeadline
    	}
    	runtime_pollSetDeadline(fd.pd.runtimeCtx, d, mode)
    	return nil
    }
    
    // IsPollDescriptor reports whether fd is the descriptor being used by the poller.
    // This is only used for testing.
    //
    // IsPollDescriptor should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/internal/poll/fd_plan9.go

    }
    
    func isInterrupted(err error) bool {
    	return err != nil && stringslite.HasSuffix(err.Error(), "interrupted")
    }
    
    // IsPollDescriptor reports whether fd is the descriptor being used by the poller.
    // This is only used for testing.
    func IsPollDescriptor(fd uintptr) bool {
    	return false
    }
    
    // RawControl invokes the user-defined function f for a non-IO
    // operation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. src/os/exec/exec_test.go

    	os.Setenv("GODEBUG", godebug)
    
    	if os.Getenv("GO_EXEC_TEST_PID") != "" {
    		return
    	}
    	if runtime.GOOS == "windows" {
    		return
    	}
    	for fd := uintptr(3); fd <= 100; fd++ {
    		if poll.IsPollDescriptor(fd) {
    			continue
    		}
    
    		if fdtest.Exists(fd) {
    			haveUnexpectedFDs = true
    			return
    		}
    	}
    }
    
    // TestMain allows the test binary to impersonate many other binaries,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top