Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 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/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)
  3. 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)
  4. 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)
  5. src/text/template/parse/node.go

    	NodeType
    	Pos
    	tr   *Tree
    	Line int       // The line number in the input. Deprecated: Kept for compatibility.
    	Pipe *PipeNode // The pipeline in the action.
    }
    
    func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
    	return &ActionNode{tr: t, NodeType: NodeAction, Pos: pos, Line: line, Pipe: pipe}
    }
    
    func (a *ActionNode) String() string {
    	var sb strings.Builder
    	a.writeTo(&sb)
    	return sb.String()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    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: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. src/syscall/syscall_solaris.go

    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
    }
    
    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: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. src/syscall/exec_plan9.go

    	// so that pass 2 won't stomp on an fd it needs later.
    	if pipe < nextfd {
    		r1, _, _ = RawSyscall(SYS_DUP, uintptr(pipe), uintptr(nextfd), 0)
    		if int32(r1) == -1 {
    			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: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/start.go

    			log.Fatalf("opening sidecar log file for child: %v", err)
    		}
    		defer childLog.Close()
    		cmd.Stderr = childLog
    	}
    
    	if reportCrashes {
    		pipe, err := cmd.StdinPipe()
    		if err != nil {
    			log.Fatalf("StdinPipe: %v", err)
    		}
    
    		crashmonitor.Parent(pipe.(*os.File)) // (this conversion is safe)
    	}
    
    	if err := cmd.Start(); err != nil {
    		log.Fatalf("can't start telemetry child process: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/internal/fuzz/worker.go

    	cmd.Env = w.env[:len(w.env):len(w.env)] // copy on append to ensure workers don't overwrite each other.
    
    	// Create the "fuzz_in" and "fuzz_out" pipes so we can communicate with
    	// the worker. We don't use stdin and stdout, since the test binary may
    	// do something else with those.
    	//
    	// Each pipe has a reader and a writer. The coordinator writes to fuzzInW
    	// and reads from fuzzOutR. The worker inherits fuzzInR and fuzzOutW.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top