- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 246 for mmap64 (0.33 sec)
-
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) -
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) -
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) -
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) -
test/codegen/noextend.go
if int32(*x64) == sval32[0] { return true } // ppc64x:-"MOVW\tR\\d+,\\sR\\d+" if uint32(*u64) == val32[0] { return true } return false } func cmp64(u8 *uint8, x16 *int16, u16 *uint16, x32 *int32, u32 *uint32) bool { // ppc64x:-"MOVBZ\tR\\d+,\\sR\\d+" if uint64(*u8) == val64[0] { return true } // ppc64x:-"MOVH\tR\\d+,\\sR\\d+"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 5.4K bytes - Viewed (0) -
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) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.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) //sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) //sysnb Gettimeofday(tv *Timeval) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.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) func Ioperm(from int, num int, on int) (err error) { return ENOSYS } func Iopl(level int) (err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.4K bytes - Viewed (0) -
src/syscall/syscall_linux_ppc64x.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) //sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) //sysnb Gettimeofday(tv *Timeval) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 4.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.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) //sys futimesat(dirfd int, path string, times *[2]Timeval) (err error) func Gettimeofday(tv *Timeval) (err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5.3K bytes - Viewed (0)