2007-01-17 Corinna Vinschen * include/asm/socket.h (SIOGIFINDEX): Define. 2007-01-17 Corinna Vinschen * mmap.cc (MapView9x): Note possible uselessness of retrying. (MapViewNT): Ditto. (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED. 2007-01-16 Corinna Vinschen * autoload.cc (RtlAnsiStringToUnicodeString): Define. (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. 2007-01-16 Corinna Vinschen * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFINDEX. * 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. 2007-01-16 Corinna Vinschen * include/cygwin/in6.h (struct ipv6_mreq): Change type of interface member to uint32_t. (struct in6_pktinfo): Ditto. 2007-01-16 Corinna Vinschen * include/cygwin/in.h (struct ip_mreq_source): Define. (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 Corinna Vinschen * CYGWIN_LICENSE: Fix web pages and contact information. 2007-01-15 Corinna Vinschen * ntdll.h: Adjust status definitions. 2007-01-15 Corinna Vinschen * cygheap.cc (cygheap_init): Add TODO comment. 2007-01-15 Corinna Vinschen * ntdll.h (STATUS_SHARING_VIOLATION): Define. 2007-01-13 Corinna Vinschen * syscalls.cc (unlink_nt): Don't move files to recycle bin which are not in use. 2007-01-13 Christopher Faylor * glob.cc: Update copyright notice with latest from FreeBSD. (glob0): Use correct type for c variable to propagate previously detected protection. 2007-01-12 Corinna Vinschen * cygheap.cc (_csbrk): Fix off-by-one error. * cygwin.sc: Give .cygheap a minimum size of 512K. 2007-01-12 Christopher Faylor * external.cc (sync_winenv): Use cur_environ () rather than __cygwin_environ. 2007-01-12 Corinna Vinschen * fork.cc (child_copy): Add missing Windows PID in debug output. 2007-01-12 Corinna Vinschen * syscalls.cc: Update copyright. 2007-01-10 Corinna Vinschen * mmap.cc (mmap64): Pre-Reserve space for the whole mapping to get a useful, valid address before the actual mappings take place. Fix typo in comment. 2007-01-10 Corinna Vinschen * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu). 2007-01-09 Corinna Vinschen * syscalls.cc (getpagesize): Change condition for clarity. (getsystempagesize): Ditto. 2007-01-09 Corinna Vinschen * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks. 2007-01-07 Corinna Vinschen * security.h (setacl): Add parameter for writability flag. * sec_acl.cc (setacl): Ditto. Set to true if any ACE with write permissions is created. * fhandler_disk_file.cc (fhandler_disk_file::facl): Reset FILE_ATTRIBUTE_READONLY if ACL contains an ACE with write permissions. 2007-01-05 Corinna Vinschen * include/strings.h: Don't include string.h. Only declare functions according to SUSv3. 2007-01-04 Corinna Vinschen (get_ifconf): Set MTU for loopback to more correct value. 2007-01-04 Corinna Vinschen * fhandler_socket.cc (fhandler_socket::ioctl): Don't fake results for SIOCGIFFLAGS here. Call get_ifconf instead. * net.cc (get_2k_ifconf): Clean up code to generate interface name. Handle SIOCGIFFLAGS here. (get_nt_ifconf): Fake SIOCGIFFLAGS here. (get_95_ifconf): Ditto. (get_ifconf): Don't fake loopback on systems with IP Helper Lib. Set MTU for loopback to a more "modern" value. 2007-01-04 Brian Ford Corinna Vinschen * fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K. * fhandler.cc (fhandler_base::fstat): Set st_blksize to PREFERRED_IO_BLKSIZE. * fhandler_disk_file.cc (fhandler_base::fstat_helper): Ditto. * fhandler_mailslot.cc (fhandler_mailslot::fstat): Ditto. * fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto. 2007-01-01 Christopher Faylor * spawn.cc (spawn_guts): Don't expect synchronization from a non-cygwin _P_NOWAIT process.