Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-05-29 00:41:51 +0400
committerChristopher Faylor <me@cgf.cx>2011-05-29 00:41:51 +0400
commit07f89f85dbae1e891e8d45b5477db24c66f774b4 (patch)
treec8f31468bc92438229be72cef33c990d8f069c4d /winsup/cygwin/dll_init.h
parent17a5c8c36ec36849772073b2cfa027aa347b48f2 (diff)
Revert previous checkins as they introduced a bug when running zsh.
Diffstat (limited to 'winsup/cygwin/dll_init.h')
-rw-r--r--winsup/cygwin/dll_init.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/winsup/cygwin/dll_init.h b/winsup/cygwin/dll_init.h
index 3fbe8760f..d14cc6cb9 100644
--- a/winsup/cygwin/dll_init.h
+++ b/winsup/cygwin/dll_init.h
@@ -52,10 +52,6 @@ struct dll
int count;
bool has_dtors;
dll_type type;
- DWORD image_size;
- long ndeps;
- dll** deps;
- PWCHAR modname;
WCHAR name[1];
void detach ();
int init ();
@@ -88,13 +84,6 @@ public:
void detach (void *);
void init ();
void load_after_fork (HANDLE);
- dll *find_by_modname (const PWCHAR name);
- void populate_all_deps ();
- void populate_deps (dll* d);
- void topsort ();
- void topsort_visit (dll* d, bool goto_tail);
- void append (dll* d);
-
dll *inext ()
{
while ((hold = hold->next))
@@ -120,25 +109,6 @@ public:
dll_list () { protect.init ("dll_list"); }
};
-/* References:
- http://msdn.microsoft.com/en-us/windows/hardware/gg463125
- http://msdn.microsoft.com/en-us/library/ms809762.aspx
-*/
-/* FIXME: Integrate with other similar uses in source. */
-struct pefile
-{
- IMAGE_DOS_HEADER dos_hdr;
-
- char* rva (long offset) { return (char*) this + offset; }
- PIMAGE_NT_HEADERS32 pe_hdr () { return (PIMAGE_NT_HEADERS32) rva (dos_hdr.e_lfanew); }
- PIMAGE_OPTIONAL_HEADER32 optional_hdr () { return &pe_hdr ()->OptionalHeader; }
- PIMAGE_DATA_DIRECTORY idata_dir (DWORD which)
- {
- PIMAGE_OPTIONAL_HEADER32 oh = optional_hdr ();
- return (which < oh->NumberOfRvaAndSizes)? oh->DataDirectory + which : 0;
- }
-};
-
extern dll_list dlls;
void dll_global_dtors ();