Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 118 for mmap64 (0.11 sec)

  1. src/syscall/syscall_aix.go

    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) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/objfile.go

    		o.Write(w.Writer)
    	})
    	// TODO: output in sorted order?
    	// Currently tools (cmd/internal/goobj package) doesn't use mmap,
    	// and it just read it into a map in memory upfront. If it uses
    	// mmap, if the output is sorted, it probably could avoid reading
    	// into memory and just do lookups in the mmap'd object file.
    }
    
    // return the number of aux symbols s have.
    func nAuxSym(s *LSym) int {
    	n := 0
    	if s.Gotype != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/runtime/os3_solaris.go

    //go:cgo_import_dynamic libc_kill kill "libc.so"
    //go:cgo_import_dynamic libc_madvise madvise "libc.so"
    //go:cgo_import_dynamic libc_malloc malloc "libc.so"
    //go:cgo_import_dynamic libc_mmap mmap "libc.so"
    //go:cgo_import_dynamic libc_munmap munmap "libc.so"
    //go:cgo_import_dynamic libc_open open "libc.so"
    //go:cgo_import_dynamic libc_pthread_attr_destroy pthread_attr_destroy "libc.so"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/syscall/syscall_linux.go

    // mmap varies by architecture; see syscall_linux_*.go.
    //sys	munmap(addr uintptr, length uintptr) (err error)
    
    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)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/cache/cache.go

    func GetMmap(c Cache, id ActionID) ([]byte, Entry, error) {
    	entry, err := c.Get(id)
    	if err != nil {
    		return nil, entry, err
    	}
    	md, err := mmap.Mmap(c.OutputFile(entry.OutputID))
    	if err != nil {
    		return nil, Entry{}, err
    	}
    	if int64(len(md.Data)) != entry.Size {
    		return nil, Entry{}, &entryNotFoundError{Err: errors.New("file incomplete")}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 14:19:39 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. src/runtime/sys_linux_s390x.s

    	MOVW	R2, 8(R15)
    	MOVD	R3, 16(R15)
    	MOVD	R4, 24(R15)
    	MOVD	$runtime·sigtrampgo(SB), R5
    	BL	R5
    	RET
    
    TEXT runtime·cgoSigtramp(SB),NOSPLIT,$0
    	BR	runtime·sigtramp(SB)
    
    // func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) unsafe.Pointer
    TEXT runtime·mmap(SB),NOSPLIT,$48-48
    	MOVD	addr+0(FP), R2
    	MOVD	n+8(FP), R3
    	MOVW	prot+16(FP), R4
    	MOVW	flags+20(FP), R5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. src/runtime/pprof/proto_test.go

    	switch runtime.GOOS {
    	case "linux", "android", "netbsd":
    		// Figure out two addresses from /proc/self/maps.
    		mmap, err := os.ReadFile("/proc/self/maps")
    		if err != nil {
    			t.Fatal(err)
    		}
    		var mappings []*profile.Mapping
    		id := uint64(1)
    		parseProcSelfMaps(mmap, func(lo, hi, offset uint64, file, buildID string) {
    			mappings = append(mappings, &profile.Mapping{
    				ID:      id,
    				Start:   lo,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go

    	n = int(r0)
    	if e1 != 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
    	r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top