Liam Staskawicz
2011-Feb-28 06:51 UTC
[LLVMdev] [PATCH] sys::fs::can_read() and sys::fs::can_write() for Unix
Hi - the attached patch provides implementations and tests for sys::fs::can_read() and sys::fs::can_write() for Unix. These were adapted from the previous implementations in lib/Support/Unix/Path.inc. can_execute() could be implemented quite similarly, but I wasn't sure where the best place to add a test for it would be, so left it out for now. Thanks, Liam -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110227/7c775f97/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: pathsupport.diff Type: application/octet-stream Size: 1687 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110227/7c775f97/attachment.obj>
Reasonably Related Threads
- [PATCH nbdkit] xz: Do not pass can_write through to the plugin.
- [PATCH nbdkit] xz: Do not pass can_write through to the plugin.
- [LLVMdev] Driver::GetProgramPath is unable to find programs with file extension in name
- [nbdkit PATCH v2 0/2] caching .can_write
- [LLVMdev] sys::path::system_temp_directory vs. sys::fs::createTemporaryFile