Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 257 for pipe1 (0.04 sec)

  1. src/os/exec/exec.go

    }
    
    // StdinPipe returns a pipe that will be connected to the command's
    // standard input when the command starts.
    // The pipe will be closed automatically after [Cmd.Wait] sees the command exit.
    // A caller need only call Close to force the pipe to close sooner.
    // For example, if the command being run will not exit until standard input
    // is closed, the caller must close the pipe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_dragonfly.go

    }
    
    //sysnb	pipe() (r int, w int, err error)
    
    func Pipe(p []int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    	r, w, err := pipe()
    	if err == nil {
    		p[0], p[1] = r, w
    	}
    	return
    }
    
    //sysnb	pipe2(p *[2]_C_int, flags int) (r int, w int, err error)
    
    func Pipe2(p []int, flags int) (err error) {
    	if len(p) != 2 {
    		return EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. src/os/pipe_test.go

    	// (We expect a write to a closed pipe can fail, but a concurrent fork of a
    	// child process can cause the pipe to unexpectedly remain open.)
    
    	limit := 1
    	if !read {
    		// Get the amount we have to write to overload a pipe
    		// with no reader.
    		limit = 131073
    		if b, err := os.ReadFile("/proc/sys/fs/pipe-max-size"); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

    
        /**
         * @param pipe
         */
        public SmbPipeHandleImpl ( SmbNamedPipe pipe ) {
            this.pipe = pipe;
            this.transact = ( pipe.getPipeType() & SmbPipeResource.PIPE_TYPE_TRANSACT ) == SmbPipeResource.PIPE_TYPE_TRANSACT;
            this.call = ( pipe.getPipeType() & SmbPipeResource.PIPE_TYPE_CALL ) == SmbPipeResource.PIPE_TYPE_CALL;
            this.openFlags = ( pipe.getPipeType() & 0xFFFF00FF ) | SmbConstants.O_EXCL;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Apr 13 17:05:22 UTC 2020
    - 10.3K bytes
    - Viewed (0)
  9. 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)
  10. src/net/http/httputil/persist.go

    func (sc *ServerConn) Read() (*http.Request, error) {
    	var req *http.Request
    	var err error
    
    	// Ensure ordered execution of Reads and Writes
    	id := sc.pipe.Next()
    	sc.pipe.StartRequest(id)
    	defer func() {
    		sc.pipe.EndRequest(id)
    		if req == nil {
    			sc.pipe.StartResponse(id)
    			sc.pipe.EndResponse(id)
    		} else {
    			// Remember the pipeline id of this request
    			sc.mu.Lock()
    			sc.pipereq[req] = id
    			sc.mu.Unlock()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top