search for: randomfd

Displaying 2 results from an estimated 2 matches for "randomfd".

2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...bool makeAbsolute, bool private_file) { Incorrect whitespace change. > SmallString<128> Model; > model.toVector(Model); > // Null terminate. > @@ -380,7 +393,8 @@ > > // Try to open + create the file. > rety_open_create: > - int RandomFD = ::open(RandomPath.c_str(), O_RDWR | O_CREAT | O_EXCL, mode); > + int perms = (private_file ? 0600 : 0666) & ~(current_umask()); > + int RandomFD = ::open(RandomPath.c_str(), O_RDWR | O_CREAT | O_EXCL, perms); > if (RandomFD == -1) { > // If the file existed, try again, o...
2012 May 17
3
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
I now have an implementation of FileOutputBuffer (OutputBuffer was already taken). The patch supports the functionality listed below and I've tested that it works for lld. -------------- next part -------------- A non-text attachment was scrubbed... Name: FileOutputBuffer.patch Type: application/octet-stream Size: 25308 bytes Desc: not available URL: