Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 592 for pipe1 (0.05 sec)

  1. src/io/pipe_test.go

    		}
    		if err = r.Close(); err != nil {
    			t.Errorf("r.Close: %v", err)
    		}
    	}
    }
    
    // Test close on Read side during Read.
    func TestPipeReadClose2(t *testing.T) {
    	c := make(chan int, 1)
    	r, _ := Pipe()
    	go delayClose(t, r, c, pipeTest{})
    	n, err := r.Read(make([]byte, 64))
    	<-c
    	if n != 0 || err != ErrClosedPipe {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. src/cmd/go/terminal_test.go

    	// invocation (rather than, e.g., putting a pipe in the way).
    	//
    	// See issue 18153.
    	testenv.MustHaveGoBuild(t)
    
    	// Start with a "self test" to make sure that if we *don't* pass in a
    	// terminal, the test can correctly detect that. (cmd/go doesn't guarantee
    	// that it won't add a terminal in the middle, but that would be pretty weird.)
    	t.Run("pipe", func(t *testing.T) {
    		r, w, err := os.Pipe()
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 18:18:50 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

        }
    
    
        @Override
        public CIFSContext getTransportContext () {
            return this.pipe.getContext();
        }
    
    
        @Override
        public String getServer () {
            return this.pipe.getLocator().getServer();
        }
    
    
        @Override
        public String getServerWithDfs () {
            return this.pipe.getLocator().getServerWithDfs();
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jan 26 11:51:07 UTC 2020
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransTransactNamedPipeResponse.java

     */
    
    package jcifs.smb1.smb1;
    
    class TransTransactNamedPipeResponse extends SmbComTransactionResponse {
    
        private SmbNamedPipe pipe;
    
        TransTransactNamedPipeResponse( SmbNamedPipe pipe ) {
            this.pipe = pipe;
        }
    
        int writeSetupWireFormat( byte[] dst, int dstIndex ) {
            return 0;
        }
        int writeParametersWireFormat( byte[] dst, int dstIndex ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go

    #include <stdio.h>
    
    // Raise SIGPIPE.
    static void CRaiseSIGPIPE() {
    	int fds[2];
    
    	if (pipe(fds) == -1) {
    		perror("pipe");
    		exit(EXIT_FAILURE);
    	}
    	// Close the reader end
    	close(fds[0]);
    	// Write to the writer end to provoke a SIGPIPE
    	if (write(fds[1], "some data", 9) != -1) {
    		fprintf(stderr, "write to a closed pipe succeeded\n");
    		exit(EXIT_FAILURE);
    	}
    	close(fds[1]);
    }
    */
    import "C"
    
    import (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. 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)
  7. src/go/doc/testdata/example.go

    		}
    
    		// capture stdout and stderr
    		r, w, err := os.Pipe()
    		if err != nil {
    			fmt.Fprintln(os.Stderr, err)
    			os.Exit(1)
    		}
    		os.Stdout, os.Stderr = w, w
    		outC := make(chan string)
    		go func() {
    			buf := new(bytes.Buffer)
    			_, err := io.Copy(buf, r)
    			if err != nil {
    				fmt.Fprintf(stderr, "testing: copying pipe: %v\n", err)
    				os.Exit(1)
    			}
    			outC <- buf.String()
    		}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  8. src/syscall/exec_libc2.go

    	// Pass 1: look for fd[i] < i and move those up above len(fd)
    	// so that pass 2 won't stomp on an fd it needs later.
    	if pipe < nextfd {
    		if runtime.GOOS == "openbsd" {
    			_, _, err1 = rawSyscall(dupTrampoline, uintptr(pipe), uintptr(nextfd), O_CLOEXEC)
    		} else {
    			_, _, err1 = rawSyscall(dupTrampoline, uintptr(pipe), uintptr(nextfd), 0)
    			if err1 != 0 {
    				goto childerror
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/PostStreamingWithPipe.java

        private final Pipe pipe = new Pipe(8192);
        private final BufferedSink sink = Okio.buffer(pipe.sink());
    
        public BufferedSink sink() {
          return sink;
        }
    
        @Override public MediaType contentType() {
          return MEDIA_TYPE_MARKDOWN;
        }
    
        @Override public void writeTo(BufferedSink sink) throws IOException {
          sink.writeAll(pipe.source());
        }
      }
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Jul 06 03:18:15 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  10. 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)
Back to top