Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 592 for pipe1 (0.04 sec)

  1. src/text/template/exec.go

    	val, _ := indirect(s.evalPipeline(dot, r.Pipe))
    	// mark top of stack before any variables in the body are pushed.
    	mark := s.mark()
    	oneIteration := func(index, elem reflect.Value) {
    		if len(r.Pipe.Decl) > 0 {
    			if r.Pipe.IsAssign {
    				// With two variables, index comes first.
    				// With one, we use the element.
    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/net/pipe_test.go

    )
    
    func TestPipe(t *testing.T) {
    	nettest.TestConn(t, func() (c1, c2 net.Conn, stop func(), err error) {
    		c1, c2 = net.Pipe()
    		stop = func() {
    			c1.Close()
    			c2.Close()
    		}
    		return
    	})
    }
    
    func TestPipeCloseError(t *testing.T) {
    	c1, c2 := net.Pipe()
    	c1.Close()
    
    	if _, err := c1.Read(nil); err != io.ErrClosedPipe {
    		t.Errorf("c1.Read() = %v, want io.ErrClosedPipe", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/crashdump.go

    	// Wait for all the goroutines to start executing.
    	for _, c := range chans {
    		<-c
    	}
    
    	// Tell our parent that all the goroutines are executing.
    	if _, err := os.NewFile(3, "pipe").WriteString("x"); err != nil {
    		fmt.Fprintf(os.Stderr, "write to pipe failed: %v\n", err)
    		os.Exit(2)
    	}
    
    	select {}
    }
    
    func crashDumpsAllThreadsLoop(i int, c chan bool) {
    	close(c)
    	for {
    		for j := 0; j < 0x7fffffff; j++ {
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 22 00:34:25 UTC 2021
    - 917 bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DosError.java

            "The pipe has been ended.", "The filename, directory name, or volume label syntax is incorrect.", "The directory is not empty.",
            "Cannot create a file when that file already exists.", "All pipe instances are busy.", "The pipe is being closed.",
            "No process is on the other end of the pipe.", "More data is available.", "This user account has expired.",
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:52:42 UTC 2020
    - 4.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/DosError.java

            "The pipe has been ended.",
            "The filename, directory name, or volume label syntax is incorrect.",
            "The directory is not empty.",
            "Cannot create a file when that file already exists.",
            "All pipe instances are busy.",
            "The pipe is being closed.",
            "No process is on the other end of the pipe.",
            "More data is available.",
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 4.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        source2!!.close()
        assertThat(relay.isClosed).isTrue()
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun racingReaders() {
        val pipe = Pipe(1024)
        val sink = pipe.sink.buffer()
        val relay = edit(file, pipe.source, metadata, 5)
        val future1 = executor.submit(sourceReader(relay.newSource()))
        val future2 = executor.submit(sourceReader(relay.newSource()))
        Thread.sleep(500)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_timeout_stdin.txt

    	# the kernel closes its stdin pipe to to the orphaned subprocess.
    	# At that point, we expect the subprocess to print 'stdin closed'
    	# and periodically log to stderr until the WaitDelay expires.
    	#
    	# Once the WaitDelay expires, the copying goroutine for 'go test' stops and
    	# closes the read side of the stderr pipe, and the subprocess will eventually
    	# exit due to a failed write to that pipe.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 02 20:23:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/jcifs/smb/SmbPipeInputStream.java

    
        /**
         * This stream class is unbuffered. Therefore this method will always
         * return 0 for streams connected to regular files. However, a
         * stream created from a Named Pipe this method will query the server using a
         * "peek named pipe" operation and return the number of available bytes
         * on the server.
         */
        @Override
        public int available () throws IOException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Aug 05 07:12:23 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  10. 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)
Back to top