search for: file_attribute_readon

Displaying 8 results from an estimated 8 matches for "file_attribute_readon".

2011 Jun 20
2
How do i get file attributes using samba.
Hi, I need to extract the following attributes of a file in Windows share using samba. /* FileAttributesField */ #define FILE_ATTRIBUTE_READONLY???????? 0x001L #define FILE_ATTRIBUTE_HIDDEN?????????? 0x002L #define FILE_ATTRIBUTE_SYSTEM?????????? 0x004L #define FILE_ATTRIBUTE_DIRECTORY??????? 0x010L #define FILE_ATTRIBUTE_ARCHIVE????????? 0x020L #define FILE_ATTRIBUTE_NORMAL?????????? 0x080L #define FILE_ATTRIBUTE_TEMPORARY??????? 0x100L...
2005 Jan 27
2
[LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
...if (!isFile()) return false; DWORD attr = GetFileAttributes(path.c_str()); // If it doesn't exist, we're done. if (attr == INVALID_FILE_ATTRIBUTES) return true; // Read-only files cannot be deleted on Windows. Must remove the read-only // attribute first. if (attr & FILE_ATTRIBUTE_READONLY) { if (!SetFileAttributes(path.c_str(), attr & ~FILE_ATTRIBUTE_READONLY)) ThrowError(path + ": Can't destroy file (hb:1): "); } if (!DeleteFile(path.c_str())) ThrowError(path + ": Can't destroy file (hb:2): "); return true; } ------------------...
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 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> Here are the patches that I've got queued up based on the very helpful feedback I received from people testing Syslinux 5.00-pre9. Unless anyone has any concerns these will make it into Syslinux 5.00-pre10. Matt Fleming (9): pxe: Don't call open_config() from the pxe core ldlinux: Print a warning if no config file is found
2003 Apr 10
0
Bug in Samba v2.2.8a with Windows API GetFileAttributes ?
...(int argc, char** argv) { if (argc != 2) { cout << "Usage: test <pathname>" << endl; return 1; } const char* pn = argv[1]; DWORD rc = GetFileAttributes(pn); if (0xFFFFFFFF != rc && (rc & (FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_READONLY)) && !(rc & (FILE_ATTRIBUTE_DIRECTORY))) { cout << " SUCCESS: pathname [" << pn << "] is a file! rc=" << hex << rc << endl; return 0; } else { cout << " FAILURE: pathname [" <&lt...
2012 May 18
0
[LLVMdev] [RFC] llvm/include/Support/FileOutputBuffer.h
...TerminatedStringRef(path_storage); > + > + DWORD attr = GetFileAttributes(name.begin()); > + > + if (attr == INVALID_FILE_ATTRIBUTES) > + return windows_error(::GetLastError()); > + > + // Files are writable by default, unless marked READONLY > + result = !(attr & FILE_ATTRIBUTE_READONLY); > + #endif This looks right, the only thing it's missing is symlink handling. > + return error_code::success(); > +} > + > +error_code is_executable_file(const Twine &path, bool &result) { > + // All files are executable on Windows (ignoring security attributes...
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: