Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 200 for newRule (0.2 sec)

  1. src/go/internal/gccgoimporter/importer.go

    		return
    
    	default:
    		objreader = f
    	}
    
    	ef, err := elf.NewFile(objreader)
    	if err == nil {
    		sec := ef.Section(".go_export")
    		if sec == nil {
    			err = fmt.Errorf("%s: .go_export section not found", fpath)
    			return
    		}
    		reader = sec.Open()
    		return
    	}
    
    	xf, err := xcoff.NewFile(objreader)
    	if err == nil {
    		sdat := xf.CSect(".go_export")
    		if sdat == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 6.8K bytes
    - Viewed (0)
  2. internal/logger/logrotate.go

    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    	}
    
    	path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc())
    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. src/os/file_plan9.go

    func (f *File) Fd() uintptr {
    	if f == nil {
    		return ^(uintptr(0))
    	}
    	return uintptr(f.fd)
    }
    
    // NewFile returns a new File with the given file descriptor and
    // name. The returned value will be nil if fd is not a valid file
    // descriptor.
    func NewFile(fd uintptr, name string) *File {
    	fdi := int(fd)
    	if fdi < 0 {
    		return nil
    	}
    	f := &File{&file{fd: fdi, name: name}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. src/os/signal/signal_cgo_test.go

    	// we must ignore SIGTTOU. We are also an orphaned process
    	// group (see above), so we must mask SIGTTOU to be eligible to
    	// become foreground at all.
    	signal.Ignore(syscall.SIGTTOU)
    
    	pty := os.NewFile(ptyFD, "pty")
    	controlW := os.NewFile(controlFD, "control-pipe")
    
    	var (
    		ctx     = context.Background()
    		cmdArgs = []string{"-test.run=^TestTerminalSignal$"}
    	)
    	if deadline, ok := t.Deadline(); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 10:09:15 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go

    					"failed WriteToDisk with an error:\n\texpected: %s\n\t  actual: %s",
    					rt.expected,
    					err,
    				)
    			}
    			newFile, _ := os.ReadFile(configPath)
    			if !bytes.Equal(newFile, rt.file) {
    				t.Errorf(
    					"failed WriteToDisk config write:\n\texpected: %s\n\t  actual: %s",
    					rt.file,
    					newFile,
    				)
    			}
    		})
    	}
    }
    
    func TestGetCurrentAuthInfo(t *testing.T) {
    	var testCases = []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 06:49:59 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  6. platforms/jvm/language-java/src/integTest/groovy/org/gradle/java/compile/incremental/GroovyIncrementalCompilationIntegrationTest.groovy

            outputs.snapshot { run 'compileGroovy' }
    
            when:
            src.text = newFile
            run 'compileGroovy'
    
            then:
            outputs.recompiledClasses(recompileClasses as String[])
            outputs.deletedClasses(deletedClasses as String[])
    
            where:
            action     | oldFile                                   | newFile                                    | recompileClasses | deletedClasses
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  7. src/os/pipe_test.go

    	t.Parallel()
    
    	var p [2]syscallDescriptor
    	err := syscall.Pipe(p[:])
    	if err != nil {
    		t.Fatal(err)
    	}
    	// os.NewFile returns a blocking mode file.
    	testCloseWithBlockingRead(t, os.NewFile(uintptr(p[0]), "reader"), os.NewFile(uintptr(p[1]), "writer"))
    }
    
    func TestCloseWithBlockingReadByFd(t *testing.T) {
    	t.Parallel()
    
    	r, w, err := os.Pipe()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  8. src/internal/xcoff/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: Mon Feb 12 14:42:29 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/elf_test.go

    		t.Fatalf("%v: %v:\n%s", cmd.Args, err, out)
    	}
    
    	fi, err := os.Open(binFile)
    	if err != nil {
    		t.Fatalf("failed to open built file: %v", err)
    	}
    	defer fi.Close()
    
    	elfFile, err := elf.NewFile(fi)
    	if err != nil {
    		t.Skip("The system may not support ELF, skipped.")
    	}
    
    	section := elfFile.Section(".dynsym")
    	if section == nil {
    		t.Fatal("no dynsym")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 17 04:32:02 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top