rust-lang / rust-lang/rfcs

add a low-level library for manipulating memory mappings, protection and locking

Open
#786 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-libs
Dominant language
Markdown
Stars
6.6k
Forks
1.7k
Avg merge
16h 14m
Merged PRs (30d)
1

Description

Issue by thestinger
Saturday Sep 06, 2014 at 18:13 GMT

For earlier discussion, see https://github.com/rust-lang/rust/issues/17047

This issue was labelled with: A-libs, I-enhancement in the Rust repository


Rust should expose a portable implementation of the mmap, mprotect and mlock functionality (VirtualAlloc, VirtualProtect, VirtualLock on Windows). The current support for memory mapped files is very lacking. The low-level support should be exposed via unsafe functions, and then a new high-level wrapper can be written on top of it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the earlier discussion in rust-lang/rust issue 17047 and the surrounding RFC context. Define the portable low-level scope for memory mapping, protection, and locking across Unix and Windows, then determine how unsafe functions and a higher-level wrapper should relate. Done means the agreed API and portability requirements are documented and implemented.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.