Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 274 for pmap (0.05 sec)

  1. src/syscall/syscall_unix.go

    		return i
    	}
    	return len(n)
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    	active map[*byte][]byte // active mappings; key is last byte in mapping
    	mmap   func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error)
    	munmap func(addr uintptr, length uintptr) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. test/fixedbugs/issue8606b.go

    )
    
    type SI struct {
    	s string
    	i int
    }
    
    type SS struct {
    	s string
    	t string
    }
    
    func main() {
    	bad1 := "foo"
    	bad2 := "foo"
    
    	p := syscall.Getpagesize()
    	b, err := syscall.Mmap(-1, 0, p, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	err = syscall.Mprotect(b, syscall.PROT_NONE)
    	if err != nil {
    		panic(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/syscall/syscall_bsd.go

    //sysnb ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    func Munmap(b []byte) (err error) {
    	return mapper.Munmap(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go

    //go:build aix && ppc64
    
    package unix
    
    //sysnb	Getrlimit(resource int, rlim *Rlimit) (err error)
    //sys	Seek(fd int, offset int64, whence int) (off int64, err error) = lseek
    
    //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) = mmap64
    
    func setTimespec(sec, nsec int64) Timespec {
    	return Timespec{Sec: sec, Nsec: nsec}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/syscall/syscall_aix.go

    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    /*
     * Map
     */
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/runtime/os2_aix.go

    	return p[0], p[1], int32(err)
    }
    
    // mmap calls the mmap system call.
    // We only pass the lower 32 bits of file offset to the
    // assembly routine; the higher bits (if required), should be provided
    // by the assembly routine as 0.
    // The err result is an OS error code such as ENOMEM.
    //
    //go:nosplit
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/inl_test.go

    			"rand32",
    			"readUnaligned32",
    			"readUnaligned64",
    			"releasem",
    			"roundupsize",
    			"stackmapdata",
    			"stringStructOf",
    			"subtract1",
    			"subtractb",
    			"tophash",
    			"(*bmap).keys",
    			"(*bmap).overflow",
    			"(*waitq).enqueue",
    			"funcInfo.entry",
    
    			// GC-related ones
    			"cgoInRange",
    			"gclinkptr.ptr",
    			"guintptr.ptr",
    			"heapBitsSlice",
    			"markBits.isMarked",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/cmd/internal/cov/read_test.go

    	}
    
    	// Run to produce coverage data. Note the large argument; we need a large
    	// argument (more than 4k) to trigger the bug, but the overall file
    	// has to remain small (since large files will be read with mmap).
    	covdir := filepath.Join(d, "covdata")
    	if err = os.Mkdir(covdir, 0777); err != nil {
    		t.Fatalf("creating covdir: %v", err)
    	}
    	large := fmt.Sprintf("%07999d", 0)
    	cmd = testenv.Command(t, exepath, "1", "2", "3", large)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:36:17 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/go/types/infer.go

    	//           (which only happens in case of an error) and then avoid doing
    	//           the substitution (which always happens).
    	if params.Len() > 0 {
    		smap := makeSubstMap(tparams, targs)
    		params = check.subst(nopos, params, smap, nil, check.context()).(*Tuple)
    	}
    
    	// Unify parameter and argument types for generic parameters with typed arguments
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  10. src/runtime/sys_darwin.go

    	}
    	return
    }
    func osinit_hack_trampoline()
    
    // mmap is used to do low-level memory allocation via mmap. Don't allow stack
    // splits, since this function (used by sysAlloc) is called in a lot of low-level
    // parts of the runtime and callers often assume it won't acquire any locks.
    //
    //go:nosplit
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (unsafe.Pointer, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top