- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 138 for isopen (0.4 sec)
-
src/cmd/go/internal/test/cover.go
if coverMerge.f == nil { return } coverMerge.Lock() defer coverMerge.Unlock() expect := fmt.Sprintf("mode: %s\n", cfg.BuildCoverMode) buf := make([]byte, len(expect)) r, err := os.Open(file) if err != nil { // Test did not create profile, which is OK. return } defer r.Close() n, err := io.ReadFull(r, buf) if n == 0 { return } if err != nil || string(buf) != expect {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:50:58 UTC 2022 - 2K bytes - Viewed (0) -
src/cmd/go/internal/cache/cache.go
// in a network file system). File locking is notoriously unreliable in // network file systems and may not suffice to protect the cache. func Open(dir string) (*DiskCache, error) { info, err := os.Stat(dir) if err != nil { return nil, err } if !info.IsDir() { return nil, &fs.PathError{Op: "open", Path: dir, Err: fmt.Errorf("not a directory")} } for i := 0; i < 256; i++ { name := filepath.Join(dir, fmt.Sprintf("%02x", i))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 14:19:39 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/test/pgo_inl_test.go
t.Fatalf("error copying %s : %v", file, err) } } // Add some comments to the top of inline_hot.go. This adjusts the line // numbers of all of the functions without changing the semantics. src, err := os.Open(filepath.Join(srcDir, "inline_hot.go")) if err != nil { t.Fatalf("error opening src inline_hot.go: %v", err) } defer src.Close() dst, err := os.Create(filepath.Join(dir, "inline_hot.go")) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 11.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/cshared_test.go
out, err := exec.Command("go", argv...).CombinedOutput() if err != nil { t.Fatalf("build failure: %s\n%s\n", err, string(out)) } f, err := pe.Open(objfile) if err != nil { t.Fatalf("pe.Open failed: %v", err) } defer f.Close() section := f.Section(".edata") if section == nil { t.Skip(".edata section is not present") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 21K bytes - Viewed (0) -
src/cmd/go/internal/cache/default.go
} if _, err := os.Stat(filepath.Join(dir, "README")); err != nil { // Best effort. os.WriteFile(filepath.Join(dir, "README"), []byte(cacheREADME), 0666) } diskCache, err := Open(dir) if err != nil { base.Fatalf("failed to initialize build cache at %s: %s\n", dir, err) } if v := cfg.Getenv("GOCACHEPROG"); v != "" && goexperiment.CacheProg { defaultCache = startCacheProg(v, diskCache)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/pgen.go
return a.Type().Alignment() > b.Type().Alignment() } // Sort normal variables before open-coded-defer slots, so that the // latter are grouped together and near the top of the frame (to // minimize varint encoding of their varp offset). if a.OpenDeferSlot() != b.OpenDeferSlot() { return a.OpenDeferSlot() } // If a and b are both open-coded defer slots, then order them by
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 15:44:14 UTC 2024 - 13.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main1.c
// int8_t DidInitRun() // returns true // int8_t DidMainRun() // returns true // int32_t FromPkg() // returns 1024 int main(int argc, char** argv) { void* handle = dlopen(argv[1], RTLD_LAZY | RTLD_GLOBAL); if (!handle) { fprintf(stderr, "ERROR: failed to open the shared library: %s\n", dlerror()); return 2; } int ret = 0; ret = check_int8(handle, "DidInitRun", 1); if (ret != 0) { return ret;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/noder/noder.go
"cmd/compile/internal/typecheck" "cmd/compile/internal/types" "cmd/internal/objabi" ) func LoadPackage(filenames []string) { base.Timer.Start("fe", "parse") // Limit the number of simultaneously open files. sem := make(chan struct{}, runtime.GOMAXPROCS(0)+10) noders := make([]*noder, len(filenames)) for i := range noders { p := noder{ err: make(chan syntax.Error), } noders[i] = &p }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/go/internal/work/cover.go
pred := runAct.Deps[i] if pred.Mode != "build" || pred.Package == nil { continue } if pred.Package.ImportPath == p.ImportPath { metaFile := pred.Objdir + covcmd.MetaFileForPackage(p.ImportPath) f, err := os.Open(metaFile) if err != nil { return "", err } defer f.Close() fi, err2 := f.Stat() if err2 != nil { return "", err2 } if fi.Size() == 0 { return "", nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 5.2K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
// .go_export section. func readpkglist(shlibpath string) (pkgs []*load.Package) { var stk load.ImportStack if cfg.BuildToolchainName == "gccgo" { f, err := elf.Open(shlibpath) if err != nil { base.Fatal(fmt.Errorf("failed to open shared library: %v", err)) } defer f.Close() sect := f.Section(".go_export") if sect == nil { base.Fatal(fmt.Errorf("%s: missing .go_export section", shlibpath)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0)