summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * net.cc (gai_errmap): Add EAI_OVERFLOW entry. Fix formatting.Corinna Vinschen2007-01-233-17/+24
| | | | | | (cygwin_gai_strerror): Drop using EAI_MAX. (w32_to_gai_err): Ditto. * include/netdb.h: Define EAI_OVERFLOW. Remove EAI_MAX.
* * include/netdb.h: Add AI_xxx flags available since Vista.Corinna Vinschen2007-01-232-10/+8
|
* * net.cc (if_nametoindex): Free IP_ADAPTER_ADDRESSES memory.Corinna Vinschen2007-01-232-19/+40
| | | | | (if_indextoname): Ditto. (if_nameindex): Ditto. Remove duplicate indexed entries in result.
* * autoload.cc (WSAIoctl): Define.Corinna Vinschen2007-01-2110-286/+813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (SendARP): Define. * cygwin.din: Export if_freenameindex, if_indextoname, if_nameindex and if_nametoindex. * fhandler_procnet.cc: Drop including wchar.h. Drop definitions of GAA_FLAG_INCLUDE_ALL_INTERFACES, IP_ADAPTER_UNICAST_ADDRESS_VISTA. (fhandler_procnet::exists): Check for has_gaa_prefixes. Call get_adapters_addresses here. (fhandler_procnet::readdir): Ditto. (prefix): Move to net.cc. (fhandler_procnet::fill_filebuf): Call get_adapters_addresses here. Simplify allocation. Use AdapterName rather than FriendlyName as interface name. Use IfIndex if available, Ipv6IfIndex otherwise. (in6_are_prefix_equal): Move to net.cc. * fhandler_socket.cc: Define old SIOCGxxx values. (CONV_OLD_TO_NEW_SIO): Convert old SIOCGxxx value to new one. (struct __old_ifreq): Define old struct ifreq. (fhandler_socket::ioctl): Handle old SIOCGxxx values. Handle new SIOCGIFFRNDLYNAM command. Simplify copying ifreq data to user space. Call get_ifconf with additional SOCKET parameter. * net.cc (IP_ADAPTER_UNICAST_ADDRESS_LH): Define. (IP_ADAPTER_ADDRESSES_LH): Define. (SIO_GET_INTERFACE_LIST): Define. (sockaddr_in6_old): Define. (sockaddr_gen): Define. (INTERFACE_INFO): Define. (IN_LOOPBACK): Define. (in_are_prefix_equal): New static function. (ip_addr_prefix): New function, replaces prefix function, add AF_INET handling. (GAA_FLAG_INCLUDE_ALL_INTERFACES): Define. (get_adapters_addresses): New function. (WS_IFF_xxx): Define Winsock interface flag values. (convert_ifr_flags): New function to convert Winsock interface flag values to Cygwin interface flag values. (get_xp_ifconf): New get_ifconf implementation for XP SP1 and above. (get_2k_ifconf): Fix interface index. Fix formatting. (get_nt_ifconf): Fix formatting. (get_95_ifconf): Ditto. (get_ifconf): Take additional SOCKET parameter. Call get_xp_ifconf on XP SP1 and above. (if_nametoindex): New function. (if_indextoname): New function. (if_nameindex): New function. (if_freenameindex): New function. (in6_are_prefix_equal): Moved here from fhandler_procnet.cc. * wincap.cc (wincap_xp): Define has_gaa_prefixes as true by default. (wincapc::init): Assume has_osversioninfoex by default. Call GetVersionEx with OSVERSIONINFOEX first. Call with OSVERSIONINFO only if that fails. Simplify NT4 case and try to avoid strcmp. Check XP Service Pack using version.wServicePackMajor to avoid strcmp. * include/asm/socket.h (SIOCGIFFRNDLYNAM): Define. * include/cygwin/if.h: Fix formatting. (IFF_POINTTOPOINT): Define. (IFF_NOARP): Define. (IFF_LOWER_UP): Define. (IFF_DORMANT): Define. (struct if_nameindex): Define. (IFRF_FRIENDLYNAMESIZ): Define. (struct ifreq_frndlyname): Define. (IFNAMSIZ): Redefine as 44. (IF_NAMESIZE): Define. (struct ifreq): Redefine ifru_flags as int. Define ifru_data. Pad size to sizeof sockaddr_in6 for further extensions. (ifr_data): Define. (ifr_frndlyname): Define. (if_nametoindex): Declare. (if_indextoname): Declare. (if_nameindex): Declare. (if_freenameindex): Declare. * include/cygwin/version.h: Bump API minor number. (CYGWIN_VERSION_CHECK_FOR_OLD_IFREQ): Define check for old vs. new ifreq structure.
* 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2007-01-194-18/+18
| | | | | | * libc/machine/spu/c99ppe.h: Replace vector with __vector. * libc/machine/spu/vec_literal.h: Ditto. * libc/machine/spu/strncmp.c: Ditto.
* 2007-01-19 Kazunori Asayama <asayama@sm.sony.co.jp>Jeff Johnston2007-01-192-2/+5
| | | | * spu/syscalls.c: Replace vector with __vector.
* Oops. The actual change for this entry wasn't committed.Danny Smith2007-01-191-7/+7
| | | | | | | | | | | | 2007-01-11 Gisle Vanem <giva@users.sourceforge.net> * include/winbase.h (struct _OVERLAPPED): Change type of Internal, InternalHigh members to ULONG_PTR. (PAPCFUNC): Change DWORD parameter to ULONG_PTR. (CreateIoCompletionPort): Likewise. (PostQueuedCompletionStatus): Likewise. (QueueUserAPC): Likewise. (GetQueuedCompletionStatus): Change PDWORD parm to PULONG_PTR.
* * include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): DefineDanny Smith2007-01-194-15/+33
| | | | | | | | unconditionally. Change comment. * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define here too. * include/io.h (rename): Declare. (remove): Declare.
* * spawn.cc (spawn_guts): Don't set cwd for non-Cygwin child processesCorinna Vinschen2007-01-182-2/+9
| | | | on NT to allow starting them in virtual directories.
* * mmap.cc (list::hash): Fix type to __ino64_t.Corinna Vinschen2007-01-182-31/+47
| | | | | | | | | | | | | (list::get_hash): Ditto. (list::set): Add struct stat parameter. Use that instead of calling fstat. (map::get_list_by_fd): Ditto. (map::add_list): Ditto. (mmap_is_attached_or_noreserve): Call get_list_by_fd appropriately. (mmap_worker): Add pameters for map list and file stat information. Propagate to called functions. (mmap64): Use fstat on files early. Replace call to GetFileSize. Call get_list_by_fd and mmap_worker appropriately.
* * fhandler_procnet.cc: Drop declaration of htonl and ntohs. IncludeCorinna Vinschen2007-01-182-4/+7
| | | | asm/byteorder.h instead.
* * include/cygwin/in6.h: Drop inclusion of asm/byteorder.h.Corinna Vinschen2007-01-183-2/+8
| | | | * fhandler_procnet.cc: Declare htonl and ntohs here.
* * Makefile.in (DLL_OFILES): Add fhandler_procnet.o.Corinna Vinschen2007-01-1717-30/+561
| | | | | | | | | | | | | | | | | | | | | | * autoload.cc (GetAdaptersAddresses): Define. * devices.h (FH_PROCNET): Define new device. * devices.in (dev_procnet_storage): Add "/proc/net" entry. * devices.cc: Regenerate. * dir.cc (readdir_worker): Use isproc_dev macro. * dtable.cc (build_fh_pc): Add FH_PROCNET. * fhandler.h (class fhandler_procnet): New class. * fhandler_proc.cc: Add "net" subdirectory handling. * fhandler_procnet.cc: New file handling "/proc/net" directory. * path.cc (isvirtual_dev): Move to path.h. * path.h (isproc_dev): New macro to identify /proc files by device. (isvirtual_dev): Moved here. Define using isproc_dev. * syscalls.cc (unlink): Use isproc_dev macro. * wincap.h (wincapc::has_gaa_prefixes): New element. (wincapc::has_gaa_on_link_prefix): New element. * wincap.cc: Implement above elements throughout. (wincapc::init): Check XP for service pack and set has_gaa_prefixes appropriately. * include/cygwin/in6.h: Include asm/byteorder.h.
* * include/asm/socket.h (SIOGIFINDEX): Define.Corinna Vinschen2007-01-172-0/+5
|
* * mmap.cc (MapView9x): Note possible uselessness of retrying.Corinna Vinschen2007-01-172-8/+29
| | | | | (MapViewNT): Ditto. (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED.
* * autoload.cc (RtlAnsiStringToUnicodeString): Define.Corinna Vinschen2007-01-164-16/+144
| | | | | | | | | | | | | | | | | | | | | (RtlOemStringToUnicodeString): Define. * ntdll.h (struct _RTL_USER_PROCESS_PARAMETERS): Define. (struct _PEB): Redefine with a bit of content. (RtlAnsiStringToUnicodeString): Declare. (RtlOemStringToUnicodeString): Declare. * path.cc: Include ntdll.h. (_upp): New global variable pointing to user process parameter block. (get_user_proc_parms): New static function to retrieve user process parameter block. (close_user_proc_parms_cwd_handle): New function to close handle to current working directory in user process parameter block. (cwdstuff::init): Drop redundant declaration of dynamically_loaded. Set current dir only on 9x. Call close_user_proc_parms_cwd_handle on NT instead. (cwdstuff::keep_in_sync): Only on 9x. (cwdstuff::set): Keep behaviour on 9x. On NT write cwd path into user process parameter block and set cwd handle to NULL. Fix comments to reflect new behaviour.
* bfd/H.J. Lu2007-01-162-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> PR ld/3831 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an argument, Elf_Internal_Sym *. * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data symbol dynamic if info->dynamic_data is TRUE. (bfd_elf_record_link_assignment): Updated call to bfd_elf_record_link_assignment. (_bfd_elf_merge_symbol): Likewise. Always call bfd_elf_link_mark_dynamic_symbol. include/ 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> PR ld/3831 * bfdlink.h (bfd_link_info): Rename dynamic to dynamic_list. Add dynamic and dynamic_data. ld/ 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> PR ld/3831 * NEWS: Mention -Bsymbolic-functions, --dynamic-list-data and --dynamic-list-cpp-new. * ld.texinfo: Document -Bsymbolic-functions, --dynamic-list-data and --dynamic-list-cpp-new. * ldlang.c (lang_append_dynamic_list_cpp_new): New. (lang_process): Change link_info.dynamic to link_info.dynamic_list. (lang_append_dynamic_list): Likewise. * ldmain.c (main): Likewise. Initialize link_info.dynamic and link_info.dynamic_data to FALSE. * ldlang.h (lang_append_dynamic_list_cpp_new): New. * lexsup.c (option_values): Add OPTION_DYNAMIC_LIST_DATA and OPTION_DYNAMIC_LIST_CPP_NEW. (ld_options): Add entries for -Bsymbolic-functions, --dynamic-list-data and --dynamic-list-cpp-new. Make -Bsymbolic-functions an alias of --dynamic-list-data. (parse_args): Change link_info.dynamic to link_info.dynamic_list. Set link_info.dynamic to TRUE for --dynamic-list and --dynamic-list-cpp-typeinfo. Handle --dynamic-list-data and --dynamic-list-cpp-new. ld/testsuite/ 2007-01-16 H.J. Lu <hongjiu.lu@intel.com> PR ld/3831 * ld-elf/del.cc: New. * ld-elf/dl5.cc: Likewise. * ld-elf/dl5.out: Likewise. * ld-elf/new.cc: Likewise. * ld-elf/shared.exp: Add tests for --dynamic-list-data and --dynamic-list-cpp-new.
* * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFINDEX.Corinna Vinschen2007-01-165-3/+36
| | | | | | | | | | | * net.cc (get_2k_ifconf): Ditto. (get_nt_ifconf): Fake SIOCGIFINDEX. (get_95_ifconf): Ditto. (get_ifconf): Handle SIOCGIFINDEX. Fake it for loopback on systems not supporting IP Helper Lib. * include/asm/socket.h (SIOCGIFINDEX): Define. * include/cygwin/if.h (struct ifreq): Add member for interface index. (ifr_ifindex): Define.
* * include/cygwin/in6.h (struct ipv6_mreq): Change type of interfaceCorinna Vinschen2007-01-162-3/+9
| | | | | member to uint32_t. (struct in6_pktinfo): Ditto.
* * include/cygwin/in.h (struct ip_mreq_source): Define.Corinna Vinschen2007-01-163-2/+80
| | | | | | | | | | | | (struct ip_msfilter): Define. (IP_MSFILTER_SIZE): Define. (struct in_pktinfo): Define. (struct group_req): Define. (struct group_source_req): Define. (struct group_filter): Define. (GROUP_FILTER_SIZE): Define. (INADDR_ALLRTRS_GROUP): Define. * include/cygwin/socket.h: Define protocol agnostic multicast options.
* 2007-01-15 Joseph Myers <joseph@codesourcery.com>Jeff Johnston2007-01-152-2/+86
| | | | | | | Kazu Hirata <kazu@codesourcery.com> * libc/machine/powerpc/setjmp.S (setjmp, longjmp): Add support for E500V1 and E500V2.
* * CYGWIN_LICENSE: Fix web pages and contact information.Corinna Vinschen2007-01-152-7/+12
|
* * ntdll.h: Adjust status definitions.Corinna Vinschen2007-01-152-2/+6
|
* * cygheap.cc (cygheap_init): Add TODO comment.Corinna Vinschen2007-01-153-1/+28
|
* * ntdll.h (STATUS_SHARING_VIOLATION): Define.Corinna Vinschen2007-01-152-1/+6
|
* 2007-01-14 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2007-01-142-2/+51
| | | | * ld-symbolic.m4: New.
* * syscalls.cc (unlink_nt): Don't move files to recycle bin which areCorinna Vinschen2007-01-132-4/+22
| | | | not in use.
* * glob.cc: Update copyright notice with latest from FreeBSD.Christopher Faylor2007-01-132-6/+8
| | | | | (glob0): Use correct type for c variable to propagate previously detected protection.
* * cygheap.cc (_csbrk): Fix off-by-one error.Corinna Vinschen2007-01-123-3/+8
| | | | * cygwin.sc: Give .cygheap a minimum size of 512K.
* * external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ.Christopher Faylor2007-01-122-1/+6
|
* * fork.cc (child_copy): Add missing Windows PID in debug output.Corinna Vinschen2007-01-122-4/+8
|
* * syscalls.cc: Update copyright.Corinna Vinschen2007-01-122-1/+5
|
* 2007-01-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-01-118-38/+16
| | | | | | | | | * libm/configure.in: Always configure machine directory. * libm/Makefile.am: Make machine subdirectory part of SUBDIRS unconditionally. * libm/configure: Regenerated. * libm/Makefile.in: Ditto. * libm/*/Makefile.in: Ditto.
* 2007-01-11 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-01-115-14/+29
| | | | | | | | | | * configure.in: Change == to = in test command. * configure: Regenerate. 2007-01-11 Paolo Bonzini <bonzini@gnu.org> * warnings.m4: Use m4_expand_once to clear the AC_SUBST'ed variable. (ACX_PROG_CC_WARNINGS_ARE_ERRORS): Fix typo. Add optional 2nd argument.
* 2007-01-11 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-01-112-11/+20
| | | | | * config/warnings.m4: Add second parameter with name of variable. Always append to the variable if it exists.
* 2007-01-11 Paolo Bonzini <bonzini@gnu.org>Paolo Bonzini2007-01-116-380/+2394
| | | | | | | | | | | | | | | | | | | | | | | Nick Clifton <nickc@redhat.com> Kaveh R. Ghazi <ghazi@caip.rutgets.edu> * configure.in (build_configargs, host_configargs, target_configargs): Remove build/host/target parameters. (host_libs): Add gmp and mpfr. (GMP tests): Reorganize to allow in-tree GMP/MPFR. * Makefile.def (gmp, mpfr): New. (gcc): Remove target. * Makefile.tpl (build_os, build_vendor, host_os, host_vendor, target_os, target_vendor): New. (configure): Add host_alias/target_alias arguments. Adjust invocations. * configure: Regenerate. * Makefile.in: Regenerate. 2007-01-11 Matt Fago <fago@earthlink.net> * configure.in: Try to link to functions only in mpfr 2.2.x to improve robustness of configure tests. * configure: Regenerate.
* 2007-01-11 Gisle Vanem <giva@users.sourceforge.net>Danny Smith2007-01-111-1/+10
| | | | | | | | | | * include/winbase.h (struct _OVERLAPPED): Change type of Internal, InternalHigh members to ULONG_PTR. (PAPCFUNC): Change DWORD parameter to ULONG_PTR. (CreateIoCompletionPort): Likewise. (PostQueuedCompletionStatus): Likewise. (QueueUserAPC): Likewise. (GetQueuedCompletionStatus): Change PDWORD parm to PULONG_PTR.
* * mmap.cc (mmap64): Pre-Reserve space for the whole mapping to get aCorinna Vinschen2007-01-102-1/+31
| | | | | useful, valid address before the actual mappings take place. Fix typo in comment.
* * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu).Corinna Vinschen2007-01-102-1/+5
|
* Add changelog entries for copyright updates.Daniel Jacobowitz2007-01-101-0/+4
|
* Copyright updates for 2007.Daniel Jacobowitz2007-01-0911-14/+13
|
* * syscalls.cc (getpagesize): Change condition for clarity.Corinna Vinschen2007-01-092-2/+7
| | | | (getsystempagesize): Ditto.
* * Makefile.tpl (all-target): Correct @if conditional for target modules.Nick Clifton2007-01-095-123/+139
| | | | | * configure.in: Omit libiberty if building only target libgcc. * configure, Makefile.in: Regenerated.
* * cygpath.cc (usage): Add -O and -F, remove tabs.Corinna Vinschen2007-01-093-40/+99
| | | | | | | | (get_special_folder): New function. (get_user_folder): New function. (dowin): Add -O and -F, better -D, -P error handling. (main): Add -O and -F. * utils.sgml (cygpath): Document -O and -F.
* * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks.Corinna Vinschen2007-01-092-18/+26
|
* Mention that the top level configure file has been regenerated.Nick Clifton2007-01-091-0/+1
|
* oops - omitted from previous deltaNick Clifton2007-01-091-153/+146
|
* * configure.in: Add support for an x86_64-mingw* target.Nick Clifton2007-01-092-0/+13
| | | | * configure: Regenerate.
* * spu/exit.c (_exit): Finish with an infinite loop to eliminate aBen Elliston2007-01-092-0/+8
| | | | warning about this noreturn function returning.
* 2007-01-05 Brian Ford <Brian.Ford@FlightSafety.com>Jeff Johnston2007-01-082-1/+5
| | | | * configure.host (*-*-cygwin*): Define HAVE_BLKSIZE.