]> sourceware.org Git - newlib-cygwin.git/commit
dll_list: Store dll file name as full NT path.
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
Wed, 7 Dec 2016 10:58:25 +0000 (11:58 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 7 Feb 2019 14:58:02 +0000 (15:58 +0100)
commit2678c4efe1195ffb49d92a899c10d4c9fa168eb0
treebd7c8b77e59806e5448bb26d0cf45491e3af9c08
parent9fa22dba558f5e3efd0bb719049491edcd7b5e0b
dll_list: Store dll file name as full NT path.

Store loaded dll's file name as full NT path.

* dll_init.h (struct dll): Rename member variable name to ntname.
(struct dll_list): Declare private static member variable
nt_max_path_buffer.  Declare public static methods form_ntname,
form_shortname.  Define public static methods nt_max_path_buf,
buffered_shortname.
(dll_list::operator []): Use PCWCHAR rather than const PWCHAR.
(dll_list::find_by_modname): Ditto.
* dll_init.cc (in_load_after_fork): Define earlier in file.
(struct dll_list): Rename member variable name to ntname.
Define nt_max_path_buffer variable.
Implement static methods form_ntname, form_shortname.
(dll_list::operator []): Use PCWCHAR rather than const PWCHAR.
(dll_list::find_by_modname): Ditto.
(reserve_at): Ditto.
(release_at): Ditto.
(dll_list::alloc): Use nt_max_path_buf method instead of local
buffer.  Store module file name as full NT path, convert using
the form_ntname static method.
(dll_list::load_after_fork): Call load_after_fork_impl only when
reload_on_fork is set.
* fork.cc (frok::child): Call dlls.load_after_fork even without
need to dynamically load dlls.
(frok::parent): Move syscall_printf into the retry loop.
winsup/cygwin/dll_init.cc
winsup/cygwin/dll_init.h
winsup/cygwin/fork.cc
This page took 0.032828 seconds and 5 git commands to generate.