1 2007-01-18 Corinna Vinschen <corinna@vinschen.de>
3 * mmap.cc (list::hash): Fix type to __ino64_t.
4 (list::get_hash): Ditto.
5 (list::set): Add struct stat parameter. Use that instead of calling
7 (map::get_list_by_fd): Ditto.
8 (map::add_list): Ditto.
9 (mmap_is_attached_or_noreserve): Call get_list_by_fd appropriately.
10 (mmap_worker): Add pameters for map list and file stat information.
11 Propagate to called functions.
12 (mmap64): Use fstat on files early. Replace call to GetFileSize.
13 Call get_list_by_fd and mmap_worker appropriately.
15 2007-01-18 Corinna Vinschen <corinna@vinschen.de>
17 * fhandler_procnet.cc: Drop declaration of htonl and ntohs. Include
18 asm/byteorder.h instead.
20 2007-01-18 Corinna Vinschen <corinna@vinschen.de>
22 * include/cygwin/in6.h: Drop inclusion of asm/byteorder.h.
23 * fhandler_procnet.cc: Declare htonl and ntohs here.
25 2007-01-17 Corinna Vinschen <corinna@vinschen.de>
27 * Makefile.in (DLL_OFILES): Add fhandler_procnet.o.
28 * autoload.cc (GetAdaptersAddresses): Define.
29 * devices.h (FH_PROCNET): Define new device.
30 * devices.in (dev_procnet_storage): Add "/proc/net" entry.
31 * devices.cc: Regenerate.
32 * dir.cc (readdir_worker): Use isproc_dev macro.
33 * dtable.cc (build_fh_pc): Add FH_PROCNET.
34 * fhandler.h (class fhandler_procnet): New class.
35 * fhandler_proc.cc: Add "net" subdirectory handling.
36 * fhandler_procnet.cc: New file handling "/proc/net" directory.
37 * path.cc (isvirtual_dev): Move to path.h.
38 * path.h (isproc_dev): New macro to identify /proc files by device.
39 (isvirtual_dev): Moved here. Define using isproc_dev.
40 * syscalls.cc (unlink): Use isproc_dev macro.
41 * wincap.h (wincapc::has_gaa_prefixes): New element.
42 (wincapc::has_gaa_on_link_prefix): New element.
43 * wincap.cc: Implement above elements throughout.
44 (wincapc::init): Check XP for service pack and set has_gaa_prefixes
46 * include/cygwin/in6.h: Include asm/byteorder.h.
48 2007-01-17 Corinna Vinschen <corinna@vinschen.de>
50 * include/asm/socket.h (SIOGIFINDEX): Define.
52 2007-01-17 Corinna Vinschen <corinna@vinschen.de>
54 * mmap.cc (MapView9x): Note possible uselessness of retrying.
56 (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED.
58 2007-01-16 Corinna Vinschen <corinna@vinschen.de>
60 * autoload.cc (RtlAnsiStringToUnicodeString): Define.
61 (RtlOemStringToUnicodeString): Define.
62 * ntdll.h (struct _RTL_USER_PROCESS_PARAMETERS): Define.
63 (struct _PEB): Redefine with a bit of content.
64 (RtlAnsiStringToUnicodeString): Declare.
65 (RtlOemStringToUnicodeString): Declare.
66 * path.cc: Include ntdll.h.
67 (_upp): New global variable pointing to user process parameter block.
68 (get_user_proc_parms): New static function to retrieve user process
70 (close_user_proc_parms_cwd_handle): New function to close handle to
71 current working directory in user process parameter block.
72 (cwdstuff::init): Drop redundant declaration of dynamically_loaded.
73 Set current dir only on 9x. Call close_user_proc_parms_cwd_handle
75 (cwdstuff::keep_in_sync): Only on 9x.
76 (cwdstuff::set): Keep behaviour on 9x. On NT write cwd path into user
77 process parameter block and set cwd handle to NULL. Fix comments to
78 reflect new behaviour.
80 2007-01-16 Corinna Vinschen <corinna@vinschen.de>
82 * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFINDEX.
83 * net.cc (get_2k_ifconf): Ditto.
84 (get_nt_ifconf): Fake SIOCGIFINDEX.
85 (get_95_ifconf): Ditto.
86 (get_ifconf): Handle SIOCGIFINDEX. Fake it for loopback on systems
87 not supporting IP Helper Lib.
88 * include/asm/socket.h (SIOCGIFINDEX): Define.
89 * include/cygwin/if.h (struct ifreq): Add member for interface index.
90 (ifr_ifindex): Define.
92 2007-01-16 Corinna Vinschen <corinna@vinschen.de>
94 * include/cygwin/in6.h (struct ipv6_mreq): Change type of interface
96 (struct in6_pktinfo): Ditto.
98 2007-01-16 Corinna Vinschen <corinna@vinschen.de>
100 * include/cygwin/in.h (struct ip_mreq_source): Define.
101 (struct ip_msfilter): Define.
102 (IP_MSFILTER_SIZE): Define.
103 (struct in_pktinfo): Define.
104 (struct group_req): Define.
105 (struct group_source_req): Define.
106 (struct group_filter): Define.
107 (GROUP_FILTER_SIZE): Define.
108 (INADDR_ALLRTRS_GROUP): Define.
109 * include/cygwin/socket.h: Define protocol agnostic multicast options.
111 2007-01-15 Corinna Vinschen <corinna@vinschen.de>
113 * CYGWIN_LICENSE: Fix web pages and contact information.
115 2007-01-15 Corinna Vinschen <corinna@vinschen.de>
117 * ntdll.h: Adjust status definitions.
119 2007-01-15 Corinna Vinschen <corinna@vinschen.de>
121 * cygheap.cc (cygheap_init): Add TODO comment.
123 2007-01-15 Corinna Vinschen <corinna@vinschen.de>
125 * ntdll.h (STATUS_SHARING_VIOLATION): Define.
127 2007-01-13 Corinna Vinschen <corinna@vinschen.de>
129 * syscalls.cc (unlink_nt): Don't move files to recycle bin which are
132 2007-01-13 Christopher Faylor <me@cgf.cx>
134 * glob.cc: Update copyright notice with latest from FreeBSD.
135 (glob0): Use correct type for c variable to propagate previously
138 2007-01-12 Corinna Vinschen <corinna@vinschen.de>
140 * cygheap.cc (_csbrk): Fix off-by-one error.
141 * cygwin.sc: Give .cygheap a minimum size of 512K.
143 2007-01-12 Christopher Faylor <me@cgf.cx>
145 * external.cc (sync_winenv): Use cur_environ () rather than
148 2007-01-12 Corinna Vinschen <corinna@vinschen.de>
150 * fork.cc (child_copy): Add missing Windows PID in debug output.
152 2007-01-12 Corinna Vinschen <corinna@vinschen.de>
154 * syscalls.cc: Update copyright.
156 2007-01-10 Corinna Vinschen <corinna@vinschen.de>
158 * mmap.cc (mmap64): Pre-Reserve space for the whole mapping to get a
159 useful, valid address before the actual mappings take place.
162 2007-01-10 Corinna Vinschen <corinna@vinschen.de>
164 * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu).
166 2007-01-09 Corinna Vinschen <corinna@vinschen.de>
168 * syscalls.cc (getpagesize): Change condition for clarity.
169 (getsystempagesize): Ditto.
171 2007-01-09 Corinna Vinschen <corinna@vinschen.de>
173 * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks.
175 2007-01-07 Corinna Vinschen <corinna@vinschen.de>
177 * security.h (setacl): Add parameter for writability flag.
178 * sec_acl.cc (setacl): Ditto. Set to true if any ACE with write
179 permissions is created.
180 * fhandler_disk_file.cc (fhandler_disk_file::facl): Reset
181 FILE_ATTRIBUTE_READONLY if ACL contains an ACE with write permissions.
183 2007-01-05 Corinna Vinschen <corinna@vinschen.de>
185 * include/strings.h: Don't include string.h. Only declare functions
188 2007-01-04 Corinna Vinschen <corinna@vinschen.de>
190 (get_ifconf): Set MTU for loopback to more correct value.
192 2007-01-04 Corinna Vinschen <corinna@vinschen.de>
194 * fhandler_socket.cc (fhandler_socket::ioctl): Don't fake results
195 for SIOCGIFFLAGS here. Call get_ifconf instead.
196 * net.cc (get_2k_ifconf): Clean up code to generate interface name.
197 Handle SIOCGIFFLAGS here.
198 (get_nt_ifconf): Fake SIOCGIFFLAGS here.
199 (get_95_ifconf): Ditto.
200 (get_ifconf): Don't fake loopback on systems with IP Helper Lib.
201 Set MTU for loopback to a more "modern" value.
203 2007-01-04 Brian Ford <Brian.Ford@FlightSafety.com>
204 Corinna Vinschen <corinna@vinschen.de>
206 * fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K.
207 * fhandler.cc (fhandler_base::fstat): Set st_blksize to
208 PREFERRED_IO_BLKSIZE.
209 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Ditto.
210 * fhandler_mailslot.cc (fhandler_mailslot::fstat): Ditto.
211 * fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
213 2007-01-01 Christopher Faylor <me@cgf.cx>
215 * spawn.cc (spawn_guts): Don't expect synchronization from a non-cygwin