- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 466 for pipe1 (0.06 sec)
-
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) -
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) -
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) -
src/runtime/os_solaris.go
r1, _ := sysvicall2Err(fn, a1, a2) return r1 } //go:nosplit //go:cgo_unsafe_args // sysvicall2Err returns both the system call result and the errno value. // This is used by sysvicall2 and pipe2. func sysvicall2Err(fn *libcFunc, a1, a2 uintptr) (uintptr, uintptr) { // Leave caller's PC/SP around for traceback. gp := getg() var mp *m if gp != nil { mp = gp.m }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 6.6K bytes - Viewed (0) -
src/syscall/exec_freebsd.go
// so that pass 2 won't stomp on an fd it needs later. if pipe < nextfd { _, _, err1 = RawSyscall(SYS_FCNTL, uintptr(pipe), F_DUP2FD_CLOEXEC, uintptr(nextfd)) if err1 != 0 { 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: Fri Sep 29 18:51:35 UTC 2023 - 8.4K bytes - Viewed (0) -
src/syscall/exec_libc.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 { switch runtime.GOOS { case "illumos", "solaris": _, err1 = fcntl1(uintptr(pipe), _F_DUP2FD_CLOEXEC, uintptr(nextfd)) default: _, err1 = dup2child(uintptr(pipe), uintptr(nextfd)) if err1 != 0 { goto childerror } _, err1 = fcntl1(uintptr(nextfd), F_SETFD, FD_CLOEXEC)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 29 18:51:35 UTC 2023 - 8.2K bytes - Viewed (0) -
src/image/png/reader_test.go
if c.R != 0x11a7 || c.G != 0x11a7 || c.B != 0x11a7 || c.A != 0x1085 { t.Error(fn, fmt.Errorf("wrong pixel value at (2, 1): %x", c)) } continue } piper, pipew := io.Pipe() pb := bufio.NewScanner(piper) go sng(pipew, fn, img) defer piper.Close() // Read the .sng file. sf, err := os.Open("testdata/pngsuite/" + fn + ".sng") if err != nil { t.Error(fn, err) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 24 12:12:12 UTC 2022 - 28.5K bytes - Viewed (0) -
src/runtime/netpoll_kqueue_pipe.go
// Therefore we use the pipe to wake up the kevent on NetBSD at this point. Get back here // and switch to EVFILT_USER when we bump up the minimal requirement of NetBSD to 10.0. // Alternatively, maybe we can use EVFILT_USER on the NetBSD by checking the kernel version // via uname(3) and fall back to the pipe if the kernel version is older than 10.0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 2.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/libgo2/libgo2.go
// the shared library without using any exported symbols. The init // function creates a pipe and Dups the read end to a known number // that the C code can also use. const ( fd = 30 ) func init() { var p [2]int if e := syscall.Pipe(p[0:]); e != nil { fmt.Fprintf(os.Stderr, "pipe: %v\n", e) os.Exit(2) } if e := dup2(p[0], fd); e != nil { fmt.Fprintf(os.Stderr, "dup2: %v\n", e)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/runtime-gdb_unix_test.go
if err != nil { t.Fatalf("building source %v\n%s", err, out) } r, w, err := os.Pipe() if err != nil { t.Fatalf("error creating control pipe: %v", err) } defer r.Close() // Start the test binary. cmd = testenv.Command(t, "./a.exe", "-pipe-fd=3") cmd.Dir = dir cmd.ExtraFiles = []*os.File{w} var output bytes.Buffer cmd.Stdout = &output // for test logging
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 17 19:05:30 UTC 2024 - 9.4K bytes - Viewed (0)