Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 241 for mmap (0.09 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_386.go

    //sys	mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
    //sys	Pause() (err error)
    
    func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
    	page := uintptr(offset / 4096)
    	if offset != int64(page)*4096 {
    		return 0, EINVAL
    	}
    	return mmap2(addr, length, prot, flags, fd, page)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  2. src/internal/coverage/encodecounter/encode.go

    	// Notes:
    	// - this version writes everything little-endian, which means
    	//   a call is needed to encode every value (expensive)
    	// - we may want to move to a model in which we just blast out
    	//   all counters, or possibly mmap the file and do the write
    	//   implicitly.
    	ctrb := make([]byte, 4)
    	wrval := func(val uint32) error {
    		var buf []byte
    		var towr int
    		if cfw.cflavor == coverage.CtrRaw {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  3. src/syscall/syscall_linux_loong64.go

    //sys	sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
    //sys	recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
    //sys	sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
    //sys	mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error)
    
    type sigset_t struct {
    	X__val [16]uint64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  4. src/syscall/syscall_netbsd.go

    //sys	Umask(newmask int) (oldmask int)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //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)
    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux_386.go

    func Lstat(path string, stat *Stat_t) (err error) {
    	return fstatat(_AT_FDCWD, path, stat, _AT_SYMLINK_NOFOLLOW)
    }
    
    func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
    	page := uintptr(offset / 4096)
    	if offset != int64(page)*4096 {
    		return 0, EINVAL
    	}
    	return mmap2(addr, length, prot, flags, fd, page)
    }
    
    type rlimit32 struct {
    	Cur uint32
    	Max uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        return;
      }
    
      struct stat st;
      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
      } else {
        const void* address =
            mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
        if (address == MAP_FAILED) {
          TF_SetStatusFromIOError(status, errno, path);
        } else {
          region->plugin_memory_region =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  7. src/syscall/syscall_freebsd.go

    //sys	Umask(newmask int) (oldmask int)
    //sys	Undelete(path string) (err error)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //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)
    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_dragonfly.go

    //sys	Umask(newmask int) (oldmask int)
    //sys	Undelete(path string) (err error)
    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //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)
    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	}
    	return i
    }
    
    // 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: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  10. src/runtime/debug/garbage.go

    // the same process. Examples of excluded memory sources include: OS
    // kernel memory held on behalf of the process, memory allocated by
    // C code, and memory mapped by syscall.Mmap (because it is not
    // managed by the Go runtime).
    //
    // More specifically, the following expression accurately reflects
    // the value the runtime attempts to maintain as the limit:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top