Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 339 for Fname (0.04 sec)

  1. src/cmd/vendor/golang.org/x/telemetry/internal/upload/upload.go

    	} else if match[1] > today {
    		u.logger.Printf("Report date for %q is later than today (%s)", filepath.Base(fname), today)
    		return // report is in the future, which shouldn't happen
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    		u.logger.Printf("%v reading %s", err, fname)
    		return
    	}
    	if u.uploadReportContents(fname, buf) {
    		// anything left to do?
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 14:52:56 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/telemetry/internal/upload/date.go

    }
    
    func (u *uploader) parseCountFile(fname string) (*counter.File, error) {
    	u.cache.mu.Lock()
    	defer u.cache.mu.Unlock()
    	if u.cache.m == nil {
    		u.cache.m = make(map[string]*counter.File)
    	}
    	if f, ok := u.cache.m[fname]; ok {
    		return f, nil
    	}
    	buf, err := os.ReadFile(fname)
    	if err != nil {
    		return nil, fmt.Errorf("parse ReadFile: %v for %s", err, fname)
    	}
    	f, err := counter.Parse(fname, buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/settings.go

    	}
    	return editSettings(fname, func(s *settings) error {
    		for i, c := range s.Configs {
    			if c.Name == name {
    				s.Configs[i].config = cfg
    				return nil
    			}
    		}
    		s.Configs = append(s.Configs, namedConfig{Name: name, config: cfg})
    		return nil
    	})
    }
    
    // removeConfig removes config from fname.
    func removeConfig(fname, config string) error {
    	return editSettings(fname, func(s *settings) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main1.c

    #include <stdio.h>
    #include <dlfcn.h>
    
    int check_int8(void* handle, const char* fname, int8_t want) {
      int8_t (*fn)();
      fn = (int8_t (*)())dlsym(handle, fname);
      if (!fn) {
        fprintf(stderr, "ERROR: missing %s: %s\n", fname, dlerror());
        return 1;
      }
      signed char ret = fn();
      if (ret != want) {
        fprintf(stderr, "ERROR: %s=%d, want %d\n", fname, ret, want);
        return 1;
      }
      return 0;
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    		return nil, nil
    	}
    
    	// Find assembly files to work on.
    	var sfiles []string
    	for _, fname := range pass.OtherFiles {
    		if strings.HasSuffix(fname, ".s") && pass.Pkg.Path() != "runtime" {
    			sfiles = append(sfiles, fname)
    		}
    	}
    
    	for _, fname := range sfiles {
    		content, tf, err := analysisutil.ReadFile(pass, fname)
    		if err != nil {
    			return nil, err
    		}
    
    		lines := strings.SplitAfter(string(content), "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/net/http/filetransport_test.go

    	}
    }
    
    func TestFileTransport(t *testing.T) {
    	check := checker(t)
    
    	dname := t.TempDir()
    	fname := filepath.Join(dname, "foo.txt")
    	err := os.WriteFile(fname, []byte("Bar"), 0644)
    	check("WriteFile", err)
    	defer os.Remove(fname)
    
    	tr := &Transport{}
    	tr.RegisterProtocol("file", NewFileTransport(Dir(dname)))
    	c := &Client{Transport: tr}
    
    	fooURLs := []string{"file:///foo.txt", "file://../foo.txt"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 17:07:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. src/testing/fstest/mapfs.go

    	var need = make(map[string]bool)
    	if name == "." {
    		elem = "."
    		for fname, f := range fsys {
    			i := strings.Index(fname, "/")
    			if i < 0 {
    				if fname != "." {
    					list = append(list, mapFileInfo{fname, f})
    				}
    			} else {
    				need[fname[:i]] = true
    			}
    		}
    	} else {
    		elem = name[strings.LastIndex(name, "/")+1:]
    		prefix := name + "/"
    		for fname, f := range fsys {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/modular_filesystem.h

      std::string TranslateName(const std::string& name) const override;
      void FlushCaches(TransactionToken* token) override;
      Status SetOption(const std::string& name,
                       const std::vector<string>& values) override;
      Status SetOption(const std::string& name,
                       const std::vector<int64_t>& values) override;
      Status SetOption(const std::string& name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 12 08:49:52 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/callback_windows.go

    		if f == nil {
    			continue
    		}
    		fname := f.Name()
    		switch fname {
    		case "goCallback":
    			// TODO(qmuntal): investigate why this function doesn't appear
    			// when using the external linker.
    			continue
    		}
    		// In module mode, this package has a fully-qualified import path.
    		// Remove it if present.
    		fname = strings.TrimPrefix(fname, "cmd/cgo/internal/")
    		if !strings.HasPrefix(fname, "test.") {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 16:01:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      return StatusFromTF_Status(plugin_status.get());
    }
    
    std::string ModularFileSystem::TranslateName(const std::string& name) const {
      if (ops_->translate_name == nullptr) return FileSystem::TranslateName(name);
    
      char* p = ops_->translate_name(filesystem_.get(), name.c_str());
      CHECK(p != nullptr) << "TranslateName(" << name << ") returned nullptr";
    
      std::string ret(p);
      // Since `p` is allocated by plugin, free it using plugin's method.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top