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