Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsPollDescriptor (0.24 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_poll_js.go

    	case 'r' + 'w':
    		syscall.SetReadDeadline(fd.Sysfd, d)
    		syscall.SetWriteDeadline(fd.Sysfd, d)
    	}
    	fd.decref()
    	return nil
    }
    
    // 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. 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)
  4. src/os/exec/read3.go

    	// stdout == 1
    	// stderr == 2
    	// descriptor from parent == 3
    	// All descriptors 4 and up should be available,
    	// except for any used by the network poller.
    	for fd := uintptr(4); fd <= 100; fd++ {
    		if poll.IsPollDescriptor(fd) {
    			continue
    		}
    
    		if !fdtest.Exists(fd) {
    			continue
    		}
    
    		fmt.Printf("leaked parent file. fdtest.Exists(%d) got true want false\n", fd)
    
    		fdfile := fmt.Sprintf("/proc/self/fd/%d", fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 26 14:49:07 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. 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