]>
Commit | Line | Data |
---|---|---|
ff413a98 CV |
1 | Thu Feb 22 17:09:00 2001 Corinna Vinschen <corinna@vinschen.de> |
2 | ||
3 | * path.cc (symlink): Keep relative paths relative in the DOS | |
4 | path inside of a shortcut. If that's impossible for some | |
5 | reason, save an absolute path. | |
6 | ||
c5a4eacc CV |
7 | Thu Feb 22 15:33:00 2001 Corinna Vinschen <corinna@vinschen.de> |
8 | ||
9 | * cygerrno.h: Revert previous patch. | |
10 | * errno.cc: Ditto. | |
11 | * dir.cc: Eliminate `dir_suffixes'. | |
12 | (opendir): Remove usage of `dir_suffixes'. | |
13 | (rmdir): Ditto. | |
14 | * fhandler.cc (fhandler_disk_file::open): Remove usage of | |
15 | `inner_suffixes'. | |
16 | * path.cc: Rename `inner_suffixes' to `lnk_suffixes'. | |
17 | (path_conv::check): Remove usage of `inner_suffixes'. | |
18 | (symlink): Ditto. | |
19 | (symlink_info::check): Handle checking for `.lnk' in path_conv | |
20 | exclusively here. | |
21 | (chdir): Remove usage of `dir_suffixes'. | |
22 | * shortcut.c: Eliminate debug_printf lines. | |
23 | (check_shortcut): Don't set error except on failing ReadFile. | |
24 | * spawn.cc: Remove ".lnk" from `std_suffixes'. | |
25 | * syscalls.cc (_unlink): Remove usage of `inner_suffixes'. | |
26 | Remove ".lnk" from `stat_suffixes'. | |
27 | (_rename): Add check for renaming a symlink to keep the ".lnk" | |
28 | suffix after renaming. | |
29 | ||
79e56091 CV |
30 | Thu Feb 22 13:38:00 2001 Corinna Vinschen <corinna@vinschen.de> |
31 | ||
32 | * shortcut.c: New file. Provides a C interface to reading of | |
33 | Windows shortcuts to avoid compiler flag `-fvtable-thunks'. | |
34 | * shortcut.h: Ditto. | |
35 | * Makefile.in: Add shortcut.o to DLL_OFILES. | |
36 | * cygerrno.h: Provide a C interface to `geterrno_from_win_error' for | |
37 | using in shortcut.c. | |
38 | * errno.cc (geterrno_from_win_error): Define as extern "C". | |
39 | * path.cc (struct symlink_info): Remove methods `check_shortcut' and | |
40 | `check_sysfile'. | |
41 | (shortcut_header): Move to shortcut.c. | |
42 | (shortcut_initalized): Ditto. | |
43 | (create_shortcut_header): Ditto. | |
44 | (cmp_shortcut_header): Ditto. | |
45 | (symlink_info::check_shortcut): Ditto. Reorganize as a plain C function. | |
46 | (symlink_info::check_sysfile): Redefine as a global function using the | |
47 | same parameter list as `check_shortcut' for clearness. | |
48 | (symlink_info::check): Change parameter list for calls to | |
49 | `check_shortcut' and `check_sysfile'. | |
50 | ||
87e6b098 CV |
51 | Thu Feb 22 12:04:00 2001 Corinna Vinschen <corinna@vinschen.de> |
52 | ||
53 | * fhandler.cc (fhandler_disk_file::open): Use `inner_suffixes' when | |
54 | resolving real_path. | |
55 | * path.cc (symlink): Ditto for win32_topath. | |
56 | ||
10b06c5e CV |
57 | Wed Feb 21 22:41:00 2001 Corinna Vinschen <corinna@vinschen.de> |
58 | ||
59 | * Makefile.in: Add `-lshell32 -luuid' to link pass for new-cygwin1.dll. | |
60 | * autoload.cc: Add LoadDLLinitfunc for ole32.dll. | |
61 | Add LoadDLLfuncEx statements for CoInitialize@4, CoUninitialize@0 | |
62 | and CoCreateInstance@20. | |
63 | * dir.cc (dir_suffixes): New datastructure. | |
64 | (readdir): Check for R/O *.lnk files to hide the suffix. | |
65 | (opendir): Use `dir_suffixes' in path conversion. | |
66 | (rmdir): Ditto. | |
67 | * fhandler.cc (fhandler_disk_file::fstat): Add S_IFLNK flag | |
68 | before calling `get_file_attribute'. Take FILE_ATTRIBUTE_READONLY | |
69 | into account only if the file is no symlink. | |
70 | * path.cc (inner_suffixes): New datastructure. | |
71 | (SYMLINKATTR): Eliminated. | |
72 | (path_conv::check): Use `inner_suffixes' on inner path components. | |
73 | (shortcut_header): New global static variable. | |
74 | (shortcut_initalized): Ditto. | |
75 | (create_shortcut_header): New function. | |
76 | (cmp_shortcut_header): Ditto. | |
77 | (symlink): Create symlinks by creating windows shortcuts. Preserve | |
78 | the old code. | |
79 | (symlink_info::check_shortcut): New method. | |
80 | (symlink_info::check_sysfile): Ditto. | |
81 | (symlink_info::check): Check for shortcuts. Move code reading | |
82 | old system attribute symlinks into symlink_info::check_sysfile(). | |
83 | (chdir): Use `dir_suffixes' in path conversion. | |
84 | * security.cc (get_file_attribute): Check for S_IFLNK flag. | |
85 | Force 0777 permissions then. | |
86 | * spawn.cc (std_suffixes): Add ".lnk" suffix. | |
87 | * syscalls.cc (_unlink): Use `inner_suffixes' in path conversion. | |
88 | Check for shortcut symlinks to eliminate R/O attribute before | |
89 | calling DeleteFile(). | |
90 | (stat_suffixes): Add ".lnk" suffix. | |
91 | (stat_worker): Force 0777 permissions if file is a symlink. | |
92 | ||
0917ed59 ED |
93 | 2001-02-21 Egor Duda <deo@logos-m.ru> |
94 | ||
95 | * sigproc.cc (getsem): Make semaphore always non-inheritable. | |
96 | ||
441d7aee CF |
97 | Mon Feb 19 22:25:53 2001 Christopher Faylor <cgf@cygnus.com> |
98 | ||
99 | * dcrt0.cc (locale_init): Remove. | |
100 | ||
f97e7d75 CF |
101 | 2001-02-15 Kazuhiro Fujieda <fujieda@jaist.ac.jp> |
102 | ||
103 | * cygwin.din: Export rand48 functions. | |
104 | * thread.cc (MTinterface::Init): Remove the initialization of | |
105 | `reent_data'. | |
106 | * dcrt0.cc: Add the initalizer to the declaration of `reent_data'. | |
107 | * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 35. | |
108 | ||
fc68bf34 ED |
109 | 2001-02-16 Egor Duda <deo@logos-m.ru> |
110 | ||
111 | * signal.cc (signal): Prohibit setting handlers for SIGKILL and | |
112 | SIGSTOP | |
113 | * signal.cc (sigaction): Ditto | |
114 | * syscalls.cc (_lseek): Return EINVAL on invalid input | |
115 | ||
ee2c7251 CF |
116 | Wed Feb 14 14:54:40 2001 Christophe Iasci <chrisiasci@aol.com> |
117 | ||
118 | * dlfcn.cc (dlopen): Do not call LoadLibrary with a NULL pointer, when | |
119 | the library is not found | |
120 | ||
8f8e7442 CF |
121 | 2001-02-14 Egor Duda <deo@logos-m.ru> |
122 | ||
123 | * fhandler_console.cc (fhandler_console::char_command): Ignore unknown | |
124 | rendition codes in \033[xx;yym control sequences | |
125 | ||
cde0c2fb CF |
126 | Fri Feb 9 23:19:01 2001 Christopher Faylor <cgf@cygnus.com> |
127 | ||
128 | * fork.cc (fork_parent): Return EAGAIN when can't record pid. | |
129 | * pinfo.h (pinfo::remember): Return value of call to proc_subproc. | |
130 | * sigproc.cc (proc_subproc): Return error if can't record pid. | |
131 | ||
c41482c7 CF |
132 | Fri Feb 9 12:17:27 2001 Christopher Faylor <cgf@cygnus.com> |
133 | ||
134 | * syscalls.cc (mknod): Add valid parameters. | |
135 | ||
889109ab CV |
136 | Thu Feb 8 22:09:00 2001 Corinna Vinschen <corinna@vinschen.de> |
137 | ||
138 | * mmap.cc (mmap): Check for reusing a mapping only on MAP_SHARED | |
139 | and on MAP_PRIVATE|MAP_ANON in the special case of offset 0. | |
140 | ||
db49d0b5 CV |
141 | Thu Feb 8 21:57:00 2001 Corinna Vinschen <corinna@vinschen.de> |
142 | ||
143 | * mmap.cc (class list): Add member `hash'. | |
144 | (list::list): Initialize `hash'. | |
145 | (list::get_list_by_fd): Use filepath hash value to get the correct | |
146 | mapping list if it's not an anonymous mapping. | |
147 | (map::add_list): Initialize `hash' with filepath hash value. | |
148 | (mmap): Check for reusing a mapping only on MAP_SHARED. | |
149 | ||
91d385fe CF |
150 | Wed Feb 7 18:47:36 2001 Christopher Faylor <cgf@cygnus.com> |
151 | ||
152 | * signal.cc (killpg): Correct first argument. | |
153 | ||
9182099c CV |
154 | Wed Feb 7 22:22:00 2001 Corinna Vinschen <corinna@vinschen.de> |
155 | ||
156 | * autoload.cc: Add LoadDLLinitfunc for iphlpapi.dll. | |
157 | Add LoadDLLfuncEx statements for GetIfTable@12 and GetIpAddrTable@12. | |
158 | * fhandler_socket.cc (fhandler_socket::ioctl): Move variable | |
159 | definitions to the beginning of the function to allow better debugging. | |
160 | Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC and SIOCGIFMTU. | |
161 | * net.cc: Include iphlpapi.h. | |
162 | (get_2k_ifconf): Rewritten. Uses IP Helper API now. | |
163 | (get_nt_ifconf): Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC | |
164 | and SIOCGIFMTU. | |
165 | (get_95_ifconf): Ditto. Renamed from `get_9x_ifconf'. | |
166 | (get_ifconf): Name loopback `lo' instead of `lo0' as in Linux. | |
167 | Add handling for SIOCGIFHWADDR, SIOCGIFMETRIC and SIOCGIFMTU. | |
168 | Call `get_95_ifconf' only on Windows 95, `get_nt_ifconf' only | |
169 | on Windows NT < Service Pack 3, `get_2k_ifconf otherwise. | |
170 | * include/asm/socket.h: Add defines for SIOCGIFHWADDR, SIOCGIFMETRIC | |
171 | and SIOCGIFMTU. | |
172 | * include/cygwin/if.h: Add `ifr_hwaddr', `ifr_metric' and `ifr_mtu'. | |
173 | (struct ifreq): Add `ifru_hwaddr'. | |
174 | ||
d7ed877b CV |
175 | Tue Feb 6 15:04:00 2001 Corinna Vinschen <corinna@vinschen.de> |
176 | ||
177 | * syscalls.cc (stat_worker): Add a check for the special case when | |
178 | a process creates a file using mode 000 using ntsec. | |
179 | ||
ae9b22c6 CV |
180 | Mon Feb 5 17:00:00 2001 Corinna Vinschen <corinna@vinschen.de> |
181 | ||
182 | * fhandler.cc (fhandler_base::open): Always add GENERIC_READ access | |
183 | when opening raw disk devices. | |
184 | * fhandler_floppy.cc (fhandler_dev_floppy::lseek): Implement bytewise | |
185 | access. | |
186 | * fhandler_raw.cc (fhandler_dev_raw::open): Always open raw disk device | |
187 | binary. | |
188 | (fhandler_dev_raw::raw_write): Don't drop read buffer content when | |
189 | writing after read. | |
190 | ||
cada03f9 CV |
191 | Mon Feb 5 13:30:00 2001 Corinna Vinschen <corinna@vinschen.de> |
192 | ||
193 | * mmap.cc (mmap_record::fixup_map): New method to duplicate | |
194 | the memory protection in a just forked child. | |
195 | (mmap): Realign gran_len to page boundary only on anonymous | |
196 | mapping before saving in the mmap_record. | |
197 | (munmap): Cleanup code. | |
198 | (msync): Ditto. | |
199 | (fixup_mmaps_after_fork): Ditto. Call mmap_record::fixup_map now. | |
200 | ||
47f81092 CF |
201 | Thu Feb 1 23:08:29 2001 Christopher Faylor <cgf@cygnus.com> |
202 | ||
203 | * cygheap.cc (creturn): Correctly calculate cygheap_max. | |
204 | ||
f8da1507 CF |
205 | Wed Jan 31 10:04:58 2001 Christopher Faylor <cgf@cygnus.com> |
206 | ||
207 | * shared.cc (shared_info::initialize): Reduce size of heap. | |
208 | ||
83443511 CV |
209 | Wed Jan 31 13:22:00 2001 Corinna Vinschen <corinna@vinschen.de> |
210 | ||
211 | * include/sys/resource.h: Fix typo. | |
212 | ||
44e6d951 CV |
213 | Wed Jan 31 13:20:00 2001 Corinna Vinschen <corinna@vinschen.de> |
214 | ||
83443511 | 215 | * include/sys/resource.h: Add RLIMIT_NLIMITS and RLIM_NLIMITS. |
44e6d951 | 216 | |
4f42df7b CF |
217 | Tue Jan 30 18:15:23 2001 Christopher Faylor <cgf@cygnus.com> |
218 | ||
219 | * include/cygwin/version.h: Bump version to 1.3.0. | |
220 | ||
9928a7e1 CV |
221 | Tue Jan 30 8:55:00 2001 Corinna Vinschen <corinna@vinschen.de> |
222 | ||
223 | * pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of | |
224 | explicit cast (HANDLE) 0xffffffff. | |
225 | * shared.cc (open_shared): Ditto. | |
226 | ||
747e88d3 CF |
227 | Mon Jan 29 17:15:22 2001 Bill Hegardt <bill@troyxcd.com> |
228 | ||
229 | * fhandler_serial.cc (raw_write): Use local copy of OVERLAPPED | |
230 | structure instead of shared structure to fix a race condition between | |
231 | read/write. | |
232 | ||
68ea0dc2 CV |
233 | Mon Jan 29 14:30:00 2001 Corinna Vinschen <corinna@vinschen.de> |
234 | ||
235 | * mmap.cc (mmap): Remove obsolete check for MAP_SHARED|MAP_ANON as | |
236 | being invalid. | |
237 | ||
f977222f CV |
238 | Mon Jan 29 10:23:00 2001 Corinna Vinschen <corinna@vinschen.de> |
239 | ||
240 | * mmap.cc (mmap_record::find_empty): Fix loop condition. | |
241 | ||
6a4878cf CF |
242 | Sun Jan 28 19:40:40 2001 Christopher Faylor <cgf@cygnus.com> |
243 | ||
244 | * syscalls.cc (_link): Make sure that newpath does not exist. Set | |
245 | errno if it does. | |
246 | ||
247 | Sun Jan 28 19:29:08 2001 Christopher Faylor <cgf@cygnus.com> | |
248 | ||
249 | * cygheap.cc (init_cheap): Don't specify a load address for the heap. | |
250 | It doesn't work on #!*& Windows 9x. | |
251 | (cygheap_init): Move GetUserName to memory_init. | |
252 | * dcrt0.cc (dll_crt0_1): Call new memory_init functin, eliminate call | |
253 | to heap_init. | |
254 | * heap.cc (heap_init): Improve error output. | |
255 | * heap.h: Correct some declarations. | |
256 | * shared.cc (mount_table_init): Remove. | |
257 | (memory_init): Renamed from shared_init. Reorganize to accomodate | |
258 | strange Windows 9x problems with cygheap/heap interaction. | |
259 | * shared_info.h: Rename shared_init to memory_init. | |
260 | ||
ae6c8e4f CF |
261 | Sun Jan 28 01:25:33 2001 Christopher Faylor <cgf@cygnus.com> |
262 | ||
263 | * include/cygwin/version.h: Bump API version. | |
264 | ||
9a089f21 CF |
265 | Sun Jan 28 01:18:22 2001 Christopher Faylor <cgf@cygnus.com> |
266 | ||
267 | * cygheap.cc (init_cheap): Move username initialization. | |
268 | (cygheap_init): Here. | |
269 | * shared_info.h (mount_info): Add a sys_mount_table_counter field. | |
270 | (shared_info): Ditto. | |
271 | * path.cc (mount_info::conv_to_win32_path): Check that our mount table | |
272 | is in sync with the system mount table and reinitialize it if not. | |
273 | (mount_info::add_reg_mount): Bump sys_mount_table counters if the | |
274 | system mount table changes. | |
275 | (mount_info::del_reg_mount): Ditto. | |
276 | (mount_info::write_cygdrive_info_to_registry): Ditto. | |
277 | (mount_info::remove_cygdrive_info_from_registry): Ditto. | |
278 | ||
2a6fc028 CF |
279 | Sun Jan 28 00:28:30 2001 Christopher Faylor <cgf@cygnus.com> |
280 | ||
281 | Throughout, change 'cygwin_shared.mount' to 'mount_table'. | |
282 | * child_info.h (child_info): Move shared_h, console_h to cygheap. Add | |
283 | mount_h. | |
284 | * cygheap.h (init_cygheap): Add shared_h, console_h. | |
285 | * cygheap.cc (init_cheap): Initialize heap at a fixed location after | |
286 | the shared memory regions. Initialize cygheap->user name here. | |
287 | * dcrt0.cc (dll_crt0_1): Call getpagesize () to initialize constants. | |
288 | Remove cygheap_init since it is done in shared_init now. | |
289 | (_dll_crt0): Initialize mount_h, remove shared_h and console_h | |
290 | initialization. | |
291 | * fhandler_console.cc (console_shared_h): Eliminate. | |
292 | (get_tty_stuff): Use cygheap->console_h rather than console_shared_h. | |
6a4878cf CF |
293 | * heap.cc (heap_init): Use page size constant calculated earlier in |
294 | initialization. | |
2a6fc028 CF |
295 | * shared.cc: Eliminate cygwin_shared_h. Add cygwin_mount_h. |
296 | (mount_table_init): New function for initializing a user mount table. | |
6a4878cf CF |
297 | (open_shared_file_map): Use constant for shared memory region. |
298 | Initialize cygheap and mount table here. | |
2a6fc028 CF |
299 | (open_shared): Improve debugging output. |
300 | (shared_info::initialize): Eliminate call to mount.init. | |
301 | (shared_terminate): Use cygheap->shared_h. Close cygwin_mount_h. | |
302 | (open_shared_file_map): Eliminate. | |
303 | * shared_info.h (mount_info): Add a version field. | |
6a4878cf CF |
304 | (shared_align_past): New macro for calculating location for shared |
305 | memory regions. | |
2a6fc028 | 306 | * sigproc.cc (init_child_info): Eliminate shared_h, console_h. |
6a4878cf CF |
307 | * spawn.cc (spawn_guts): Pass on cygwin_mount_h iff not a different |
308 | user. | |
2a6fc028 CF |
309 | * syscalls.cc (system_info): New global holding system memory defaults. |
310 | (getpagesize): Use system_info. | |
311 | * uinfo.cc (internal_getlogin): Only fill in user name if nonexistent. | |
312 | * winsup.h: Declare system_info. | |
313 | ||
6a4878cf CF |
314 | * passwd.cc (read_etc_passwd): Use cygheap->user.name () rather than |
315 | retrieving the name again. | |
2a6fc028 | 316 | |
bdfeca60 CF |
317 | Sat Jan 27 10:18:02 2001 Christopher Faylor <cgf@cygnus.com> |
318 | ||
319 | * path.cc (path_conv::check): Detect when path has symlinks. | |
320 | (symlink_info::check): Remove debugging stuff. | |
321 | (chdir): Use posix'ized win32 path if cd'ed to a path using symlinks. | |
322 | ||
206a8d88 CF |
323 | Fri Jan 26 21:20:28 2001 Christopher Faylor <cgf@cygnus.com> |
324 | ||
325 | * exceptions.cc (sigreturn): Call any pending signals prior to | |
326 | resetting the signal mask so that stacked signals behave correctly. | |
327 | (sigdelayed): Avoid a race where a signal could end up calling an | |
328 | incorrect signal handler if two signals come in close together. | |
329 | ||
174f1a39 CV |
330 | Tue Jan 23 21:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
331 | ||
332 | * mmap.cc (fhandler_disk_file::mmap): Call CreateFileMapping with | |
333 | len != 0 only when performing an anonymous mapping. | |
334 | ||
4c7b8250 CF |
335 | Mon Jan 22 15:35:28 2001 Christopher Faylor <cgf@cygnus.com> |
336 | ||
337 | * path.h: Add a new constant. | |
338 | * syscalls.cc (_read): Oscillate errno check. | |
339 | ||
c65a3183 CF |
340 | Mon Jan 22 15:27:12 2001 Christopher Faylor <cgf@cygnus.com> |
341 | ||
342 | * include/cygwin/version.h: Bump API to reflect setlogmask. | |
343 | ||
29c39fe3 CF |
344 | Sun Jan 21 22:40:25 2001 Jason Tishler <jt@dothill.com> |
345 | ||
346 | * cygwin.din: Add export for setlogmask(). | |
347 | * syslog.cc (setlogmask): New function. | |
348 | ||
c807d355 CV |
349 | Thu Jan 18 10:27:00 2001 Corinna Vinschen <corinna@vinschen.de> |
350 | ||
351 | * resource.cc (setrlimit): Support RLIMIT_NOFILE. | |
352 | ||
4e2a97b2 CF |
353 | Wed Jan 17 23:23:12 2001 Christopher Faylor <cgf@cygnus.com> |
354 | ||
355 | * syscalls.cc (setdtablesize): Call with amount to increment not total | |
356 | amount. Return success or failure error code. | |
357 | ||
a7cde2b9 CF |
358 | Wed Jan 17 09:47:13 2001 Christopher Faylor <cgf@cygnus.com> |
359 | ||
360 | * autoload.cc (LoadDLLinitfunc): Remove debugging statement. | |
361 | ||
362 | * exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to | |
363 | earlier in interrupt. | |
364 | ((interrupt_setup): i.e., here. | |
365 | (sig_handle): Don't queue multiple SIGSTOPS. | |
366 | * fhandler.h (bg_check_types): Enumerate return value of bg_check for | |
367 | clarity. | |
368 | * signal.cc (kill_pgrp): Minor cleanup. | |
369 | * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type | |
370 | for function return. Don't raise signal if a signal is already queued. | |
371 | * fhandler_console.cc (fhandler_console::read): Use enumerated return | |
372 | type for bg_check. | |
373 | * select.cc: Ditto, throughout. | |
374 | * read.cc: Ditto, throughout. | |
375 | * termios.cc: Ditto, throughout. | |
376 | (_read): YA interrupt detect simplification. | |
377 | * wait.cc (wait4): Ditto. | |
378 | ||
cb503978 CV |
379 | Wed Jan 17 10:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
380 | ||
381 | * cygheap.cc (cygheap_user::~cygheap_user): Temporarily | |
382 | disable free'ing memory. | |
383 | ||
9fedfd57 CV |
384 | Tue Jan 16 18:01:00 2001 Corinna Vinschen <corinna@vinschen.de> |
385 | ||
386 | * mmap.cc (mmap): Initialize fh to avoid compiler warnings. | |
387 | ||
9470a80c CF |
388 | Mon Jan 15 21:07:00 2001 Christopher Faylor <cgf@cygnus.com> |
389 | ||
390 | * wait.cc (wait4): Rename variable for consistency. Allow restartable | |
391 | signal behavior. | |
392 | ||
9334c89c CV |
393 | Mon Jan 15 23:15:00 2001 Corinna Vinschen <corinna@vinschen.de> |
394 | ||
395 | * mmap.cc (mmap): Add more parameter checking. Change error output | |
396 | in case of EINVAL. Treat mmapping /dev/zero like MAP_ANONYMOUS. | |
397 | ||
c6dd43f2 CV |
398 | Mon Jan 15 20:34:00 2001 Corinna Vinschen <corinna@vinschen.de> |
399 | ||
400 | * mmap.cc: include <unistd.h>. Define some bit operations for | |
401 | the new page map. | |
402 | (mmap_record): Change type of base_address_ to caddr_t. | |
403 | Add map_map_ member. Add several methods to manipulate map_map_. | |
404 | (mmap_record::alloc_map): New method. | |
405 | (mmap_record::free_map): Ditto. | |
406 | (mmap_record::find_empty): Ditto. | |
407 | (mmap_record::map_map): Ditto. | |
408 | (mmap_record::unmap_map): Ditto. | |
409 | (list::add_record): Change return type to `mmap_record *'. | |
410 | Allocate page map. | |
411 | (list::match): New method. | |
412 | (mmap): Partly rewritten to take care for the new page map. Add some | |
413 | parameter checking. | |
414 | (munmap): Ditto. | |
415 | ||
66097f06 CV |
416 | Mon Jan 15 13:50:00 2001 Corinna Vinschen <corinna@vinschen.de> |
417 | ||
418 | * heap.cc (heap_init): Fix extern declaration of getpagesize. | |
419 | * syscalls.cc (getpagesize): Fix another typo. | |
420 | ||
dc3651b6 CV |
421 | Mon Jan 15 12:48:00 2001 Corinna Vinschen <corinna@vinschen.de> |
422 | ||
423 | * syscalls.cc (getpagesize): Save pagesize in global variable to | |
424 | avoid calling GetSystemInfo too often. | |
425 | * heap.cc (getpagesize): Eliminate. | |
426 | (heap_init): Use getpagesize function from syscalls.cc. | |
427 | ||
4cf2c0e0 CV |
428 | Mon Jan 15 11:56:00 2001 Corinna Vinschen <corinna@vinschen.de> |
429 | ||
430 | * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE | |
431 | request to avoid implementing the same twice. | |
432 | ||
a3ec080b CF |
433 | Sun Jan 14 14:07:50 2001 Christopher Faylor <cgf@cygnus.com> |
434 | ||
435 | * syscalls.cc (_read): Use more lightweight method for determining if | |
436 | read has been interrupted by a signal. | |
437 | ||
c3d62298 CF |
438 | Fri Jan 12 00:35:15 2001 Christopher Faylor <cgf@cygnus.com> |
439 | ||
440 | * debug.h: Add regparm attributes to some functions. | |
441 | ||
442 | * signal.cc (sigaction): Don't treat SIGCONT specially. | |
443 | ||
6a4878cf CF |
444 | * exceptions.cc (interrupt_setup): Save sa_flags of interrupted signal |
445 | for later use. | |
c3d62298 CF |
446 | (sig_handler): Default any stopping signal to SIGSTOP. |
447 | (call_signal_handler): New function. | |
448 | (sigdelayed0): New function. | |
6a4878cf CF |
449 | * sigproc.cc (sigproc_init): Initialize SIGSTOP sigaction for special |
450 | behavior. | |
c3d62298 CF |
451 | * sigproc.h: Define call_signal_handler. |
452 | * syscalls.cc (_read): Allow restartable signal behavior. | |
453 | ||
c4efddf6 CV |
454 | Thu Jan 11 13:17:00 2001 Corinna Vinschen <corinna@vinschen.de> |
455 | ||
456 | * fhandler.h (fhandler_base): New method `fixup_mmap_after_fork'. | |
457 | (fhandler_disk_file: Ditto. | |
458 | (fhandler_dev_mem): Ditto. | |
459 | * fhandler_mem.cc (fhandler_dev_mem::open): Set OBJ_INHERIT attribute | |
460 | for device\physicalmemory handle. | |
461 | (fhandler_dev_mem::mmap): Ditto. | |
6a4878cf CF |
462 | * fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork): New |
463 | method. | |
464 | * mmap.cc (mmap_record): Add private `fdesc_' member. Change | |
465 | constructor accordingly. | |
c4efddf6 CV |
466 | (get_fd): New method. |
467 | (mmap): Use new mmap_record constructor. | |
468 | (fhandler_base::fixup_mmap_after_fork): New method. | |
469 | (fhandler_disk_file::fixup_mmap_after_fork): Ditto. | |
6a4878cf | 470 | (fixup_mmaps_after_fork): Call `fixup_mmap_after_fork' of appropriate |
c4efddf6 CV |
471 | fhandler class. |
472 | ||
7416e1d2 CF |
473 | Wed Jan 10 22:08:30 2001 Kazuhiro Fujieda <fujieda@jaist.ac.jp> |
474 | ||
475 | * sigproc.cc (wait_sig): Allow SIGCONT when stopped. | |
476 | ||
55ae1dff CV |
477 | Tue Jan 9 16:55:00 2001 Corinna Vinschen <corinna@vinschen.de> |
478 | ||
479 |