Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 246 for mmap64 (0.23 sec)

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

    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos
    
    package unix
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 343 bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/fallocate_test.go

    		}
    		if err != nil {
    			t.Fatalf("fallocate failed: %v", err)
    		}
    		break
    	}
    
    	// Mmap 1 MiB initially, and grow to 2 and 3 MiB.
    	// Check if the file size and disk usage is expected.
    	for _, sz := range []int64{1 << 20, 2 << 20, 3 << 20} {
    		err = out.Mmap(uint64(sz))
    		if err != nil {
    			t.Fatalf("Mmap failed: %v", err)
    		}
    		stat, err := os.Stat(filename)
    		if err != nil {
    			t.Fatalf("Stat failed: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 14:17:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/syscall/mmap_unix_test.go

    //go:build unix
    
    package syscall_test
    
    import (
    	"syscall"
    	"testing"
    )
    
    func TestMmap(t *testing.T) {
    	b, err := syscall.Mmap(-1, 0, syscall.Getpagesize(), syscall.PROT_NONE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		t.Fatalf("Mmap: %v", err)
    	}
    	if err := syscall.Munmap(b); err != nil {
    		t.Fatalf("Munmap: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 23:58:34 UTC 2022
    - 500 bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/outbuf_windows.go

    package ld
    
    import (
    	"internal/unsafeheader"
    	"syscall"
    	"unsafe"
    )
    
    // Mmap maps the output file with the given size. It unmaps the old mapping
    // if it is already mapped. It also flushes any in-heap data to the new
    // mapping.
    func (out *OutBuf) Mmap(filesize uint64) error {
    	oldlen := len(out.buf)
    	if oldlen != 0 {
    		out.munmap()
    	}
    
    	err := out.f.Truncate(int64(filesize))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 01:59:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/internal/cov/mreader.go

    // license that can be found in the LICENSE file.
    
    package cov
    
    import (
    	"cmd/internal/bio"
    	"io"
    	"os"
    )
    
    // This file contains the helper "MReader", a wrapper around bio plus
    // an "mmap'd read-only" view of the file obtained from bio.SliceRO().
    // MReader is designed to implement the io.ReaderSeeker interface.
    // Since bio.SliceOS() is not guaranteed to succeed, MReader falls back
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:12:25 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/os_openbsd_syscall2.go

    // mmap calls the mmap system call. It is implemented in assembly.
    // 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.
    func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/outbuf_darwin.go

    	_, err = fcntl(int(out.f.Fd()), syscall.F_PREALLOCATE, int(uintptr(unsafe.Pointer(store))))
    	return err
    }
    
    func (out *OutBuf) purgeSignatureCache() {
    	// Apparently, the Darwin kernel may cache the code signature at mmap.
    	// When we mmap the output buffer, it doesn't have a code signature
    	// (as we haven't generated one). Invalidate the kernel cache now that
    	// we have generated the signature. See issue #42684.
    	msync(out.buf, syscall.MS_INVALIDATE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 13 15:50:02 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/mremap.go

    	mremap func(oldaddr uintptr, oldlength uintptr, newlength uintptr, flags int, newaddr uintptr) (xaddr uintptr, err error)
    }
    
    var mapper = &mremapMmapper{
    	mmapper: mmapper{
    		active: make(map[*byte][]byte),
    		mmap:   mmap,
    		munmap: munmap,
    	},
    	mremap: mremap,
    }
    
    func (m *mremapMmapper) Mremap(oldData []byte, newLength int, flags int) (data []byte, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package counter
    
    import (
    	"bytes"
    	"fmt"
    	"strings"
    	"unsafe"
    
    	"golang.org/x/telemetry/internal/mmap"
    )
    
    type File struct {
    	Meta  map[string]string
    	Count map[string]uint64
    }
    
    func Parse(filename string, data []byte) (*File, error) {
    	if !bytes.HasPrefix(data, []byte(hdrPrefix)) || len(data) < pageSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/match/match.go

    	case *matcher.Matcher_MatcherTree_:
    		var mmap *matcher.Matcher_MatcherTree_MatchMap
    		switch t := m.MatcherTree.TreeType.(type) {
    		case *matcher.Matcher_MatcherTree_PrefixMatchMap:
    			mmap = t.PrefixMatchMap
    		case *matcher.Matcher_MatcherTree_ExactMatchMap:
    			mmap = t.ExactMatchMap
    		default:
    			return Mapper{}, false
    		}
    		return Mapper{Matcher: mmatcher, Map: mmap.Map}, true
    	}
    	return Mapper{}, false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top