Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 257 for pipe1 (0.05 sec)

  1. src/internal/poll/fd_windows.go

    		default:
    			n, err = syscall.Read(fd.Sysfd, buf)
    			if fd.kind == kindPipe && err == syscall.ERROR_OPERATION_ABORTED {
    				// Close uses CancelIoEx to interrupt concurrent I/O for pipes.
    				// If the fd is a pipe and the Read was interrupted by CancelIoEx,
    				// we assume it is interrupted by Close.
    				err = ErrFileClosing
    			}
    		}
    		if err != nil {
    			n = 0
    		}
    	} else {
    		o := &fd.rop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  2. src/net/http/fcgi/fcgi_test.go

    	{
    		bytes.Join([][]byte{
    			streamBeginTypeStdin,
    			makeRecord(typeAbortRequest, 1, nil),
    		},
    			nil),
    		ErrRequestAborted,
    	},
    	// confirm that child.serve closes all pipes after error reading record
    	{
    		bytes.Join([][]byte{
    			streamBeginTypeStdin,
    			nil,
    		},
    			nil),
    		ErrConnClosed,
    	},
    }
    
    type nopWriteCloser struct {
    	io.Reader
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 18:51:39 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. api/go1.9.txt

    pkg syscall (darwin-amd64), type Credential struct, NoSetGroups bool
    pkg syscall (freebsd-386-cgo), func Pipe2([]int, int) error
    pkg syscall (freebsd-386-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (freebsd-386), func Pipe2([]int, int) error
    pkg syscall (freebsd-386), type Credential struct, NoSetGroups bool
    pkg syscall (freebsd-amd64-cgo), func Pipe2([]int, int) error
    pkg syscall (freebsd-amd64-cgo), type Credential struct, NoSetGroups bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  4. src/syscall/exec_linux.go

    	// so that pass 2 won't stomp on an fd it needs later.
    	if pipe < nextfd {
    		_, _, err1 = RawSyscall(SYS_DUP3, uintptr(pipe), uintptr(nextfd), O_CLOEXEC)
    		if err1 != 0 {
    			goto childerror
    		}
    		pipe = nextfd
    		nextfd++
    	}
    	for i = 0; i < len(fd); i++ {
    		if fd[i] >= 0 && fd[i] < i {
    			if nextfd == pipe { // don't stomp on pipe
    				nextfd++
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ReadWriteTest.java

                        }
                    }
                }
                catch ( SmbException e ) {
                    if ( e.getNtStatus() == 0xC00000BB ) {
                        Assume.assumeTrue("Server does not support pipes or it does not exist", false);
                    }
                    throw e;
                }
            }
        }
    
    
        @Test
        public void testCallPipe () throws IOException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  6. src/runtime/os_darwin.go

    // This is a separate implementation of notes, based on a pipe, that does
    // not support timed waits but is async-signal-safe.
    func sigNoteSetup(*note) {
    	if sigNoteRead != 0 || sigNoteWrite != 0 {
    		// Generalizing this would require avoiding the pipe-fork-closeonexec race, which entangles syscall.
    		throw("duplicate sigNoteSetup")
    	}
    	var errno int32
    	sigNoteRead, sigNoteWrite, errno = pipe()
    	if errno != 0 {
    		throw("pipe failed")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. src/os/timeout_test.go

    	{50 * time.Millisecond, [2]error{nil, os.ErrDeadlineExceeded}},
    }
    
    // There is a very similar copy of this in net/timeout_test.go.
    func TestReadTimeout(t *testing.T) {
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer r.Close()
    	defer w.Close()
    
    	if _, err := w.Write([]byte("READ TIMEOUT TEST")); err != nil {
    		t.Fatal(err)
    	}
    
    	for i, tt := range readTimeoutTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  8. api/go1.11.txt

    pkg syscall (netbsd-386), func Pipe2([]int, int) error
    pkg syscall (netbsd-386-cgo), func Accept4(int, int) (int, Sockaddr, error)
    pkg syscall (netbsd-386-cgo), func Pipe2([]int, int) error
    pkg syscall (netbsd-amd64), func Accept4(int, int) (int, Sockaddr, error)
    pkg syscall (netbsd-amd64), func Pipe2([]int, int) error
    pkg syscall (netbsd-amd64-cgo), func Accept4(int, int) (int, Sockaddr, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 22 03:48:56 UTC 2018
    - 25K bytes
    - Viewed (0)
  9. src/os/file_windows.go

    	}
    	return nil
    }
    
    // Pipe returns a connected pair of Files; reads from r return bytes written to w.
    // It returns the files and an error, if any. The Windows handles underlying
    // the returned files are marked as inheritable by child processes.
    func Pipe() (r *File, w *File, err error) {
    	var p [2]syscall.Handle
    	e := syscall.Pipe(p[:])
    	if e != nil {
    		return nil, nil, NewSyscallError("pipe", e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

      // zero effect on the behavior of the WebSocket API which is why tests are only written once
      // from the perspective of a single peer.
      private val random = Random(0)
      private val client2Server = Pipe(8192L)
      private val server2client = Pipe(8192L)
      private val taskFaker = TaskFaker()
      private val client = TestStreams(true, taskFaker, server2client, client2Server)
      private val server = TestStreams(false, taskFaker, client2Server, server2client)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
Back to top