Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 274 for pmap (0.04 sec)

  1. test/fixedbugs/issue15002.go

    )
    
    // Use global variables so the compiler
    // doesn't know that they are constants.
    var p = syscall.Getpagesize()
    var zero = 0
    var one = 1
    
    func main() {
    	// Allocate 2 pages of memory.
    	b, err := syscall.Mmap(-1, 0, 2*p, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	// Mark the second page as faulting.
    	err = syscall.Mprotect(b[p:], syscall.PROT_NONE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/predicates.go

    					g := b[i]
    					if f.Id() != g.Id() || !c.identical(f.typ, g.typ, q) {
    						return false
    					}
    				}
    				return true
    			}
    		}
    
    	case *Map:
    		// Two map types are identical if they have identical key and value types.
    		if y, ok := y.(*Map); ok {
    			return c.identical(x.key, y.key, p) && c.identical(x.elem, y.elem, p)
    		}
    
    	case *Chan:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/main.go

    	// which we don't know the size.
    	if ctxt.Arch.Family != sys.Wasm {
    		// Don't mmap if we're building for Wasm. Wasm file
    		// layout is very different so filesize is meaningless.
    		if err := ctxt.Out.Mmap(filesize); err != nil {
    			Exitf("mapping output file failed: %v", err)
    		}
    	}
    	// asmb will redirect symbols to the output file mmap, and relocations
    	// will be applied directly there.
    	bench.Start("Asmb")
    	asmb(ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:59:50 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/syscall/syscall_linux_s390x.go

    }
    
    func setTimeval(sec, usec int64) Timeval {
    	return Timeval{Sec: sec, Usec: usec}
    }
    
    // Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct.
    // mmap2 also requires arguments to be passed in a struct; it is currently not exposed in <asm/unistd.h>.
    func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go

    func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
    	rsa.Service_name_len = uint64(length)
    }
    
    // Linux on s390x uses the old mmap interface, which requires arguments to be passed in a struct.
    // mmap2 also requires arguments to be passed in a struct; it is currently not exposed in <asm/unistd.h>.
    func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  6. src/internal/fuzz/sys_posix.go

    func sharedMemMapFile(f *os.File, size int, removeOnClose bool) (*sharedMem, error) {
    	prot := syscall.PROT_READ | syscall.PROT_WRITE
    	flags := syscall.MAP_FILE | syscall.MAP_SHARED
    	region, err := syscall.Mmap(int(f.Fd()), 0, size, prot, flags)
    	if err != nil {
    		return nil, err
    	}
    
    	return &sharedMem{f: f, region: region, removeOnClose: removeOnClose}, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  7. docs/vi/docs/python-types.md

    # Giới thiệu kiểu dữ liệu Python
    
    Python hỗ trợ tùy chọn "type hints" (còn được gọi là "type annotations").
    
    Những **"type hints"** hay chú thích là một cú pháp đặc biệt cho phép khai báo <abbr title="ví dụ: str, int, float, bool"> kiểu dữ liệu</abbr> của một biến.
    
    Bằng việc khai báo kiểu dữ liệu cho các biến của bạn, các trình soạn thảo và các công cụ có thể hỗ trợ bạn tốt hơn.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/telemetry/counter/counter.go

    }
    
    // Open prepares telemetry counters for recording to the file system.
    //
    // If the telemetry mode is "off", Open is a no-op. Otherwise, it opens the
    // counter file on disk and starts to mmap telemetry counters to the file.
    // Open also persists any counters already created in the current process.
    //
    // Programs using telemetry should call Open exactly once.
    func Open() {
    	counter.Open()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 18:02:34 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/identity.go

    			}
    		}
    		return true
    
    	case TARRAY:
    		if t1.NumElem() != t2.NumElem() {
    			return false
    		}
    
    	case TCHAN:
    		if t1.ChanDir() != t2.ChanDir() {
    			return false
    		}
    
    	case TMAP:
    		if !identical(t1.Key(), t2.Key(), flags, assumedEqual) {
    			return false
    		}
    	}
    
    	return identical(t1.Elem(), t2.Elem(), flags, assumedEqual)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/named.go

    	// code.
    	if origSig.RecvTypeParams().Len() == t.inst.targs.Len() {
    		smap := makeSubstMap(origSig.RecvTypeParams().list(), t.inst.targs.list())
    		var ctxt *Context
    		if check != nil {
    			ctxt = check.context()
    		}
    		sig = check.subst(origm.pos, origSig, smap, t, ctxt).(*Signature)
    	}
    
    	if sig == origSig {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top