- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 154 for openPipe (0.18 sec)
-
src/testing/run_example_wasm.go
eg.F() finished = true return } func createTempFile(exampleName string) *os.File { for i := 0; ; i++ { name := fmt.Sprintf("%s/go-example-stdout-%s-%d.txt", os.TempDir(), exampleName, i) f, err := os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_EXCL, 0600) if err != nil { if os.IsExist(err) { continue } fmt.Fprintf(os.Stderr, "testing: open temp file: %v\n", err) os.Exit(1) } return f }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/checkdwarf/main.go
return nil } return exe } func openPE(path string) dwarfer { exe, err := pe.Open(path) if err != nil { return nil } return exe } func main() { if len(os.Args) != 3 { usage() } exePath := os.Args[1] dieSuffix := os.Args[2] var exe dwarfer for _, openfn := range []func(string) dwarfer{openMacho, openPE, openElf} { exe = openfn(exePath) if exe != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.8K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/tempfile.go
) // newTempFile returns a new output file in dir with the provided prefix and suffix. func newTempFile(dir, prefix, suffix string) (*os.File, error) { for index := 1; index < 10000; index++ { switch f, err := os.OpenFile(filepath.Join(dir, fmt.Sprintf("%s%03d%s", prefix, index, suffix)), os.O_RDWR|os.O_CREATE|os.O_EXCL, 0666); { case err == nil: return f, nil case !os.IsExist(err): return nil, err } } // Give up
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 22 23:33:06 UTC 2020 - 1.7K bytes - Viewed (0) -
src/cmd/internal/bootstrap_test/overlaydir_test.go
return nil } // Otherwise, copy the bytes. src, err := os.Open(srcPath) if err != nil { return err } defer src.Close() dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm) if err != nil { return err } _, err = io.Copy(dst, src) if closeErr := dst.Close(); err == nil { err = closeErr } return err })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:35:05 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
Trace("Open", path) return openFile(path, os.O_RDONLY, 0) } func openFile(path string, flag int, perm os.FileMode) (*os.File, error) { cpath := canonicalize(path) if node, ok := overlay[cpath]; ok { // Opening a file in the overlay. if node.isDir() { return nil, &fs.PathError{Op: "OpenFile", Path: path, Err: errors.New("fsys.OpenFile doesn't support opening directories yet")} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
test/ken/rob2.go
var token int var peekc int = -1 var lineno int32 = 1 var input string var inputindex int = 0 var tokenbuf [100]byte var tokenlen int = 0 const EOF int = -1 func main() { var list *Slist OpenFile() for { list = Parse() if list == nil { break } r := list.Print() list.Free() if r != "(defn foo (add 12 34))" { panic(r) } break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 4.3K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
} p.packages[bp.ImportPath] = pkg return pkg, nil } func (p *Importer) parseFiles(dir string, filenames []string) ([]*ast.File, error) { // use build.Context's OpenFile if there is one open := p.ctxt.OpenFile if open == nil { open = func(name string) (io.ReadCloser, error) { return os.Open(name) } } files := make([]*ast.File, len(filenames)) errors := make([]error, len(filenames))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
cmd/kubeadm/app/util/copy.go
if err != nil { return err } sourceFile, err := os.Open(src) if err != nil { return err } defer func() { _ = sourceFile.Close() }() destFile, err := os.OpenFile(dest, os.O_WRONLY|os.O_CREATE|os.O_TRUNC, sourceFileInfo.Mode()) if err != nil { return err } defer func() { _ = destFile.Close() }() _, err = io.Copy(destFile, sourceFile) return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 01:42:57 UTC 2024 - 1.9K bytes - Viewed (0) -
internal/disk/directio_darwin.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() _, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0) return err }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 17 14:31:36 UTC 2023 - 1.4K bytes - Viewed (0) -
src/cmd/cgo/internal/cgotest/overlaydir.go
return nil } // Otherwise, copy the bytes. src, err := os.Open(srcPath) if err != nil { return err } defer src.Close() dst, err := os.OpenFile(dstPath, os.O_WRONLY|os.O_CREATE|os.O_EXCL, perm) if err != nil { return err } _, err = io.Copy(dst, src) if closeErr := dst.Close(); err == nil { err = closeErr } return err })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 22 20:56:09 UTC 2023 - 1.7K bytes - Viewed (0)