Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,746 for mprotect (0.14 sec)

  1. src/runtime/mem_aix.go

    	// So, call mprotect to change permissions.
    	// Note that sysMap is always called with a non-nil pointer
    	// since it transitions a Reserved memory region to Prepared,
    	// so mprotect is always possible.
    	_, err := mprotect(v, n, _PROT_READ|_PROT_WRITE)
    	if err == _ENOMEM {
    		throw("runtime: out of memory")
    	}
    	if err != 0 {
    		print("runtime: mprotect(", v, ", ", n, ") returned ", err, "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 2K bytes
    - Viewed (0)
  2. src/runtime/race/race_darwin_amd64.go

    //go:cgo_import_dynamic malloc_zones malloc_zones ""
    //go:cgo_import_dynamic memcpy memcpy ""
    //go:cgo_import_dynamic memset_pattern16 memset_pattern16 ""
    //go:cgo_import_dynamic mkdir mkdir ""
    //go:cgo_import_dynamic mprotect mprotect ""
    //go:cgo_import_dynamic open open ""
    //go:cgo_import_dynamic pipe pipe ""
    //go:cgo_import_dynamic posix_openpt posix_openpt ""
    //go:cgo_import_dynamic posix_spawn posix_spawn ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:29:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. src/runtime/race/race_darwin_arm64.go

    //go:cgo_import_dynamic malloc_zones malloc_zones ""
    //go:cgo_import_dynamic memcpy memcpy ""
    //go:cgo_import_dynamic memset_pattern16 memset_pattern16 ""
    //go:cgo_import_dynamic mkdir mkdir ""
    //go:cgo_import_dynamic mprotect mprotect ""
    //go:cgo_import_dynamic open open ""
    //go:cgo_import_dynamic pipe pipe ""
    //go:cgo_import_dynamic posix_openpt posix_openpt ""
    //go:cgo_import_dynamic posix_spawn posix_spawn ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:29:22 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. test/recover4.go

    	// could create a mapping that ends up in this hole otherwise,
    	// invalidating the test.
    	hole := data[len(data)/2 : 3*(len(data)/4)]
    	if err := syscall.Mprotect(hole, syscall.PROT_NONE); err != nil {
    		log.Fatalf("mprotect: %v", err)
    	}
    
    	// Check that memcopy returns the actual amount copied
    	// before the fault.
    	const offset = 5
    	n, err := memcopy(data[offset:], make([]byte, len(data)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. test/fixedbugs/issue8606b.go

    	bad2 := "foo"
    
    	p := syscall.Getpagesize()
    	b, err := syscall.Mmap(-1, 0, p, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	err = syscall.Mprotect(b, syscall.PROT_NONE)
    	if err != nil {
    		panic(err)
    	}
    	// write inaccessible pointers as the data fields of bad1 and bad2.
    	(*reflect.StringHeader)(unsafe.Pointer(&bad1)).Data = uintptr(unsafe.Pointer(&b[0]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. test/fixedbugs/issue15002.go

    	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)
    	if err != nil {
    		panic(err)
    	}
    	// Get a slice pointing to the last byte of the good page.
    	x := b[p-one : p]
    
    	test16(x)
    	test16i(x, 0)
    	test32(x)
    	test32i(x, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  7. src/runtime/mem_linux.go

    // 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 {
    	p, err := mmap(v, n, _PROT_NONE, _MAP_ANON|_MAP_PRIVATE, -1, 0)
    	if err != 0 {
    		return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/Project.java

        }
    
        /**
         * Returns the project artifacts as immutable list. Elements are the project POM artifact and the artifact
         * produced by this project build, if applicable. Hence, the returned list may have one or two elements
         * (never less than 1, never more than 2), depending on project packaging.
         * <p>
         * The list's first element is ALWAYS the project POM artifact. Presence of second element in the list depends
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Feb 05 09:42:51 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/samples/build-organization/multi-project-with-convention-plugins/groovy/buildSrc/src/main/groovy/myproject.library-conventions.gradle

                name "myOrgPrivateRepo"
                url 'build/my-repo'
            }
        }
    }
    
    // The project requires libraries to have a README containing sections configured below
    // tag::use-java-class[]
    def readmeCheck = tasks.register('readmeCheck', com.example.ReadmeVerificationTask) {
        // Expect the README in the project directory
        readme = layout.projectDirectory.file("README.md")
        // README must contain a Service API header
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. .idea/codeStyles/Project.xml

    <component name="ProjectCodeStyleConfiguration">
      <code_scheme name="Project" version="173">
        <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" />
        <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999" />
        <option name="IMPORT_LAYOUT_TABLE">
          <value>
            <package name="" withSubpackages="true" static="true" />
            <emptyLine />
            <package name="" withSubpackages="true" static="false" />
            <emptyLine />
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 31 14:47:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
Back to top