OSDN Git Service

* ntdll.h: Add descriptive comments to special Rtl functions.
authorcorinna <corinna>
Sun, 12 Aug 2007 12:48:00 +0000 (12:48 +0000)
committercorinna <corinna>
Sun, 12 Aug 2007 12:48:00 +0000 (12:48 +0000)
commit49725b93d1cbb96435e9093779404766845e3b5c
tree19a294e8275ce9c2593f142efb5a72389aef542b
parent447ae4114fc4633f16e165e36bc083489c1e0d90
* ntdll.h: Add descriptive comments to special Rtl functions.
(STATUS_OBJECT_PATH_NOT_FOUND): Define.
(STATUS_BUFFER_OVERFLOW): Define.
(FILE_SUPERSEDED): Define.
(FILE_OPENED): Define.
(FILE_CREATED): Define.
(FILE_OVERWRITTEN): Define.
(FILE_EXISTS): Define.
(FILE_DOES_NOT_EXIST): Define.
(PIO_APC_ROUTINE): Typedef.
(NtFsControlFile): Fix parameter types to use PIO_APC_ROUTINE.
(NtWriteFile): Declare.
(RtlInt64ToHexUnicodeString): Declare.
* strfuncs.cc: Include ntdll.h.
(RtlInt64ToHexUnicodeString): New function.
* syscalls.cc (try_to_bin): Rewrite using native NT functions.
Only try to create recycle bin after unsuccessfully trying to move
file.  Also try to create special files in recycle bin so that Windows
Explorer isn't unnecessarily stampeded.
winsup/cygwin/ChangeLog
winsup/cygwin/ntdll.h
winsup/cygwin/strfuncs.cc
winsup/cygwin/syscalls.cc