- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 274 for pmap (0.04 sec)
-
test/recover4.go
// so that memcopy can recover. debug.SetPanicOnFault(true) size := syscall.Getpagesize() // Map 16 pages of data with a 4-page hole in the middle. data, err := syscall.Mmap(-1, 0, 16*size, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE) if err != nil { log.Fatalf("mmap: %v", err) } // Create a hole in the mapping that's PROT_NONE.
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/testing/quick/quick_test.go
// Issues 8818 and 11148. func TestRecursive(t *testing.T) { type R struct { Ptr *R SliceP []*R Slice []R Map map[int]R MapP map[int]*R MapR map[*R]*R SliceMap []map[int]R } f := func(r R) bool { return true } Check(f, nil) } func TestEmptyStruct(t *testing.T) { f := func(struct{}) bool { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 12:54:00 UTC 2019 - 9K bytes - Viewed (0) -
src/crypto/sha1/issue15617_test.go
//go:build amd64 && (linux || darwin) package sha1_test import ( "crypto/sha1" "syscall" "testing" ) func TestOutOfBoundsRead(t *testing.T) { const pageSize = 4 << 10 data, err := syscall.Mmap(0, 0, 2*pageSize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE) if err != nil { panic(err) } if err := syscall.Mprotect(data[pageSize:], syscall.PROT_NONE); err != nil { panic(err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 14:17:04 UTC 2022 - 660 bytes - Viewed (0) -
src/cmd/internal/bio/buf.go
} return data, false, nil } // SliceRO returns a slice containing the next length bytes of r // backed by a read-only mmap'd data. If the mmap cannot be // established (limit exceeded, region too small, etc) a nil slice // will be returned. If mmap succeeds, it will never be unmapped. func (r *Reader) SliceRO(length uint64) []byte { data, ok := r.sliceOS(length) if ok { return data } return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 11 17:15:15 UTC 2020 - 3.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/language/lookup.go
if !tag.FixCase(form, key) { return 0, ErrSyntax } i := idx.Index(key) if i == -1 { return 0, NewValueError(key) } return i, nil } func searchUint(imap []uint16, key uint16) int { return sort.Search(len(imap), func(i int) bool { return imap[i] >= key }) } type Language uint16 // getLangID returns the langID of s if s is a canonical subtag // or langUnknown if s is not a canonical subtag.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 12.1K bytes - Viewed (0) -
src/runtime/cgo/gcc_mmap.c
#include <stdlib.h> #include <sys/mman.h> #include "libcgo.h" uintptr_t x_cgo_mmap(void *addr, uintptr_t length, int32_t prot, int32_t flags, int32_t fd, uint32_t offset) { void *p; _cgo_tsan_acquire(); p = mmap(addr, length, prot, flags, fd, offset); _cgo_tsan_release(); if (p == MAP_FAILED) { /* This is what the Go code expects on failure. */ return (uintptr_t)errno; } return (uintptr_t)p; } void
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 916 bytes - Viewed (0) -
pkg/proxy/util/utils_test.go
otherIPFamily = v1.IPv4Protocol } ipMap := MapIPsByIPFamily(testcase.ipString) var ipStr []string for _, ip := range ipMap[ipFamily] { ipStr = append(ipStr, ip.String()) } if !reflect.DeepEqual(testcase.expectCorrect, ipStr) { t.Errorf("Test %v failed: expected %v, got %v", testcase.desc, testcase.expectCorrect, ipMap[ipFamily]) } ipStr = nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 11:57:43 UTC 2024 - 17.1K bytes - Viewed (0) -
src/cmd/gofmt/rewrite.go
} */ // rewriteFile applies the rewrite rule 'pattern -> replace' to an entire file. func rewriteFile(fileSet *token.FileSet, pattern, replace ast.Expr, p *ast.File) *ast.File { cmap := ast.NewCommentMap(fileSet, p, p.Comments) m := make(map[string]reflect.Value) pat := reflect.ValueOf(pattern) repl := reflect.ValueOf(replace) var rewriteVal func(val reflect.Value) reflect.Value
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 8.1K bytes - Viewed (0) -
src/runtime/tagptr_64bit.go
// On AIX, 64-bit addresses are split into 36-bit segment number and 28-bit // offset in segment. Segment numbers in the range 0x0A0000000-0x0AFFFFFFF(LSA) // are available for mmap. // We assume all tagged addresses are from memory allocated with mmap. // We use one bit to distinguish between the two ranges. aixAddrBits = 57 aixTagBits = 64 - aixAddrBits + 3 // riscv64 SV57 mode gives 56 bits of userspace VA.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 18 20:22:50 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go
//go:build aix && ppc package unix //sysnb Getrlimit(resource int, rlim *Rlimit) (err error) = getrlimit64 //sys Seek(fd int, offset int64, whence int) (off int64, err error) = lseek64 //sys mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) func setTimespec(sec, nsec int64) Timespec { return Timespec{Sec: int32(sec), Nsec: int32(nsec)} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.3K bytes - Viewed (0)