Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pkg/kubelet/kubelet_pods_windows_test.go

    			ContainerPath:  `c:/mnt/path7`,
    			HostPath:       `c:\mnt\disk7`,
    			ReadOnly:       false,
    			SELinuxRelabel: false,
    		},
    		{
    			Name:           "pipe1",
    			ContainerPath:  `\\.\pipe\pipe1`,
    			HostPath:       `\\.\pipe\pipe1`,
    			ReadOnly:       false,
    			SELinuxRelabel: false,
    		},
    		{
    			Name:           "k8s-managed-etc-hosts",
    			ContainerPath:  `C:\Windows\System32\drivers\etc\hosts`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/io/pipe.go

    	a.Lock()
    	defer a.Unlock()
    	return a.err
    }
    
    // ErrClosedPipe is the error used for read or write operations on a closed pipe.
    var ErrClosedPipe = errors.New("io: read/write on closed pipe")
    
    // A pipe is the shared pipe structure underlying PipeReader and PipeWriter.
    type pipe struct {
    	wrMu sync.Mutex // Serializes Write operations
    	wrCh chan []byte
    	rdCh chan int
    
    	once sync.Once // Protects closing done
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. src/net/pipe.go

    	}
    	return p1, p2
    }
    
    func (*pipe) LocalAddr() Addr  { return pipeAddr{} }
    func (*pipe) RemoteAddr() Addr { return pipeAddr{} }
    
    func (p *pipe) Read(b []byte) (int, error) {
    	n, err := p.read(b)
    	if err != nil && err != io.EOF && err != io.ErrClosedPipe {
    		err = &OpError{Op: "read", Net: "pipe", Err: err}
    	}
    	return n, err
    }
    
    func (p *pipe) read(b []byte) (n int, err error) {
    	switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/internal/trace/testdata/testprog/wait-on-pipe.go

    import (
    	"log"
    	"os"
    	"runtime/trace"
    	"syscall"
    	"time"
    )
    
    func main() {
    	// Create a pipe to block on.
    	var p [2]int
    	if err := syscall.Pipe(p[:]); err != nil {
    		log.Fatalf("failed to create pipe: %v", err)
    	}
    	rfd, wfd := p[0], p[1]
    
    	// Create a goroutine that blocks on the pipe.
    	done := make(chan struct{})
    	go func() {
    		var data [1]byte
    		_, err := syscall.Read(rfd, data[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/internal/poll/splice_linux.go

    	_ [24 - unsafe.Sizeof(splicePipeFields{})%24]byte
    }
    
    // splicePipePool caches pipes to avoid high-frequency construction and destruction of pipe buffers.
    // The garbage collector will free all pipes in the sync.Pool periodically, thus we need to set up
    // a finalizer for each pipe to close its file descriptors before the actual GC.
    var splicePipePool = sync.Pool{New: newPoolPipe}
    
    func newPoolPipe() any {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. src/os/pipe2_unix.go

    package os
    
    import "syscall"
    
    // Pipe returns a connected pair of Files; reads from r return bytes written to w.
    // It returns the files and an error, if any.
    func Pipe() (r *File, w *File, err error) {
    	var p [2]int
    
    	e := syscall.Pipe2(p[0:], syscall.O_CLOEXEC)
    	if e != nil {
    		return nil, nil, NewSyscallError("pipe2", e)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:47:23 UTC 2024
    - 654 bytes
    - Viewed (0)
  7. src/os/pipe_wasm.go

    //go:build wasm
    
    package os
    
    import "syscall"
    
    // Pipe returns a connected pair of Files; reads from r return bytes written to w.
    // It returns the files and an error, if any.
    func Pipe() (r *File, w *File, err error) {
    	// Neither GOOS=js nor GOOS=wasip1 have pipes.
    	return nil, nil, NewSyscallError("pipe", syscall.ENOSYS)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 488 bytes
    - Viewed (0)
  8. pkg/kubelet/util/util_windows.go

    	}
    	// windows pipes are expected to use forward slashes: https://learn.microsoft.com/windows/win32/ipc/pipe-names
    	// so using `url` like we do on unix gives us unclear benefits - see https://github.com/kubernetes/kubernetes/issues/78628
    	// So we just construct the path from scratch.
    	// Format: \\ServerName\pipe\PipeName
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  9. 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)
  10. src/internal/trace/testdata/testprog/stress-start-stop.go

    			outerDone <- true
    		}()
    
    		var wg sync.WaitGroup
    		done := make(chan bool)
    
    		wg.Add(1)
    		go func() {
    			<-done
    			wg.Done()
    		}()
    
    		rp, wp, err := os.Pipe()
    		if err != nil {
    			log.Fatalf("failed to create pipe: %v", err)
    			return
    		}
    		defer func() {
    			rp.Close()
    			wp.Close()
    		}()
    		wg.Add(1)
    		go func() {
    			var tmp [1]byte
    			rp.Read(tmp[:])
    			<-done
    			wg.Done()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top