Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 466 for pipe1 (0.17 sec)

  1. src/syscall/syscall_openbsd.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    func Pipe(p []int) error {
    	return Pipe2(p, 0)
    }
    
    //sysnb pipe2(p *[2]_C_int, flags int) (err error)
    
    func Pipe2(p []int, flags int) error {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err := pipe2(&pp, flags)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

            stat.length == 0
            assertSameAccessType(stat, VIA_SYMLINK)
        }
    
        @Requires(UnitTestPreconditions.UnixDerivative)
        def "stats named pipes"() {
            def pipe = tmpDir.file("testPipe").createNamedPipe()
    
            when:
            accessor.stat(pipe)
            then:
            thrown(UncheckedIOException)
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. src/net/sendfile_test.go

    	}
    }
    
    // Test that sendfile doesn't put a pipe into blocking mode.
    func TestSendfilePipe(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9", "windows", "js", "wasip1":
    		// These systems don't support deadlines on pipes.
    		t.Skipf("skipping on %s", runtime.GOOS)
    	}
    
    	t.Parallel()
    
    	ln := newLocalListener(t, "tcp")
    	defer ln.Close()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/syscall/syscall_freebsd.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    func Pipe(p []int) error {
    	return Pipe2(p, 0)
    }
    
    //sysnb pipe2(p *[2]_C_int, flags int) (err error)
    
    func Pipe2(p []int, flags int) error {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err := pipe2(&pp, flags)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/os/exec/exec_test.go

    		// stderr pipe is closed.
    		if ee := new(*exec.ExitError); !errors.As(err, ee) {
    			t.Errorf("Wait error = %v; want %T", err, *ee)
    		}
    	})
    
    	// If the process exits with status 0 but leaves a child behind writing
    	// to its output pipes, Wait should only wait for WaitDelay before
    	// closing the pipes and returning.  Wait should return ErrWaitDelay
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_netbsd.go

    		return nil, err
    	}
    	return &u, nil
    }
    
    func Pipe(p []int) (err error) {
    	return Pipe2(p, 0)
    }
    
    //sysnb	pipe2(p *[2]_C_int, flags int) (err error)
    
    func Pipe2(p []int, flags int) error {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err := pipe2(&pp, flags)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return err
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_openbsd.go

    		return nil, err
    	}
    	if n != SizeofUvmexp {
    		return nil, EIO
    	}
    	return &u, nil
    }
    
    func Pipe(p []int) (err error) {
    	return Pipe2(p, 0)
    }
    
    //sysnb	pipe2(p *[2]_C_int, flags int) (err error)
    
    func Pipe2(p []int, flags int) error {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	var pp [2]_C_int
    	err := pipe2(&pp, flags)
    	if err == nil {
    		p[0] = int(pp[0])
    		p[1] = int(pp[1])
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 11K bytes
    - Viewed (0)
  8. src/net/rpc/jsonrpc/all_test.go

    // Copied from package net.
    func myPipe() (*pipe, *pipe) {
    	r1, w1 := io.Pipe()
    	r2, w2 := io.Pipe()
    
    	return &pipe{r1, w2}, &pipe{r2, w1}
    }
    
    type pipe struct {
    	*io.PipeReader
    	*io.PipeWriter
    }
    
    type pipeAddr int
    
    func (pipeAddr) Network() string {
    	return "pipe"
    }
    
    func (pipeAddr) String() string {
    	return "pipe"
    }
    
    func (p *pipe) Close() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:09:53 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  9. src/syscall/exec_bsd.go

    			if err1 != 0 {
    				goto childerror
    			}
    			_, _, err1 = RawSyscall(SYS_FCNTL, uintptr(nextfd), F_SETFD, FD_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: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/text/template/parse/parse.go

    			pipe.IsAssign = next.typ == itemAssign
    			t.nextNonSpace()
    			pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
    			t.vars = append(t.vars, v.val)
    		case next.typ == itemChar && next.val == ",":
    			t.nextNonSpace()
    			pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
    			t.vars = append(t.vars, v.val)
    			if context == "range" && len(pipe.Decl) < 2 {
    				switch t.peekNonSpace().typ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top