]>
Commit | Line | Data |
---|---|---|
c41482c7 CF |
1 | Fri Feb 9 12:17:27 2001 Christopher Faylor <cgf@cygnus.com> |
2 | ||
3 | * syscalls.cc (mknod): Add valid parameters. | |
4 | ||
889109ab CV |
5 | Thu Feb 8 22:09:00 2001 Corinna Vinschen <corinna@vinschen.de> |
6 | ||
7 | * mmap.cc (mmap): Check for reusing a mapping only on MAP_SHARED | |
8 | and on MAP_PRIVATE|MAP_ANON in the special case of offset 0. | |
9 | ||
db49d0b5 CV |
10 | Thu Feb 8 21:57:00 2001 Corinna Vinschen <corinna@vinschen.de> |
11 | ||
12 | * mmap.cc (class list): Add member `hash'. | |
13 | (list::list): Initialize `hash'. | |
14 | (list::get_list_by_fd): Use filepath hash value to get the correct | |
15 | mapping list if it's not an anonymous mapping. | |
16 | (map::add_list): Initialize `hash' with filepath hash value. | |
17 | (mmap): Check for reusing a mapping only on MAP_SHARED. | |
18 | ||
91d385fe CF |
19 | Wed Feb 7 18:47:36 2001 Christopher Faylor <cgf@cygnus.com> |
20 | ||
21 | * signal.cc (killpg): Correct first argument. | |
22 | ||
9182099c CV |
23 | Wed Feb 7 22:22:00 2001 Corinna Vinschen <corinna@vinschen.de> |
24 | ||
25 | * autoload.cc: Add LoadDLLinitfunc for iphlpapi.dll. | |
26 | Add LoadDLLfuncEx statements for GetIfTable@12 and GetIpAddrTable@12. | |
27 | * fhandler_socket.cc (fhandler_socket::ioctl): Move variable | |
28 | definitions to the beginning of the function to allow better debugging. | |
29 | Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC and SIOCGIFMTU. | |
30 | * net.cc: Include iphlpapi.h. | |
31 | (get_2k_ifconf): Rewritten. Uses IP Helper API now. | |
32 | (get_nt_ifconf): Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC | |
33 | and SIOCGIFMTU. | |
34 | (get_95_ifconf): Ditto. Renamed from `get_9x_ifconf'. | |
35 | (get_ifconf): Name loopback `lo' instead of `lo0' as in Linux. | |
36 | Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC and SIOCGIFMTU. | |
37 | Call `get_95_ifconf' only on Windows 95, `get_nt_ifconf' only | |
38 | on Windows NT < Service Pack 3, `get_2k_ifconf otherwise. | |
39 | * include/asm/socket.h: Add defines for SIOCGIFHWADDR, SIOCGIFMETRIC | |
40 | and SIOCGIFMTU. | |
41 | * include/cygwin/if.h: Add `ifr_hwaddr', `ifr_metric' and `ifr_mtu'. | |
42 | (struct ifreq): Add `ifru_hwaddr'. | |
43 | ||
d7ed877b CV |
44 | Tue Feb 6 15:04:00 2001 Corinna Vinschen <corinna@vinschen.de> |
45 | ||
46 | * syscalls.cc (stat_worker): Add a check for the special case when | |
47 | a process creates a file using mode 000 using ntsec. | |
48 | ||
ae9b22c6 CV |
49 | Mon Feb 5 17:00:00 2001 Corinna Vinschen <corinna@vinschen.de> |
50 | ||
51 | * fhandler.cc (fhandler_base::open): Always add GENERIC_READ access | |
52 | when opening raw disk devices. | |
53 | * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Implement bytewise | |
54 | access. | |
55 | * fhandler_raw.cc (fhandler_dev_raw::open): Always open raw disk device | |
56 | binary. | |
57 | (fhandler_dev_raw::raw_write): Don't drop read buffer content when | |
58 | writing after read. | |
59 | ||
cada03f9 CV |
60 | Mon Feb 5 13:30:00 2001 Corinna Vinschen <corinna@vinschen.de> |
61 | ||
62 | * mmap.cc (mmap_record::fixup_map): New method to duplicate | |
63 | the memory protection in a just forked child. | |
64 | (mmap): Realign gran_len to page boundary only on anonymous | |
65 | mapping before saving in the mmap_record. | |
66 | (munmap): Cleanup code. | |
67 | (msync): Ditto. | |
68 | (fixup_mmaps_after_fork): Ditto. Call mmap_record::fixup_map now. | |
69 | ||
47f81092 CF |
70 | Thu Feb 1 23:08:29 2001 Christopher Faylor <cgf@cygnus.com> |
71 | ||
72 | * cygheap.cc (creturn): Correctly calculate cygheap_max. | |
73 | ||
f8da1507 CF |
74 | Wed Jan 31 10:04:58 2001 Christopher Faylor <cgf@cygnus.com> |
75 | ||
76 | * shared.cc (shared_info::initialize): Reduce size of heap. | |
77 | ||
83443511 CV |
78 | Wed Jan 31 13:22:00 2001 Corinna Vinschen <corinna@vinschen.de> |
79 | ||
80 | * include/sys/resource.h: Fix typo. | |
81 | ||
44e6d951 CV |
82 | Wed Jan 31 13:20:00 2001 Corinna Vinschen <corinna@vinschen.de> |
83 | ||
83443511 | 84 | * include/sys/resource.h: Add RLIMIT_NLIMITS and RLIM_NLIMITS. |
44e6d951 | 85 | |
4f42df7b CF |
86 | Tue Jan 30 18:15:23 2001 Christopher Faylor <cgf@cygnus.com> |
87 | ||
88 | * include/cygwin/version.h: Bump version to 1.3.0. | |
89 | ||
9928a7e1 CV |
90 | Tue Jan 30 8:55:00 2001 Corinna Vinschen <corinna@vinschen.de> |
91 | ||
92 | * pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of | |
93 | explicit cast (HANDLE) 0xffffffff. | |
94 | * shared.cc (open_shared): Ditto. | |
95 | ||
747e88d3 CF |
96 | Mon Jan 29 17:15:22 2001 Bill Hegardt <bill@troyxcd.com> |
97 | ||
98 | * fhandler_serial.cc (raw_write): Use local copy of OVERLAPPED | |
99 | structure instead of shared structure to fix a race condition between | |
100 | read/write. | |
101 | ||
68ea0dc2 CV |
102 | Mon Jan 29 14:30:00 2001 Corinna Vinschen <corinna@vinschen.de> |
103 | ||
104 | * mmap.cc (mmap): Remove obsolete check for MAP_SHARED|MAP_ANON as | |
105 | being invalid. | |
106 | ||
f977222f CV |
107 | Mon Jan 29 10:23:00 2001 Corinna Vinschen <corinna@vinschen.de> |
108 | ||
109 | * mmap.cc (mmap_record::find_empty): Fix loop condition. | |
110 | ||
6a4878cf CF |
111 | Sun Jan 28 19:40:40 2001 Christopher Faylor <cgf@cygnus.com> |
112 | ||
113 | * syscalls.cc (_link): Make sure that newpath does not exist. Set | |
114 | errno if it does. | |
115 | ||
116 | Sun Jan 28 19:29:08 2001 Christopher Faylor <cgf@cygnus.com> | |
117 | ||
118 | * cygheap.cc (init_cheap): Don't specify a load address for the heap. | |
119 | It doesn't work on #!*& Windows 9x. | |
120 | (cygheap_init): Move GetUserName to memory_init. | |
121 | * dcrt0.cc (dll_crt0_1): Call new memory_init functin, eliminate call | |
122 | to heap_init. | |
123 | * heap.cc (heap_init): Improve error output. | |
124 | * heap.h: Correct some declarations. | |
125 | * shared.cc (mount_table_init): Remove. | |
126 | (memory_init): Renamed from shared_init. Reorganize to accomodate | |
127 | strange Windows 9x problems with cygheap/heap interaction. | |
128 | * shared_info.h: Rename shared_init to memory_init. | |
129 | ||
ae6c8e4f CF |
130 | Sun Jan 28 01:25:33 2001 Christopher Faylor <cgf@cygnus.com> |
131 | ||
132 | * include/cygwin/version.h: Bump API version. | |
133 | ||
9a089f21 CF |
134 | Sun Jan 28 01:18:22 2001 Christopher Faylor <cgf@cygnus.com> |
135 | ||
136 | * cygheap.cc (init_cheap): Move username initialization. | |
137 | (cygheap_init): Here. | |
138 | * shared_info.h (mount_info): Add a sys_mount_table_counter field. | |
139 | (shared_info): Ditto. | |
140 | * path.cc (mount_info::conv_to_win32_path): Check that our mount table | |
141 | is in sync with the system mount table and reinitialize it if not. | |
142 | (mount_info::add_reg_mount): Bump sys_mount_table counters if the | |
143 | system mount table changes. | |
144 | (mount_info::del_reg_mount): Ditto. | |
145 | (mount_info::write_cygdrive_info_to_registry): Ditto. | |
146 | (mount_info::remove_cygdrive_info_from_registry): Ditto. | |
147 | ||
2a6fc028 CF |
148 | Sun Jan 28 00:28:30 2001 Christopher Faylor <cgf@cygnus.com> |
149 | ||
150 | Throughout, change 'cygwin_shared.mount' to 'mount_table'. | |
151 | * child_info.h (child_info): Move shared_h, console_h to cygheap. Add | |
152 | mount_h. | |
153 | * cygheap.h (init_cygheap): Add shared_h, console_h. | |
154 | * cygheap.cc (init_cheap): Initialize heap at a fixed location after | |
155 | the shared memory regions. Initialize cygheap->user name here. | |
156 | * dcrt0.cc (dll_crt0_1): Call getpagesize () to initialize constants. | |
157 | Remove cygheap_init since it is done in shared_init now. | |
158 | (_dll_crt0): Initialize mount_h, remove shared_h and console_h | |
159 | initialization. | |
160 | * fhandler_console.cc (console_shared_h): Eliminate. | |
161 | (get_tty_stuff): Use cygheap->console_h rather than console_shared_h. | |
6a4878cf CF |
162 | * heap.cc (heap_init): Use page size constant calculated earlier in |
163 | initialization. | |
2a6fc028 CF |
164 | * shared.cc: Eliminate cygwin_shared_h. Add cygwin_mount_h. |
165 | (mount_table_init): New function for initializing a user mount table. | |
6a4878cf CF |
166 | (open_shared_file_map): Use constant for shared memory region. |
167 | Initialize cygheap and mount table here. | |
2a6fc028 CF |
168 | (open_shared): Improve debugging output. |
169 | (shared_info::initialize): Eliminate call to mount.init. | |
170 | (shared_terminate): Use cygheap->shared_h. Close cygwin_mount_h. | |
171 | (open_shared_file_map): Eliminate. | |
172 | * shared_info.h (mount_info): Add a version field. | |
6a4878cf CF |
173 | (shared_align_past): New macro for calculating location for shared |
174 | memory regions. | |
2a6fc028 | 175 | * sigproc.cc (init_child_info): Eliminate shared_h, console_h. |
6a4878cf CF |
176 | * spawn.cc (spawn_guts): Pass on cygwin_mount_h iff not a different |
177 | user. | |
2a6fc028 CF |
178 | * syscalls.cc (system_info): New global holding system memory defaults. |
179 | (getpagesize): Use system_info. | |
180 | * uinfo.cc (internal_getlogin): Only fill in user name if nonexistent. | |
181 | * winsup.h: Declare system_info. | |
182 | ||
6a4878cf CF |
183 | * passwd.cc (read_etc_passwd): Use cygheap->user.name () rather than |
184 | retrieving the name again. | |
2a6fc028 | 185 | |
bdfeca60 CF |
186 | Sat Jan 27 10:18:02 2001 Christopher Faylor <cgf@cygnus.com> |
187 | ||
188 | * path.cc (path_conv::check): Detect when path has symlinks. | |
189 | (symlink_info::check): Remove debugging stuff. | |
190 | (chdir): Use posix'ized win32 path if cd'ed to a path using symlinks. | |
191 | ||
206a8d88 CF |
192 | Fri Jan 26 21:20:28 2001 Christopher Faylor <cgf@cygnus.com> |
193 | ||
194 | * exceptions.cc (sigreturn): Call any pending signals prior to | |
195 | resetting the signal mask so that stacked signals behave correctly. | |
196 | (sigdelayed): Avoid a race where a signal could end up calling an | |
197 | incorrect signal handler if two signals come in close together. | |
198 | ||
174f1a39 CV |
199 | Tue Jan 23 21:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
200 | ||
201 | * mmap.cc (fhandler_disk_file::mmap): Call CreateFileMapping with | |
202 | len != 0 only when performing an anonymous mapping. | |
203 | ||
4c7b8250 CF |
204 | Mon Jan 22 15:35:28 2001 Christopher Faylor <cgf@cygnus.com> |
205 | ||
206 | * path.h: Add a new constant. | |
207 | * syscalls.cc (_read): Oscillate errno check. | |
208 | ||
c65a3183 CF |
209 | Mon Jan 22 15:27:12 2001 Christopher Faylor <cgf@cygnus.com> |
210 | ||
211 | * include/cygwin/version.h: Bump API to reflect setlogmask. | |
212 | ||
29c39fe3 CF |
213 | Sun Jan 21 22:40:25 2001 Jason Tishler <jt@dothill.com> |
214 | ||
215 | * cygwin.din: Add export for setlogmask(). | |
216 | * syslog.cc (setlogmask): New function. | |
217 | ||
c807d355 CV |
218 | Thu Jan 18 10:27:00 2001 Corinna Vinschen <corinna@vinschen.de> |
219 | ||
220 | * resource.cc (setrlimit): Support RLIMIT_NOFILE. | |
221 | ||
4e2a97b2 CF |
222 | Wed Jan 17 23:23:12 2001 Christopher Faylor <cgf@cygnus.com> |
223 | ||
224 | * syscalls.cc (setdtablesize): Call with amount to increment not total | |
225 | amount. Return success or failure error code. | |
226 | ||
a7cde2b9 CF |
227 | Wed Jan 17 09:47:13 2001 Christopher Faylor <cgf@cygnus.com> |
228 | ||
229 | * autoload.cc (LoadDLLinitfunc): Remove debugging statement. | |
230 | ||
231 | * exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to | |
232 | earlier in interrupt. | |
233 | ((interrupt_setup): i.e., here. | |
234 | (sig_handle): Don't queue multiple SIGSTOPS. | |
235 | * fhandler.h (bg_check_types): Enumerate return value of bg_check for | |
236 | clarity. | |
237 | * signal.cc (kill_pgrp): Minor cleanup. | |
238 | * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type | |
239 | for function return. Don't raise signal if a signal is already queued. | |
240 | * fhandler_console.cc (fhandler_console::read): Use enumerated return | |
241 | type for bg_check. | |
242 | * select.cc: Ditto, throughout. | |
243 | * read.cc: Ditto, throughout. | |
244 | * termios.cc: Ditto, throughout. | |
245 | (_read): YA interrupt detect simplification. | |
246 | * wait.cc (wait4): Ditto. | |
247 | ||
cb503978 CV |
248 | Wed Jan 17 10:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
249 | ||
250 | * cygheap.cc (cygheap_user::~cygheap_user): Temporarily | |
251 | disable free'ing memory. | |
252 | ||
9fedfd57 CV |
253 | Tue Jan 16 18:01:00 2001 Corinna Vinschen <corinna@vinschen.de> |
254 | ||
255 | * mmap.cc (mmap): Initialize fh to avoid compiler warnings. | |
256 | ||
9470a80c CF |
257 | Mon Jan 15 21:07:00 2001 Christopher Faylor <cgf@cygnus.com> |
258 | ||
259 | * wait.cc (wait4): Rename variable for consistency. Allow restartable | |
260 | signal behavior. | |
261 | ||
9334c89c CV |
262 | Mon Jan 15 23:15:00 2001 Corinna Vinschen <corinna@vinschen.de> |
263 | ||
264 | * mmap.cc (mmap): Add more parameter checking. Change error output | |
265 | in case of EINVAL. Treat mmapping /dev/zero like MAP_ANONYMOUS. | |
266 | ||
c6dd43f2 CV |
267 | Mon Jan 15 20:34:00 2001 Corinna Vinschen <corinna@vinschen.de> |
268 | ||
269 | * mmap.cc: include <unistd.h>. Define some bit operations for | |
270 | the new page map. | |
271 | (mmap_record): Change type of base_address_ to caddr_t. | |
272 | Add map_map_ member. Add several methods to manipulate map_map_. | |
273 | (mmap_record::alloc_map): New method. | |
274 | (mmap_record::free_map): Ditto. | |
275 | (mmap_record::find_empty): Ditto. | |
276 | (mmap_record::map_map): Ditto. | |
277 | (mmap_record::unmap_map): Ditto. | |
278 | (list::add_record): Change return type to `mmap_record *'. | |
279 | Allocate page map. | |
280 | (list::match): New method. | |
281 | (mmap): Partly rewritten to take care for the new page map. Add some | |
282 | parameter checking. | |
283 | (munmap): Ditto. | |
284 | ||
66097f06 CV |
285 | Mon Jan 15 13:50:00 2001 Corinna Vinschen <corinna@vinschen.de> |
286 | ||
287 | * heap.cc (heap_init): Fix extern declaration of getpagesize. | |
288 | * syscalls.cc (getpagesize): Fix another typo. | |
289 | ||
dc3651b6 CV |
290 | Mon Jan 15 12:48:00 2001 Corinna Vinschen <corinna@vinschen.de> |
291 | ||
292 | * syscalls.cc (getpagesize): Save pagesize in global variable to | |
293 | avoid calling GetSystemInfo too often. | |
294 | * heap.cc (getpagesize): Eliminate. | |
295 | (heap_init): Use getpagesize function from syscalls.cc. | |
296 | ||
4cf2c0e0 CV |
297 | Mon Jan 15 11:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
298 | ||
299 | * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE | |
300 | request to avoid implementing the same twice. | |
301 | ||
a3ec080b CF |
302 | Sun Jan 14 14:07:50 2001 Christopher Faylor <cgf@cygnus.com> |
303 | ||
304 | * syscalls.cc (_read): Use more lightweight method for determining if | |
305 | read has been interrupted by a signal. | |
306 | ||
c3d62298 CF |
307 | Fri Jan 12 00:35:15 2001 Christopher Faylor <cgf@cygnus.com> |
308 | ||
309 | * debug.h: Add regparm attributes to some functions. | |
310 | ||
311 | * signal.cc (sigaction): Don't treat SIGCONT specially. | |
312 | ||
6a4878cf CF |
313 | * exceptions.cc (interrupt_setup): Save sa_flags of interrupted signal |
314 | for later use. | |
c3d62298 CF |
315 | (sig_handler): Default any stopping signal to SIGSTOP. |
316 | (call_signal_handler): New function. | |
317 | (sigdelayed0): New function. | |
6a4878cf CF |
318 | * sigproc.cc (sigproc_init): Initialize SIGSTOP sigaction for special |
319 | behavior. | |
c3d62298 CF |
320 | * sigproc.h: Define call_signal_handler. |
321 | * syscalls.cc (_read): Allow restartable signal behavior. | |
322 | ||
c4efddf6 CV |
323 | Thu Jan 11 13:17:00 2001 Corinna Vinschen <corinna@vinschen.de> |
324 | ||
325 | * fhandler.h (fhandler_base): New method `fixup_mmap_after_fork'. | |
326 | (fhandler_disk_file: Ditto. | |
327 | (fhandler_dev_mem): Ditto. | |
328 | * fhandler_mem.cc (fhandler_dev_mem::open): Set OBJ_INHERIT attribute | |
329 | for device\physicalmemory handle. | |
330 | (fhandler_dev_mem::mmap): Ditto. | |
6a4878cf CF |
331 | * fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork): New |
332 | method. | |
333 | * mmap.cc (mmap_record): Add private `fdesc_' member. Change | |
334 | constructor accordingly. | |
c4efddf6 CV |
335 | (get_fd): New method. |
336 | (mmap): Use new mmap_record constructor. | |
337 | (fhandler_base::fixup_mmap_after_fork): New method. | |
338 | (fhandler_disk_file::fixup_mmap_after_fork): Ditto. | |
6a4878cf | 339 | (fixup_mmaps_after_fork): Call `fixup_mmap_after_fork' of appropriate |
c4efddf6 CV |
340 | fhandler class. |
341 | ||
7416e1d2 CF |
342 | Wed Jan 10 22:08:30 2001 Kazuhiro Fujieda <fujieda@jaist.ac.jp> |
343 | ||
344 | * sigproc.cc (wait_sig): Allow SIGCONT when stopped. | |
345 | ||
55ae1dff CV |
346 | Tue Jan 9 16:55:00 2001 Corinna Vinschen <corinna@vinschen.de> |
347 | ||
348 |