From 570858c30fa6add591bf74907de4a7fb93312f20 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 22 Feb 2007 10:54:47 +0000 Subject: * Makefile.in (DLL_IMPORTS): Add libntdll.a. * autoload.cc: Remove all symbols from advapi32.dll, kernel32.dll and ntdll.dll available on all platforms since NT4. Throughout remove all usage of wincap.is_winnt. * dcrt0.cc (dll_crt0_0): Remove call to mmap_init. * fhandler.h (class fhandler_base): Remove has_changed flag. (fhandler_disk_file::touch_ctime): Remove declaration. (fhandler_disk_file::readdir_9x): Ditto. (fhandler_disk_file::touch_ctime): Remove. (fhandler_disk_file::readdir_9x): Remove. (fhandler_disk_file::closedir): Call NtClose instead of CloseHandle. * mmap.cc: Throughout call CreateMapping and MapView directly. (VirtualProt9x): Remove. (VirtualProtNT): Remove. (VirtualProtEx9x): Remove. (VirtualProtExNT): Remove. (VirtualProtect): Remove define. (VirtualProtectEx): Remove define. (CreateMapping9x): Remove. (CreateMappingNT): Rename to CreateMapping. (MapView9x): Remove. (MapViewNT): Rename to MapView. (struct mmap_func_t): Remove definition. (mmap_funcs_9x): Remove. (mmap_funcs_nt): Remove. (mmap_func): Remove. (mmap_init): Remove. * net.cc (getdomainname): Drop comment. Use NT4 registry key only. (get_95_ifconf): Remove. * pinfo.cc (winpids::enumNT): Rename to winpids::enum_processes. (winpids::enum9x): Remove. (winpids::set): Just call enum_processes directly. (winpids::enum_init): Ditto. * pinfo.h (class winpids): Drop enum_processes pointer. Rename enumNT to enum_processes. Drop enum9x declaration. Drop initialization of enum_processes throughout. * registry.cc (get_registry_hive_path): Just create NT key. (load_registry_hive): Only load NT specific file. * syscalls.cc (unlink_9x): Remove. (unlink): Just call unlink_nt. * wincap.cc: Remove is_winnt flag throughout. * wincap.h: Ditto. * winsup.h: Remove mmap_init declaration. --- winsup/cygwin/netdb.cc | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'winsup/cygwin/netdb.cc') diff --git a/winsup/cygwin/netdb.cc b/winsup/cygwin/netdb.cc index 53f0412dc..1e5cbcc3b 100644 --- a/winsup/cygwin/netdb.cc +++ b/winsup/cygwin/netdb.cc @@ -1,6 +1,6 @@ /* netdb.cc: network database related routines. - Copyright 2002 Red Hat, Inc. + Copyright 2002, 2003, 2007 Red Hat, Inc. This file is part of Cygwin. @@ -32,18 +32,10 @@ open_system_file (const char *relative_path) { char win32_name[CYG_MAX_PATH]; char posix_name[CYG_MAX_PATH]; - if (wincap.is_winnt ()) - { - if (!GetSystemDirectory (win32_name, CYG_MAX_PATH)) - return NULL; - strcat (win32_name, "\\drivers\\etc\\"); - } - else - { - if (!GetWindowsDirectory (win32_name, CYG_MAX_PATH)) - return NULL; - strcat (win32_name, "\\"); - } + + if (!GetSystemDirectory (win32_name, CYG_MAX_PATH)) + return NULL; + strcat (win32_name, "\\drivers\\etc\\"); strcat (win32_name, relative_path); cygwin_conv_to_full_posix_path (win32_name, posix_name); debug_printf ("netdb file to open %s", win32_name); -- cgit v1.2.3