OSDN Git Service

602e3a05c1b627aae215e0016e27a8fa7b3bb551
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / ChangeLog
1 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
2
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
6         fstat.
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.
14
15 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
16
17         * fhandler_procnet.cc: Drop declaration of htonl and ntohs.  Include
18         asm/byteorder.h instead.
19
20 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
21
22         * include/cygwin/in6.h: Drop inclusion of asm/byteorder.h.
23         * fhandler_procnet.cc: Declare htonl and ntohs here.
24
25 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
26
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
45         appropriately.
46         * include/cygwin/in6.h: Include asm/byteorder.h.
47
48 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
49
50         * include/asm/socket.h (SIOGIFINDEX): Define.
51
52 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
53
54         * mmap.cc (MapView9x): Note possible uselessness of retrying.
55         (MapViewNT): Ditto.
56         (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED.
57
58 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
59
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
69         parameter block.
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
74         on NT instead.
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.
79
80 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
81
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.
91
92 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
93
94         * include/cygwin/in6.h (struct ipv6_mreq): Change type of interface
95         member to uint32_t.
96         (struct in6_pktinfo): Ditto.
97
98 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
99
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.
110
111 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
112
113         * CYGWIN_LICENSE: Fix web pages and contact information.
114
115 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
116
117         * ntdll.h: Adjust status definitions.
118
119 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
120
121         * cygheap.cc (cygheap_init): Add TODO comment.
122
123 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
124
125         * ntdll.h (STATUS_SHARING_VIOLATION): Define.
126
127 2007-01-13  Corinna Vinschen  <corinna@vinschen.de>
128
129         * syscalls.cc (unlink_nt): Don't move files to recycle bin which are
130         not in use.
131
132 2007-01-13  Christopher Faylor  <me@cgf.cx>
133
134         * glob.cc: Update copyright notice with latest from FreeBSD.
135         (glob0): Use correct type for c variable to propagate previously
136         detected protection.
137
138 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
139
140         * cygheap.cc (_csbrk): Fix off-by-one error.
141         * cygwin.sc: Give .cygheap a minimum size of 512K.
142
143 2007-01-12  Christopher Faylor  <me@cgf.cx>
144
145         * external.cc (sync_winenv): Use cur_environ () rather than
146         __cygwin_environ.
147
148 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
149
150         * fork.cc (child_copy): Add missing Windows PID in debug output.
151
152 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
153
154         * syscalls.cc: Update copyright.
155
156 2007-01-10  Corinna Vinschen  <corinna@vinschen.de>
157
158         * mmap.cc (mmap64): Pre-Reserve space for the whole mapping to get a
159         useful, valid address before the actual mappings take place.
160         Fix typo in comment.
161
162 2007-01-10  Corinna Vinschen  <corinna@vinschen.de>
163
164         * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu).
165
166 2007-01-09  Corinna Vinschen  <corinna@vinschen.de>
167
168         * syscalls.cc (getpagesize): Change condition for clarity.
169         (getsystempagesize): Ditto.
170
171 2007-01-09  Corinna Vinschen  <corinna@vinschen.de>
172
173         * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks.
174
175 2007-01-07  Corinna Vinschen  <corinna@vinschen.de>
176
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.
182
183 2007-01-05  Corinna Vinschen  <corinna@vinschen.de>
184
185         * include/strings.h: Don't include string.h.  Only declare functions
186         according to SUSv3.
187
188 2007-01-04  Corinna Vinschen  <corinna@vinschen.de>
189
190         (get_ifconf): Set MTU for loopback to more correct value.
191
192 2007-01-04  Corinna Vinschen  <corinna@vinschen.de>
193
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.
202
203 2007-01-04  Brian Ford  <Brian.Ford@FlightSafety.com>
204             Corinna Vinschen  <corinna@vinschen.de>
205
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.
212
213 2007-01-01  Christopher Faylor  <me@cgf.cx>
214
215         * spawn.cc (spawn_guts): Don't expect synchronization from a non-cygwin
216         _P_NOWAIT process.