Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for pipe1 (0.17 sec)

  1. src/os/os_test.go

    	}
    }
    
    // Test that it's OK to have parallel I/O and Close on a pipe.
    func TestPipeIOCloseRace(t *testing.T) {
    	// Skip on wasm, which doesn't have pipes.
    	if runtime.GOOS == "js" || runtime.GOOS == "wasip1" {
    		t.Skipf("skipping on %s: no pipes", runtime.GOOS)
    	}
    	t.Parallel()
    
    	r, w, err := Pipe()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var wg sync.WaitGroup
    	wg.Add(3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    	{"or short-circuit2", "{{or 0 0 (die)}}", "", nil, false},
    	{"and short-circuit2", "{{and 1 1 (die)}}", "", nil, false},
    	{"and pipe-true", "{{1 | and 1}}", "1", nil, true},
    	{"and pipe-false", "{{0 | and 1}}", "0", nil, true},
    	{"or pipe-true", "{{1 | or 0}}", "1", nil, true},
    	{"or pipe-false", "{{0 | or 0}}", "0", nil, true},
    	{"and undef", "{{and 1 .Unknown}}", "<no value>", nil, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFile.java

            if ( getType() == TYPE_NAMED_PIPE ) { // try opening the pipe for reading?
                return true;
            }
            return exists(); // try opening and catch sharing violation?
        }
    
    
        @Override
        public boolean canWrite () throws SmbException {
            if ( getType() == TYPE_NAMED_PIPE ) { // try opening the pipe for writing?
                return true;
            }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  4. src/syscall/zerrors_solaris_amd64.go

    	26:  "text file busy",
    	27:  "file too large",
    	28:  "no space left on device",
    	29:  "illegal seek",
    	30:  "read-only file system",
    	31:  "too many links",
    	32:  "broken pipe",
    	33:  "argument out of domain",
    	34:  "result too large",
    	35:  "no message of desired type",
    	36:  "identifier removed",
    	37:  "channel number out of range",
    	38:  "level 2 not synchronized",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 50.8K bytes
    - Viewed (0)
  5. src/testing/testing.go

    		// With -v=json, stdout and stderr are pointing to the same pipe,
    		// which is leading into test2json. In general, operating systems
    		// do a good job of ensuring that writes to the same pipe through
    		// different file descriptors are delivered whole, so that writing
    		// AAA to stdout and BBB to stderr simultaneously produces
    		// AAABBB or BBBAAA on the pipe, not something like AABBBA.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/modload/init.go

    	// that child keeps stdout/stderr open. After the Git subprocess exits,
    	// os/exec expects to be able to read from the stdout/stderr pipe
    	// until EOF to get all the data that the Git subprocess wrote before exiting.
    	// The EOF doesn't come until the child exits too, because the child
    	// is holding the write end of the pipe.
    	// This is unfortunate, but it has come up at least twice
    	// (see golang.org/issue/13453 and golang.org/issue/16104)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  7. configure.py

        raise FileNotFoundError(
            "Can't find 'find_cuda_config.py' script inside working directory")
      proc = subprocess.Popen(
          [environ_cp['PYTHON_BIN_PATH'], paths[0]] + cuda_libraries,
          stdout=subprocess.PIPE,
          env=maybe_encode_env(environ_cp))
    
      if proc.wait():
        # Errors from find_cuda_config.py were sent to stderr.
        print('Asking for detailed CUDA configuration...\n')
        return False
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 04:32:44 UTC 2024
    - 53.8K bytes
    - Viewed (1)
  8. src/net/http/client_test.go

    		close(reqc)
    		if _, err := io.Copy(w, r.Body); err != nil {
    			t.Errorf("error copying request body: %v", err)
    		}
    	}))
    
    	bodyr, bodyw := io.Pipe()
    	var gotBody string
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		req, _ := NewRequest("GET", cst.ts.URL, bodyr)
    		res, err := cst.c.Do(req)
    		b, err := io.ReadAll(res.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    			// Make sure to return object info to provide extra information.
    			return &GetObjectReader{
    				ObjInfo: objInfo,
    			}, err
    		}
    
    		// Zero byte objects don't even need to further initialize pipes etc.
    		return NewGetObjectReaderFromReader(bytes.NewReader(nil), objInfo, opts)
    	}
    
    	if objInfo.IsRemote() {
    		gr, err := getTransitionedObjectReader(ctx, bucket, object, rs, h, objInfo, opts)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modget/get.go

    The general form of the GOVCS setting is a comma-separated list of
    pattern:vcslist rules. The pattern is a glob pattern that must match
    one or more leading elements of the module or import path. The vcslist
    is a pipe-separated list of allowed version control commands, or "all"
    to allow use of any known command, or "off" to disallow all commands.
    Note that if a module matches a pattern with vcslist "off", it may still be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
Back to top