Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MemoryMap use HANDLE on Windows. #19620

Merged
merged 1 commit into from
Dec 9, 2014
Merged

Conversation

retep998
Copy link
Member

@retep998 retep998 commented Dec 7, 2014

No description provided.

@retep998 retep998 force-pushed the memorymap branch 2 times, most recently from 2c8f649 to b7ee796 Compare December 7, 2014 18:23
@retep998
Copy link
Member Author

retep998 commented Dec 7, 2014

cc @aturon @alexcrichton

Also fixes some conflicting module names.

Signed-off-by: Peter Atashian <retep998@gmail.com>
@alexcrichton
Copy link
Member

In general std apis should not provide platform-specific options wherever possible, but I'm ok with this for now as I believe we plan to move this to its own std::os::{windows, unix} module regardless. Thanks @retep998!

@@ -159,7 +159,7 @@ pub fn getcwd() -> IoResult<Path> {
}

#[cfg(windows)]
pub mod windows {
pub mod windoze {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this renaming intentional? I guess this is due to the collision with #[cfg(windows)] pub use sys::ext as windows;, but then the only function here seems misplaced.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a branch that's refactoring this into the actual windows module, so I'm not too worried about this temporary state of affairs.

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Dec 9, 2014
@bors bors merged commit 58f1274 into rust-lang:master Dec 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants