search for: unmap_file_pages

Displaying 6 results from an estimated 6 matches for "unmap_file_pages".

2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...9ab7084f/attachment.obj> -------------- next part -------------- To implement the FileOutputBuffer, I needed to add some more functions to llvm/Support/FileSystem.h, including: is_writable_file() is_executable_file() set_file_executable() unique_file_sized() map_file_pages() unmap_file_pages() I've implemented the unix side for all these, but have the windows side just stubbed out. I've also added a test case (unittests/Support/FileOutputBufferTest.cpp) which exercises FileOutputBuffer. -Nick >>>> >>>> On May 3, 2012, at 6:10 PM, Nick Kledzik wrote:...
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...Twine &path, perms p); If the name is confusing (it says nothing about modification) I'm fine with modify_permissions or something similar. >   unique_file_sized() Instead of adding this I would much rather add resize_file and call it after unique_file. >   map_file_pages() >   unmap_file_pages() These are good. > I've implemented the unix side for all these, but have the windows side just stubbed out. > > I've also added a test case (unittests/Support/FileOutputBufferTest.cpp) which exercises FileOutputBuffer. > > -Nick As a generally comment there is lots of tr...
2012 Jun 19
0
[LLVMdev] llvm/include/Support/FileSystem.h
This is a proposed patch to enhance FileSystem.h to add functionality (getting and setting permission bits and mapping an unmapping files). This implementation follows the N3365 proposal regarding permission bits. This functionality is needed for my next patch which will implement llvm/include/Support/FileOutputBuffer.h which is needed by lld. -------------- next part -------------- A
2012 May 18
2
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
On Fri, May 18, 2012 at 3:07 PM, Michael Spencer <bigcheesegs at gmail.com> wrote: > >> +  error_code ec = sys::fs::status(filePathTwine, stat); > > stat is undefined if ec isn't success. ec will be success even in the case of > file_not_found. Actually I was wrong. The Windows and UNIX implementation disagree on this point. I'm going to change it to match
2012 May 08
0
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
On May 8, 2012, at 4:08 PM, Nick Kledzik <kledzik at apple.com> wrote: > > On May 8, 2012, at 3:41 PM, Michael Spencer wrote: > >> On Mon, May 7, 2012 at 12:56 PM, Nick Kledzik <kledzik at apple.com> wrote: >>> For the reasons listed in my 03-May-2012 email, I am proposing a new >>> llvm/Support class for using in writing binary files: >>>
2012 May 08
3
[LLVMdev] [RFC] llvm/include/Support/OutputBuffer.h
On May 8, 2012, at 3:41 PM, Michael Spencer wrote: > On Mon, May 7, 2012 at 12:56 PM, Nick Kledzik <kledzik at apple.com> wrote: >> For the reasons listed in my 03-May-2012 email, I am proposing a new >> llvm/Support class for using in writing binary files: >> >> /// OutputBuffer - This interface provides simple way to create an in-memory >> /// buffer