- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 154 for openPipe (0.14 sec)
-
cmd/yamlfmt/yamlfmt.go
fmt.Fprintf(os.Stderr, "%s: %v\n", path, err) continue } rootNode, err := fetchYaml(sourceYaml) if err != nil { fmt.Fprintf(os.Stderr, "%s: %v\n", path, err) continue } writer, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { fmt.Fprintf(os.Stderr, "%s: %v\n", path, err) continue } err = streamYaml(writer, indent, rootNode) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 17 06:23:22 UTC 2023 - 1.7K bytes - Viewed (0) -
internal/ioutil/read_file.go
OpenFileDirectIO = disk.OpenFileDirectIO // OsOpen allows overriding default function. OsOpen = os.Open // OsOpenFile allows overriding default function. OsOpenFile = os.OpenFile ) // ReadFileWithFileInfo reads the named file and returns the contents. // A successful call returns err == nil, not err == EOF. // Because ReadFile reads the whole file, it does not treat an EOF from Read
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 09 18:17:51 UTC 2023 - 2.3K bytes - Viewed (0) -
internal/disk/directio_unix.go
const ODirectPlatform = true // OpenFileDirectIO - bypass kernel cache. func OpenFileDirectIO(filePath string, flag int, perm os.FileMode) (*os.File, error) { return directio.OpenFile(filePath, flag, perm) } // DisableDirectIO - disables directio mode. func DisableDirectIO(f *os.File) error { fd := f.Fd() flag, err := unix.FcntlInt(fd, unix.F_GETFL, 0) if err != nil { return err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 17 14:31:36 UTC 2023 - 1.6K bytes - Viewed (0) -
pkg/volume/volume_linux_test.go
assertFunc func(path string) error }{ { description: "fsGroup=nil", fsGroup: nil, setupFunc: func(path string) error { filename := filepath.Join(path, "file.txt") file, err := os.OpenFile(filename, os.O_RDWR|os.O_CREATE, 0755) if err != nil { return err } file.Close() return nil }, assertFunc: func(path string) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 12.1K bytes - Viewed (0) -
src/internal/coverage/test/counter_test.go
t.Logf("testing flavor %d\n", flav) // Open a counter data file in preparation for emitting data. d := t.TempDir() cfpath := filepath.Join(d, fmt.Sprintf("covcounters.hash.0.%d", kf)) of, err := os.OpenFile(cfpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0666) if err != nil { t.Fatalf("opening covcounters: %v", err) } // Perform the encode and write. cdfw := encodecounter.NewCoverageDataWriter(of, flav)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 26 12:44:34 UTC 2023 - 6.2K bytes - Viewed (0) -
src/net/udpsock_plan9.go
l, err := listenPlan9(ctx, sl.network, laddr) if err != nil { return nil, err } _, err = l.ctl.WriteString("headers") if err != nil { return nil, err } l.data, err = os.OpenFile(l.dir+"/data", os.O_RDWR, 0) if err != nil { return nil, err } fd, err := l.netFD() return newUDPConn(fd), err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 18:35:35 UTC 2021 - 4.6K bytes - Viewed (0) -
src/cmd/covdata/metamerge.go
} defer inf.Close() fi, err := inf.Stat() if err != nil { fatal("accessing input meta-data file %s: %v", inpath, err) } outf, err := os.OpenFile(outpath, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, fi.Mode()) if err != nil { fatal("opening output meta-data file %s: %v", outpath, err) } _, err = io.Copy(outf, inf) outf.Close() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:17:47 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/buildid/buildid.go
if len(newID) != len(id) { log.Fatalf("%s: build ID length mismatch %q vs %q", file, id, newID) } if len(matches) == 0 { return } f, err = os.OpenFile(file, os.O_RDWR, 0) if err != nil { log.Fatal(err) } if err := buildid.Rewrite(f, matches, newID); err != nil { log.Fatal(err) } if err := f.Close(); err != nil { log.Fatal(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 1.7K bytes - Viewed (0) -
src/os/example_test.go
"sync" "time" ) func ExampleOpenFile() { f, err := os.OpenFile("notes.txt", os.O_RDWR|os.O_CREATE, 0644) if err != nil { log.Fatal(err) } if err := f.Close(); err != nil { log.Fatal(err) } } func ExampleOpenFile_append() { // If the file doesn't exist, create it, or append to the file f, err := os.OpenFile("access.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 17:35:49 UTC 2024 - 8.4K bytes - Viewed (0) -
pkg/util/iptables/iptables_linux.go
// iptables-restore version is if it doesn't support --wait, so we // can't assume which lock method it'll use. // Roughly duplicate iptables 1.6.x xtables_lock() function. l.lock16, err = os.OpenFile(lockfilePath16x, os.O_CREATE, 0600) if err != nil { return nil, fmt.Errorf("failed to open iptables lock %s: %v", lockfilePath16x, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 2.6K bytes - Viewed (0)