Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for newRule (0.25 sec)

  1. src/os/file_unix.go

    	}
    
    	return uintptr(f.pfd.Sysfd)
    }
    
    // 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. On Unix systems, if the file descriptor is in
    // non-blocking mode, NewFile will attempt to return a pollable File
    // (one for which the SetDeadline methods work).
    //
    // After passing it to NewFile, fd may become invalid under the same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/debug/buildinfo/buildinfo.go

    	}
    
    	var x exe
    	switch {
    	case bytes.HasPrefix(ident, []byte("\x7FELF")):
    		f, err := elf.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &elfExe{f}
    	case bytes.HasPrefix(ident, []byte("MZ")):
    		f, err := pe.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &peExe{f}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/types2/call.go

    			reverse = true
    		}
    
    		// Rename type parameters to avoid problems with recursive instantiations.
    		// Note that NewTuple(params...) below is (*Tuple)(nil) if len(params) == 0, as desired.
    		tparams, params2 := check.renameTParams(pos, sig.TypeParams().list(), NewTuple(params...))
    
    		err := check.newError(CannotInferTypeArgs)
    		targs = check.infer(pos, tparams, targs, params2.(*Tuple), args, reverse, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    			default:
    				check.errorf(recv, InvalidRecv, "invalid receiver type %s", recv.typ)
    			}
    		}).describef(recv, "validate receiver %s", recv)
    	}
    
    	sig.params = NewTuple(params...)
    	sig.results = NewTuple(results...)
    	sig.variadic = variadic
    }
    
    // collectParams declares the parameters of list in scope and returns the corresponding
    // variable list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/go/types/call.go

    			reverse = true
    		}
    
    		// Rename type parameters to avoid problems with recursive instantiations.
    		// Note that NewTuple(params...) below is (*Tuple)(nil) if len(params) == 0, as desired.
    		tparams, params2 := check.renameTParams(pos, sig.TypeParams().list(), NewTuple(params...))
    
    		err := check.newError(CannotInferTypeArgs)
    		targs = check.infer(atPos(pos), tparams, targs, params2.(*Tuple), args, reverse, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/rangefunc/rewrite.go

    			}
    		}
    		params = append(params, paramVar)
    	}
    
    	tv := syntax.TypeAndValue{
    		Type: types2.NewSignatureType(nil, nil, nil,
    			types2.NewTuple(params...),
    			types2.NewTuple(results...),
    			false),
    	}
    	tv.SetIsValue()
    	bodyFunc.SetTypeInfo(tv)
    
    	loop := r.forStack[len(r.forStack)-1]
    
    	if r.checkFuncMisuse() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  8. src/syscall/fs_wasip1.go

    //go:build wasip1
    
    package syscall
    
    import (
    	"internal/stringslite"
    	"runtime"
    	"unsafe"
    )
    
    func init() {
    	// Try to set stdio to non-blocking mode before the os package
    	// calls NewFile for each fd. NewFile queries the non-blocking flag
    	// but doesn't change it, even if the runtime supports non-blocking
    	// stdio. Since WebAssembly modules are single-threaded, blocking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/check.go

    	if m := check.Types; m != nil {
    		for {
    			tv := m[x]
    			assert(tv.Type != nil) // should have been recorded already
    			pos := x.Pos()
    			tv.Type = NewTuple(
    				NewVar(pos, check.pkg, "", t0),
    				NewVar(pos, check.pkg, "", t1),
    			)
    			m[x] = tv
    			// if x is a parenthesized expression (p.X), update p.X
    			p, _ := x.(*syntax.ParenExpr)
    			if p == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/macho_combine_dwarf.go

    		return err
    	}
    	defer dwarff.Close()
    	outf, err := os.OpenFile(outexe, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755)
    	if err != nil {
    		return err
    	}
    	defer outf.Close()
    	dwarfm, err := macho.NewFile(dwarff)
    	if err != nil {
    		return err
    	}
    	defer dwarfm.Close()
    
    	// The string table needs to be the last thing in the file
    	// for code signing to work. So we'll need to move the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top