- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 154 for openPipe (0.14 sec)
-
src/net/ipsock_plan9.go
n, err := listen.Read(buf[:]) if err != nil { listen.Close() return nil, err } name := string(buf[:n]) ctl, err := os.OpenFile(netdir+"/"+fd.net+"/"+name+"/ctl", os.O_RDWR, 0) if err != nil { listen.Close() return nil, err } data, err := os.OpenFile(netdir+"/"+fd.net+"/"+name+"/data", os.O_RDWR, 0) if err != nil { listen.Close() ctl.Close() return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 20:38:53 UTC 2023 - 7.5K bytes - Viewed (0) -
src/runtime/internal/wasitest/nonblock_test.go
if target != "wasip1/wasm" { t.Skip() } switch os.Getenv("GOWASIRUNTIME") { case "wasmer": t.Skip("wasmer does not support non-blocking I/O") } for _, mode := range []string{"os.OpenFile", "os.NewFile"} { t.Run(mode, func(t *testing.T) { args := []string{"run", "./testdata/nonblock.go", mode} fifos := make([]*fifo, 8) for i := range fifos {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 29 15:35:27 UTC 2023 - 2.4K bytes - Viewed (0) -
src/runtime/testdata/testsuid/main.go
package main import ( "fmt" "log" "os" ) func main() { if os.Geteuid() == os.Getuid() { os.Exit(99) } fmt.Fprintf(os.Stdout, "GOTRACEBACK=%s\n", os.Getenv("GOTRACEBACK")) f, err := os.OpenFile(os.Getenv("TEST_OUTPUT"), os.O_CREATE|os.O_RDWR, 0600) if err != nil { log.Fatalf("os.Open failed: %s", err) } defer f.Close() fmt.Fprintf(os.Stderr, "hello\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 06 18:49:01 UTC 2023 - 534 bytes - Viewed (0) -
src/os/error_test.go
if err != nil { t.Fatalf("open ErrPathNUL tempfile: %s", err) } defer os.Remove(f.Name()) defer f.Close() f2, err := os.OpenFile(f.Name(), os.O_RDWR, 0600) if err != nil { t.Fatalf("open ErrPathNUL: %s", err) } f2.Close() f2, err = os.OpenFile(f.Name()+"\x00", os.O_RDWR, 0600) if err == nil { f2.Close() t.Fatal("Open should have failed") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 00:41:52 UTC 2023 - 4.9K bytes - Viewed (0) -
internal/ioutil/append-file_nix.go
func AppendFile(dst string, src string, osync bool) error { flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE if osync { flags |= os.O_SYNC } appendFile, err := os.OpenFile(dst, flags, 0o666) if err != nil { return err } defer appendFile.Close() srcFile, err := os.Open(src) if err != nil { return err } defer srcFile.Close()
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.3K bytes - Viewed (0) -
src/runtime/testdata/testfds/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" "io" "log" "os" ) func main() { f, err := os.OpenFile(os.Getenv("TEST_OUTPUT"), os.O_CREATE|os.O_RDWR, 0600) if err != nil { log.Fatalf("os.Open failed: %s", err) } defer f.Close() b, err := io.ReadAll(os.Stdin) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 25 16:33:33 UTC 2023 - 642 bytes - Viewed (0) -
src/net/file_plan9.go
} name = string(buf[:n]) default: if len(comp) < 4 { return nil, errors.New("could not find control file for connection") } dir := netdir + "/" + comp[1] + "/" + name ctl, err = os.OpenFile(dir+"/ctl", os.O_RDWR, 0) if err != nil { return nil, err } defer close(int(ctl.Fd())) } dir := netdir + "/" + comp[1] + "/" + name laddr, err := readPlan9Addr(comp[1], dir+"/local") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_mutator.txt
logFile *os.File ) func TestMain(m *testing.M) { flag.Parse() var err error logFile, err = os.OpenFile(*logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666) if os.IsExist(err) { *logPath += ".worker" logFile, err = os.OpenFile(*logPath, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666) } if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } os.Exit(m.Run()) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/kubelet/container/testing/os.go
return res, nil } return nil, nil } // Open is a fake call that returns nil. func (*FakeOS) Open(name string) (*os.File, error) { return nil, nil } // OpenFile is a fake call that return nil. func (*FakeOS) OpenFile(name string, flag int, perm os.FileMode) (*os.File, error) { return nil, nil } // Rename is a fake call that return nil. func (*FakeOS) Rename(oldpath, newpath string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 13:37:31 UTC 2023 - 3.7K bytes - Viewed (0) -
src/runtime/internal/wasitest/testdata/nonblock.go
mode := os.Args[1] ready := make(chan struct{}) var wg sync.WaitGroup for _, path := range os.Args[2:] { f, err := os.Open(path) if err != nil { panic(err) } switch mode { case "os.OpenFile": case "os.NewFile": fd := f.Fd() if err := syscall.SetNonblock(int(fd), true); err != nil { panic(err) } f = os.NewFile(fd, path) default: panic("invalid test mode") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 26 17:59:52 UTC 2023 - 1K bytes - Viewed (0)