OSDN Git Service

* fhandler_disk_file.cc (fhandler_disk_file::link): Use FILE_ANY_ACCESS.
authorcorinna <corinna>
Sun, 29 Jul 2007 12:27:21 +0000 (12:27 +0000)
committercorinna <corinna>
Sun, 29 Jul 2007 12:27:21 +0000 (12:27 +0000)
commit954f952318283d917c332ae7046da9684f92a143
treec7d220af16aa450feaada0508245c5dcf47d04f9
parent71f3c31d9b663870b12c089ca6973c4abb1fbd3b
* fhandler_disk_file.cc (fhandler_disk_file::link): Use FILE_ANY_ACCESS.
(fhandler_base::utimes_fs): Fix white space.
(fhandler_disk_file::lock): Remove 9x blurb from comment.
(fhandler_disk_file::mkdir): Use NtCreateFile/NtClose instead of
CreateDirectoryA.
(fhandler_disk_file::rmdir): Accommodate changes to unlink_nt.
Simplify post-delete SMB-related tests.  Use NtQueryAttributesFile
instead of GetFileAttributes.
* ntdll.h (STATUS_DIRECTORY_NOT_EMPTY): Define.
(NtQueryAttributesFile): Declare.
* syscalls.cc (unlink_nt): Return NTSTATUS.  Drop setattrs parameter.
Never use FILE_DELETE_ON_CLOSE, always use
NtSetInformationFile(FileDispositionInformation) instead.
Check for R/O attributes and open file with FILE_WRITE_ATTRIBUTES
access if any of them are set.  Remove R/O attributes before
marking for delete if necessary.  Revert them afterwards if necessary.
(unlink): Accommodate changes to unlink_nt.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/ntdll.h
winsup/cygwin/syscalls.cc