OSDN Git Service

* dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1
authorcorinna <corinna>
Fri, 25 Jul 2008 15:23:55 +0000 (15:23 +0000)
committercorinna <corinna>
Fri, 25 Jul 2008 15:23:55 +0000 (15:23 +0000)
commitd1f759ce1914f5af3119fa851e0f7a57ada0b3f4
treee7ef64c8b0d6362a2e32784f32bf022a2ce131d1
parentd9c79340f36bd49e3dcec9622c9c67c8ffcad579
* dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1
here in case we're dynamically loaded.  Explain why.
(dll_crt0_1): Call user_shared_initialize_1 from here.
* mount.cc (is_native_path): New inline function testing for native
and long Win32 path prefix.
(is_unc_share): Remove long WIn32 path prefix test.
(mount_info::create_root_entry): Use PATH_MAX buffer.
(mount_info::init): Ditto.
(mount_info::add_item): Test for is_native_path as well.
* path.cc (normalize_win32_path): Simplify native path prefix code.
* shared.cc (user_shared_initialize_1): New function taking user
shared initialization code relying on malloc and cygtls.
(user_shared_initialize): Move mountinfo initialization to
user_shared_initialize_1.
* shared_info.h (user_shared_initialize_1): Declare.
* syscalls.cc (seteuid32): Call user_shared_initialize_1 after user
changed.
winsup/cygwin/ChangeLog
winsup/cygwin/dcrt0.cc
winsup/cygwin/mount.cc
winsup/cygwin/path.cc
winsup/cygwin/shared.cc
winsup/cygwin/shared_info.h
winsup/cygwin/syscalls.cc