Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SomeMAP_ constants defined on macOS but not inmmap #113868

Closed
Labels
@ronaldoussoren

Description

@ronaldoussoren

Feature or enhancement

Proposal:

The followingMAP_* flags are defined on macOS, but are not exposed in the modulemmap:

  • MAP_NORESERVE
  • MAP_NOEXTEND
  • MAP_HASSEMAPHORE
  • MAP_NOCACHE
  • MAP_JIT
  • MAP_RESILIENT_CODESIGN
  • MAP_RESILIENT_MEDIA
  • MAP_32BIT
  • MAP_TRANSLATED_ALLOW_EXECUTE
  • MAP_UNIX03
  • MAP_TPRO

The system also definesMAP_COPY,MAP_RENAME, but those seem to be less useful.MAP_FILE andMAP_FIXED are generic flags that aren't useful for modulemmap.

This is based on the macOS 14.2 SDK.

Two other things I noticed, but something for different issues:

  • There's a comment aboutmsync(2) flags in the implementation formmap.mmap.flush()
  • There is no way to change the memory protection (PROT_READ etc.) after creating the mapping, exposing such functionality could be useful for usingmmap to write executable code in Python.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp