OSDN Git Service

Throughout avoid having to initialize constant UNICODE_STRINGs.
authorcorinna <corinna>
Tue, 14 Jul 2009 17:37:41 +0000 (17:37 +0000)
committercorinna <corinna>
Tue, 14 Jul 2009 17:37:41 +0000 (17:37 +0000)
commit4c49b4857ccd037c20d3d0e7143a72ff5a15fc1e
tree2a02aab4807c2469ed4f1e107b12f35e749a0a55
parent4aa70cfae6c31d7e9cdc2600dd6df1a187b3688e
Throughout avoid having to initialize constant UNICODE_STRINGs.
* globals.cc: Define constant UNICODE_STRINGs and store in .rdata
section.
* fhandler_disk_file.cc: Throughout, use readonly UNICODE_STRINGs
rather then initializing local UNICODE_STRING variable where
applicable.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* flock.cc (inode_t::inode_t): Ditto.
* mmap.cc: Ditto.
* syscalls.cc: Ditto.
* mount.cc (fs_info::update): Ditto.
* path.cc: Ditto.

* ntdll.h (RtlEqualUnicodePathPrefix): Redefine to take prefix as
UNICODE_STRING.
(RtlEqualUnicodePathSuffix): Redefine to take suffix as UNICODE_STRING.
* fhandler_disk_file.cc: Accommodate throughout.
* mount.cc (fs_info::update): Ditto.
* path.cc (cwdstuff::set): Ditto.
* syscalls.cc: Ditto.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/fhandler_mem.cc
winsup/cygwin/flock.cc
winsup/cygwin/globals.cc
winsup/cygwin/mmap.cc
winsup/cygwin/mount.cc
winsup/cygwin/ntdll.h
winsup/cygwin/path.cc
winsup/cygwin/syscalls.cc