- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 200 for newRule (0.13 sec)
-
src/cmd/internal/objfile/macho.go
"debug/macho" "fmt" "io" "sort" ) const stabTypeMask = 0xe0 type machoFile struct { macho *macho.File } func openMacho(r io.ReaderAt) (rawFile, error) { f, err := macho.NewFile(r) if err != nil { return nil, err } return &machoFile{f}, nil } func (f *machoFile) symbols() ([]Sym, error) { if f.macho.Symtab == nil { return nil, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 3.1K bytes - Viewed (0) -
src/os/os_test.go
assertPathError(t, path, err) } // Use TempDir (via newFile) to make sure we're on a local file system, // so that timings are not distorted by latency and caching. // On NFS, timings can be off due to caching of meta-data on // NFS servers (Issue 848). func TestChtimes(t *testing.T) { t.Parallel() f := newFile("TestChtimes", t) defer Remove(f.Name()) f.Write([]byte("hello, world\n"))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/net/file_plan9.go
case "ctl", "clone": fd, err := syscall.Dup(int(f.Fd()), -1) if err != nil { return nil, os.NewSyscallError("dup", err) } defer close(fd) dir := netdir + "/" + comp[n-2] ctl = os.NewFile(uintptr(fd), dir+"/"+file) ctl.Seek(0, io.SeekStart) var buf [16]byte n, err := ctl.Read(buf[:]) if err != nil { return nil, err } name = string(buf[:n]) default: if len(comp) < 4 {
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/net/fd_plan9.go
} func (fd *netFD) file(f *os.File, s string) (*os.File, error) { dfd, err := syscall.Dup(int(f.Fd()), -1) if err != nil { return nil, os.NewSyscallError("dup", err) } return os.NewFile(uintptr(dfd), s), nil } func setReadBuffer(fd *netFD, bytes int) error { return syscall.EPLAN9 } func setWriteBuffer(fd *netFD, bytes int) error { return syscall.EPLAN9 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 04 16:01:50 UTC 2018 - 3.6K bytes - Viewed (0) -
pkg/volume/util/volumepathhandler/volume_path_handler.go
if !os.IsNotExist(err) { return fmt.Errorf("failed to stat file %s: %v", linkPath, err) } // Create file newFile, err := os.OpenFile(linkPath, os.O_CREATE|os.O_RDWR, 0750) if err != nil { return fmt.Errorf("failed to open file %s: %v", linkPath, err) } if err := newFile.Close(); err != nil { return fmt.Errorf("failed to close file %s: %v", linkPath, err) } } else { // Check if device file
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 10.7K bytes - Viewed (0) -
src/debug/pe/file_test.go
// (see https://golang.org/issue/30250 and https://golang.org/issue/32126 for details). // Input generated by gofuzz data := []byte("\x00\x00\x00\x0000000\x00\x00\x00\x00\x00\x00\x000000" + "00000000000000000000" + "000000000\x00\x00\x0000000000" + "00000000000000000000" + "0000000000000000") _, err := NewFile(bytes.NewReader(data)) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 01 02:25:16 UTC 2023 - 22.3K bytes - Viewed (0) -
pkg/test/framework/components/istioctl/kube.go
kubeconfig string } // Filenamer is an interface to avoid importing kubecluster package, instead build our own interface // to extract kube context type Filenamer interface { Filename() string } func newKube(ctx resource.Context, config Config) (Instance, error) { fn, ok := ctx.Clusters().GetOrDefault(config.Cluster).(Filenamer) if !ok { return nil, fmt.Errorf("cluster does not support fetching kube config") }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Mar 29 02:29:02 UTC 2024 - 3.7K bytes - Viewed (0) -
src/cmd/link/internal/loadpe/ldpe.go
// object files, and pe.NewFile seeks to the start of // input file and get confused. Create section reader // to stop pe.NewFile looking before current position. sr := io.NewSectionReader((*peBiobuf)(input), input.Offset(), 1<<63-1) // TODO: replace pe.NewFile with pe.Load (grep for "add Load function" in debug/pe for details) f, err := pe.NewFile(sr) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 20:26:46 UTC 2023 - 26.5K bytes - Viewed (0) -
src/debug/macho/file.go
func Open(name string) (*File, error) { f, err := os.Open(name) if err != nil { return nil, err } ff, err := NewFile(f) if err != nil { f.Close() return nil, err } ff.closer = f return ff, nil } // Close closes the [File]. // If the [File] was created using [NewFile] directly instead of [Open], // Close has no effect. func (f *File) Close() error { var err error if f.closer != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 17.9K bytes - Viewed (0) -
pkg/test/framework/components/gcemetadata/kube.go
_ io.Closer = &kubeComponent{} ) type kubeComponent struct { id resource.ID ns namespace.Instance cluster cluster.Cluster address string addressVM string } func newKube(ctx resource.Context, cfg Config) (Instance, error) { c := &kubeComponent{ cluster: ctx.Clusters().GetOrDefault(cfg.Cluster), } c.id = ctx.TrackResource(c) var err error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 04 22:47:52 UTC 2023 - 3.4K bytes - Viewed (0)