- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 147 for __munmap (0.17 sec)
-
test/recover4.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 2.2K bytes - Viewed (0) -
src/runtime/os2_aix.go
if r == ^uintptr(0) { return nil, int(err0) } return unsafe.Pointer(r), int(err0) } //go:nosplit func munmap(addr unsafe.Pointer, n uintptr) { r, err := syscall2(&libc_munmap, uintptr(addr), uintptr(n)) if int32(r) == -1 { println("syscall munmap failed: ", hex(err)) throw("syscall munmap") } } //go:nosplit func madvise(addr unsafe.Pointer, n uintptr, flags int32) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 20.9K bytes - Viewed (0) -
src/internal/fuzz/sys_posix.go
// Attempt all operations, even if we get an error for an earlier operation. // os.File.Close may fail due to I/O errors, but we still want to delete // the temporary file. var errs []error errs = append(errs, syscall.Munmap(m.region), m.f.Close()) if m.removeOnClose { errs = append(errs, os.Remove(m.f.Name())) } for _, err := range errs { if err != nil { return err } } return 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) -
src/syscall/syscall_unix.go
return b, nil } func (m *mmapper) Munmap(data []byte) (err error) { if len(data) == 0 || len(data) != cap(data) { return EINVAL } // Find the base of the mapping. p := &data[cap(data)-1] m.Lock() defer m.Unlock() b := m.active[p] if b == nil || &b[0] != &data[0] { return EINVAL } // Unmap the memory and update m.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 16:19:26 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/link/internal/ld/outbuf.go
// - Write the content // - possibly apply any edits in the output buffer // - possibly write more content to the file. These writes take place in a heap // backed buffer that will get synced to disk. // - Munmap the output file // // And finally, it provides a mechanism by which you can multithread the // writing of output files. This mechanism is accomplished by copying a OutBuf, // and using it in the thread/goroutine. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 17 19:51:29 UTC 2022 - 8.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go
// bump start to next page start = round(limit, pageSize) } return start, start + n } var memmap = mmap.Mmap var munmap = mmap.Munmap func (m *mappedFile) close() { m.closeOnce.Do(func() { if m.mapping != nil { munmap(m.mapping) m.mapping = nil } if m.f != nil { m.f.Close() // best effort m.f = nil } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 18.2K bytes - Viewed (0) -
src/runtime/mem_linux.go
} // Don't split the stack as this function may be invoked without a valid G, // which prevents us from allocating more stack. // //go:nosplit func sysFreeOS(v unsafe.Pointer, n uintptr) { munmap(v, n) } func sysFaultOS(v unsafe.Pointer, n uintptr) { mprotect(v, n, _PROT_NONE) madvise(v, n, _MADV_DONTNEED) } func sysReserveOS(v unsafe.Pointer, n uintptr) unsafe.Pointer {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 5K bytes - Viewed (0) -
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" //go:cgo_import_dynamic libc_pthread_attr_getstack pthread_attr_getstack "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) -
src/syscall/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) } func Munmap(b []byte) (err error) { return mapper.Munmap(b) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 20:12:46 UTC 2024 - 35.7K bytes - Viewed (0) -
src/syscall/syscall_openbsd.go
//sys write(fd int, p []byte) (n int, err error) //sys writev(fd int, iovecs []Iovec) (n uintptr, 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 getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 10:34:00 UTC 2023 - 7K bytes - Viewed (0)