OSDN Git Service

* fhandler_socket.cc (adjust_socket_file_mode): New inline function.
[pf3gnuchains/pf3gnuchains3x.git] / winsup / cygwin / ChangeLog
1 2007-05-15  Corinna Vinschen  <corinna@vinschen.de>
2
3         * fhandler_socket.cc (adjust_socket_file_mode): New inline function.
4         (fhandler_socket::fchmod): Squeeze mode through adjust_socket_file_mode
5         before using it.
6         (fhandler_socket::bind): Ditto.
7
8 2007-03-19  Ryan C. Gordon  <icculus@icculus.org>
9
10         * path.cc (fs_info::update): Set and use is_cdrom.
11         * path.cc (fillout_mntent): Set ret.mnt_type to something more
12         Linux-like, based on data from fs_info.  Move "system" and "user"
13         strings from mnt_type to mnt_opts.
14         * path.h (struct fs_info): Add is_cdrom field.
15         * path.h (fs_info::clear): Initialize is_cdrom.
16         * path.h (struct fs_info): Add IMPLEMENT_STATUS_FLAG(bool,is_cdrom).
17         * path.h (class path_conv): Add fs_is_cdrom method.  Add missing
18         fs_is_netapp method.
19
20 2007-05-14  Eric Blake  <ebb9@byu.net>
21
22         * cygwin.din (asnprintf, dprint, _Exit, vasnprintf, vdprintf): Export.
23         * include/cygwin/version.h: Bump API minor number.
24
25 2007-04-18  Brian Dessent  <brian@dessent.net>
26
27         * cygwin.sc: Remove duplicated .debug_macinfo section.
28         * dllfixdbg: Also copy DWARF-2 sections into .dbg file.
29
30 2007-04-06  Eric Blake  <ebb9@byu.net>
31
32         * include/stdint.h (WINT_MIN): Fix sign.
33
34 2007-04-04  Eric Blake  <ebb9@byu.net>
35
36         * include/stdint.h (WINT_MIN, WINT_MAX): Fix definition.
37
38 2007-03-30  Christopher Faylor  <me@cgf.cx>
39
40         * external.cc (cygwin_internal): Implement CW_SET_DOS_FILE_WARNING.
41         * include/sys/cygwin.h: Define CW_SET_DOS_FILE_WARNING.
42
43 2007-03-29  Corinna Vinschen  <corinna@vinschen.de>
44
45         * cygheap.cc (cygheap_init): Fix formatting.  Remove comment.  Set
46         shared_prefix depending only on terminal service capability.
47         * dcrt0.cc (dll_crt0_1): Don't call set_cygwin_privileges here.
48         * fhandler_fifo.cc (fhandler_fifo::open): Create the mutex as global
49         object.
50         * posix_ipc.cc (ipc_mutex_init): Use cygheap->shared_prefix.
51         (ipc_cond_init): Ditto.
52         * sec_helper.cc (privilege_name): Make static.  Use LookupPrivilegeName
53         directly to be independent of the state of cygheap.
54         (set_privilege): Take a LUID as parameter instead of an index value.
55         Only print debug output in case of failure.
56         (set_cygwin_privileges): Add comment.  Use LookupPrivilegeValue to
57         get privilege LUIDs.
58         (init_global_security): Call set_cygwin_privileges here.
59         * security.h (privilege_name): Drop declaration.
60         (set_privilege): Declare according to above change.
61         (set_process_privilege): Call privilege_luid to get LUID.
62         (_push_thread_privilege): Ditto.
63         * shared.cc (open_shared): Add comment.  On systems supporting the
64         SeCreateGlobalPrivilege, try to create/open global shared memory first.
65         Fall back to local shared memory if that fails.
66         * thread.cc (semaphore::semaphore): Use cygheap->shared_prefix.
67         * wincap.h (wincapc::has_create_global_privilege): New element.
68         * wincap.cc: Implement above element throughout.
69
70 2007-03-28  Christopher Faylor  <me@cgf.cx>
71
72         * spawn.cc (spawn_guts): Start pure-windows processes in a suspended
73         state to avoid potential DuplicateHandle problems.
74
75 2007-03-13  Eric Blake  <ebb9@byu.net>
76
77         * include/cygwin/stat.h (S_TYPEISMQ, S_TYPEISSEM, S_TYPEISSHM):
78         Avoid compiler warnings.
79
80 2007-03-07  Christopher Faylor  <me@cgf.cx>
81
82         * signal.cc (handle_sigprocmask): Remove extraneous
83         sig_dispatch_pending.
84
85 2007-03-07  Corinna Vinschen  <corinna@vinschen.de>
86
87         * fhandler_proc.cc: Fix formatting.  Drop setting errno when creating
88         proc file content.
89         (format_proc_uptime): Simplify.
90         (format_proc_cpuinfo): Align more closely to output of Linux 2.6 kernel.
91         Evaluate more data, especially for AMD CPUs.
92
93 2007-03-06  Corinna Vinschen  <corinna@vinschen.de>
94
95         * fhandler.h (fhandler_base::fstat_helper): Add creation time parameter.
96         * glob.cc (stat32_to_stat64): Set st_birthtim to st_mtim.
97
98 2007-03-06  Corinna Vinschen  <corinna@vinschen.de>
99
100         * include/cygwin/stat.h (S_TYPEISMQ): Define.
101         (S_TYPEISSEM): Dttio.
102         (S_TYPEISSHM): Ditto.
103
104 2007-03-06  Corinna Vinschen  <corinna@vinschen.de>
105
106         * fhandler_mailslot.cc (fhandler_mailslot::fstat): Set new stat member
107         st_birthtim to useful value.
108         * fhandler_process.cc (fhandler_process::fstat): Ditto.
109         * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Take
110         additional parameter for creation time.  Fill st_birthtim with it.
111         Accomodate additional creation time parameter throughout.
112         * fhandler_raw.cc (fhandler_dev_raw::fstat): Set new stat member
113         st_birthtim to useful value.
114         * fhandler.cc (fhandler_base::fstat): Ditto.
115         * fhandler_registry.cc (fhandler_registry::fstat): Ditto.
116         * include/cygwin/version.h: Bump API minor number.
117         * include/cygwin/stat.h (struct __stat64): Replace st_spare4 with
118         timestruc_t st_birthtim.
119         (struct stat): Ditto if __CYGWIN_USE_BIG_TYPES__ is defined.
120         (st_birthtime): Define if __CYGWIN_USE_BIG_TYPES__ is defined.
121
122 2007-03-02  Corinna Vinschen  <corinna@vinschen.de>
123
124         * ntdll.h (struct _FILE_NAMES_INFORMATION): Define.
125         * syscalls.cc (unlink_nt): Check shared directory for being empty
126         before trying to move and mark for deletion.
127
128 2007-03-02  Corinna Vinschen  <corinna@vinschen.de>
129
130         * security.cc (get_file_attribute): Avoid compiler warning.
131
132 2007-03-01  Christopher Faylor  <me@cgf.cx>
133
134         * fork.cc (fork): Reset child to true after fork since it may have been
135         reset by fork memory copies.
136
137 2007-03-01  Christopher Faylor  <me@cgf.cx>
138
139         * Makefile (DLL_OFILES): Remove ntea.o
140         * environ.cc (set_ntea): Delete.
141         (parse_thing): Delete "ntea" setting.
142         * fhandler.cc (fhandler_base::open): Remove allow_ntea considerations.
143         (check_posix_perm): Ditto.
144         * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Ditto.
145         (fhandler_base::open_fs): Ditto.
146         (fhandler_disk_file::mkdir): Ditto.
147         * path.cc (symlink_worker): Ditto.
148         * security.cc (get_file_attribute): Ditto.
149         (set_file_attribute): Ditto.
150         * security.h: Remove allow_ntea declaration.
151
152 2007-02-27  Corinna Vinschen  <corinna@vinschen.de>
153
154         * path.cc (close_user_proc_parms_cwd_handle): Remove.
155         (cwdstuff::init): Don't call close_user_proc_parms_cwd_handle.
156         Call set to set cwd with all-sharing handle.
157         (cwdstuff::set): Fix comment.  Don't close cwd handle.  Set in
158         user parameter block instead and close old cwd handle.
159         * syscalls.cc (rename): Call unlink_nt instead of RemoveDirectory or
160         DeleteFile to allow deleting shared files/directories.
161
162 2007-02-27  Corinna Vinschen  <corinna@vinschen.de>
163
164         * fhandler.cc(fhandler_base::open): Open with READ_CONTROL only in
165         case of query_open flag set to query_read_control.  Add case for
166         new query_read_attributes flag.
167         (fhandler_base::fstatvfs): New method.
168         * fhandler.h (enum query_state): Add query_read_attributes flag.
169         (class fhandler_base): Declare new virtual fstatvfs method.
170         (class fhandler_socket): Ditto.
171         (class fhandler_pipe): Ditto.
172         (class fhandler_fifo): Ditto.
173         (class fhandler_disk_file): Ditto.
174         (class fhandler_virtual): Ditto.
175         * fhandler_disk_file.cc (fhandler_base::fstat_fs): Open with
176         query_read_attributes instead of query_read_control.
177         (fhandler_disk_file::fstatvfs): New method.
178         (fhandler_disk_file::facl): Open with query_read_attributes instead of
179         query_read_control.
180         * fhandler_fifo.cc (fhandler_fifo::fstatvfs): New method.
181         * fhandler_socket.cc (fhandler_socket::fstatvfs): New method.
182         (fhandler_socket::fchmod): Return with EBADF in the default case.
183         (fhandler_socket::fchown): Ditto.
184         (fhandler_socket::facl): Ditto.
185         * fhandler_virtual.cc (fhandler_virtual::fstatvfs): Ditto.
186         * ntdll.h (struct _FILE_FS_ATTRIBUTE_INFORMATION): Define.
187         (struct _FILE_FS_FULL_SIZE_INFORMATION): Define.
188         * pipe.cc (fhandler_pipe::fstatvfs): New method.
189         * syscalls.cc (fstatvfs): Just call the fhandler's fstatvfs.
190         (statvfs): Ditto.
191         (fstatfs): Call fstatvfs.
192         (statfs): Drop EFAULT handling.
193
194 2007-02-26  Corinna Vinschen  <corinna@vinschen.de>
195
196         * fhandler.cc (fhandler_base::fstat): Set all file times to arbitrary
197         fixed value.
198
199 2007-02-26  Corinna Vinschen  <corinna@vinschen.de>
200
201         * fhandler_registry.cc (registry_listing): Drop name of HKEY_DYN_DATA.
202         (registry_keys): Drop HKEY_DYN_DATA.
203         * net.cc: Fix comment.
204         * syslog.cc: Ditto.
205
206 2007-02-26  Corinna Vinschen  <corinna@vinschen.de>
207
208         * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Drop comment.
209         * mmap.cc (gen_access): Remove.
210         (mmap_record::gen_access): Remove.
211         (mmap64): Don't mention 9x any longer.
212         * syscalls.cc (statvfs): Drop status code consideration for 9x.
213         * libc/minires-os-if.c (get_registry_dns_items): Don't mention 9x any
214         longer.
215         (get_registry_dns): Drop getting registry key on 9x.  Drop is9x
216         variable.
217
218 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
219
220         Throughout remove all usage of wincap.has_security.
221         * environ.cc (environ_init): Drop setting allow_ntsec here.
222         * grp.cc (initgroups32): Drop usage of label "out".
223         * security.cc (allow_ntsec): Set to true by default.
224         * syscalls.cc (seteuid32): Remove label success_9x.
225         * wincap.cc: Remove has_security throughout.
226         * wincap.h: Ditto.
227
228 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
229
230         * fhandler.h (class fhandler_pipe): Remove members writepipe_exists,
231         orig_pid and id.  Make hit_eof inline.
232         * fhandler_fifo.cc (fhandler_fifo::open): Drop handling of
233         writepipe_exists, orig_pid and id.
234         * pipe.cc: Ditto throughout.
235         (pipecount): Remove.
236         (pipeid_fmt): Remove.
237         (fhandler_pipe::hit_eof): Simplify.  Move to fhandler.h.
238         (fhandler_pipe::dup): Drop leave label.
239         (fhandler_pipe::create): Drop has_unreliable_pipes case.
240         * wincap.cc: Remove has_unreliable_pipes throughout.
241         * wincap.h: Ditto.
242
243 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
244
245         * devices.in: Change native device name to native NT device name for
246         /dev/null, /dev/comX and /dev/ttySx.
247         * devices.cc: Regenerate.
248         * fhandler.cc (fhandler_base::open_9x): Remove.
249         (fhandler_base::open): Don't test for DOS device name, don't call
250         open_9x.
251         (fhandler_dev_null::open): Remove.
252         * fhandler.h (class fhandler_base): Drop open_9x declaration.
253         (class fhandler_dev_null): Drop open declaration.
254
255 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
256
257         * fhandler_console.cc (fhandler_console::need_invisible): Drop
258         pty_needs_alloc_console check.
259         * spawn.cc (spawn_guts): Ditto.
260         (av::fixup): Remove setting iscui.
261         * syscalls.cc (rename): Drop has_move_file_ex checks.  Remove 9x
262         specific code.
263         * wincap.cc: Remove has_move_file_ex and pty_needs_alloc_console
264         throughout.
265         * wincap.h: Ditto.
266
267 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
268
269         * exceptions.cc (dummy_ctrl_c_handler): Remove.
270         (init_console_handler): Drop has_null_console_handler_routine checks.
271         * fhandler_raw.cc (fhandler_dev_raw::open): Drop has_raw_devices check.
272         * fhandler_serial.cc (fhandler_serial::open): Drop
273         .supports_reading_modem_output_lines check.
274         * miscfuncs.cc (low_priority_sleep): Drop has_switch_to_thread check.
275         * shared.cc (open_shared): Drop needs_memory_protection checks.
276         * spawn.cc (spawn_guts): Drop start_proc_suspended check.
277         * uname.cc (uname): Drop has_valid_processorlevel check.
278         * wincap.cc: Remove has_raw_devices, has_valid_processorlevel,
279         supports_reading_modem_output_lines, needs_memory_protection,
280         has_switch_to_thread, start_proc_suspended and
281         has_null_console_handler_routine throughout.
282         * wincap.h: Ditto.
283
284 2007-02-23  Corinna Vinschen  <corinna@vinschen.de>
285
286         * fhandler.cc (fhandler_base::lseek): Drop 9x considerations.
287         * fhandler_disk_file.cc (fhandler_disk_file::lock): Ditto.
288         * wincap.cc: Remove lock_file_highword and has_64bit_file_access
289         throughout.
290         * wincap.h: Ditto.
291
292 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
293
294         * cygheap.h (struct cwdstuff): Remove sync member and keep_in_sync
295         accessors.
296         * external.cc (cygwin_internal): Drop call to cygheap->cwd.keep_in_sync.
297         * fhandler_disk_file.cc (fhandler_disk_file::link): Always presume
298         ability to create hard links.
299         * path.cc (cwdstuff::init): Drop 9x considerations.
300         (cwdstuff::keep_in_sync): Remove.
301         (cwdstuff::set): Take NT for granted.
302         * pinfo.h (cygwin_pid): Just return pid.
303         * wincap.cc: Remove has_hard_links, can_open_directories,
304         has_negative_pids, has_named_pipes, has_try_enter_critical_section,
305         cant_debug_dll_entry and detect_win16_exe throughout.
306         * wincap.h: Ditto.
307
308 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
309
310         * fhandler_console.cc (fhandler_console::read): Drop 9x specific
311         handling of AltGr key.
312         * mmap.cc: Take NT for granted throughout.
313         * wincap.cc: Remove map_view_of_file_ex_sucks, altgr_is_ctrl_alt,
314         has_working_copy_on_write, share_mmaps_only_by_name,
315         virtual_protect_works_on_shared_pages, has_mmap_alignment_bug and
316         has_working_virtual_lock throughout.
317         * wincap.h: Ditto.
318
319 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
320
321         * fhandler.cc (fhandler_base::set_no_inheritance): Always use
322         SetHandleInformation.
323         * fhandler_disk_file.cc (fhandler_disk_file::lock): Always use
324         UnlockFileEx/LockFileEx functions.
325         * net.cc (fdsock): Don't bother to duplicate socket for inheritance.
326         * sysconf.cc (get_nproc_values): Take NT for granted.
327         (get_avphys): Ditto.
328         * syslog.cc (WIN95_EVENT_LOG_PATH): Remove define.
329         (get_win95_event_log_path): Remove.
330         (vsyslog): Fix formatting.  Take NT for granted.
331         * wincap.cc: Remove has_lock_file_ex, has_signal_object_and_wait,
332         has_eventlog, has_set_handle_information,
333         has_set_handle_information_on_console_handles and supports_smp
334         throughout.
335         * wincap.h: Ditto.
336
337 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
338
339         * dir.cc (rmdir): Move existance check in front of
340         has_dot_last_component check.  Simplify setting errno in latter case.
341
342 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
343
344         * fhandler.cc (fhandler_base::write): Remove wincap.has_lseek_bug case.
345         Simplify seek beyond EOF case.
346         * times.cc (times): Remove wincap.has_get_process_times case.
347         * wincap.cc: Remove has_delete_on_close, has_page_guard,
348         has_get_process_times and has_lseek_bug throughout.
349         * wincap.h: Ditto.
350
351 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
352
353         Throughout remove all usage of wincap.access_denied_on_delete.
354         * dir.cc (rmdir): Add existance check to be errno-compatible with Linux.
355         * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Drop test for
356         non-existent dir on 9x share.
357         * syscalls.cc (unlink): Add comment.
358         * wincap.cc: Remove access_denied_on_delete flag throughout.
359         * wincap.h: Ditto.
360
361 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
362
363         * fhandler_disk_file.cc (fhandler_disk_file::closedir): Fix bug
364         introduced by switching to NtClose.
365
366 2007-02-22  Christopher Faylor  <me@cgf.cx>
367
368         * dcrt0.cc (child_info_fork::alloc_stack_hard_way): Change sense of
369         guard test.  Increase size of stack reserved and increase size before
370         the current stack pointer.  Use pointers when doing arithmetic.
371         (dll_crt0_1): Initialize exception handler when we notice we're the
372         child of a fork from non-main thread.
373         * fork.cc (frok::parent): Make argument volatile.
374         (frok::child): Ditto.
375         (lock_signals): New class.
376         (lock_pthread): Ditto.
377         (hold_everhthing): Ditto.
378         (frok::parent): Move atforkprepare and atforkparent to lock_pthread
379         class.
380         (fork): Make ischild boolean.  Use hold_everything variable within
381         limited scope to set various mutexes in such a way as to avoid
382         deadlocks.
383         * thread.h (pthread_mutex::tid): New variable, active when debugging
384         for tracking thread id of owner.
385         (pthread_mutex::set_owner): Set tid when debugging.
386         * thread.cc (pthread_mutex::pthread_mutex): Clear tid.
387         (pthread_mutex::_unlock): Ditto when unlocking.
388         (pthread_mutex::fixup_after_fork): Set tid to special value after
389         forking since owner is unknown.
390
391 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
392
393         Throughout replace all usage of wincap.shared with the constant
394         FILE_SHARE_VALID_FLAGS.
395         * fhandler.cc (fhandler_base::open_9x): Drop local variable shared.
396         * wincap.cc: Remove shared member throughout.
397         * wincap.h: Ditto.
398
399 2007-02-22  Corinna Vinschen  <corinna@vinschen.de>
400
401         * Makefile.in (DLL_IMPORTS): Add libntdll.a.
402         * autoload.cc: Remove all symbols from advapi32.dll, kernel32.dll and
403         ntdll.dll available on all platforms since NT4.
404         
405         Throughout remove all usage of wincap.is_winnt.
406         * dcrt0.cc (dll_crt0_0): Remove call to mmap_init.
407         * fhandler.h (class fhandler_base): Remove has_changed flag.
408         (fhandler_disk_file::touch_ctime): Remove declaration.
409         (fhandler_disk_file::readdir_9x): Ditto.
410         (fhandler_disk_file::touch_ctime): Remove.
411         (fhandler_disk_file::readdir_9x): Remove.
412         (fhandler_disk_file::closedir): Call NtClose instead of CloseHandle.
413         * mmap.cc: Throughout call CreateMapping and MapView directly.
414         (VirtualProt9x): Remove.
415         (VirtualProtNT): Remove.
416         (VirtualProtEx9x): Remove.
417         (VirtualProtExNT): Remove.
418         (VirtualProtect): Remove define.
419         (VirtualProtectEx): Remove define.
420         (CreateMapping9x): Remove.
421         (CreateMappingNT): Rename to CreateMapping.
422         (MapView9x): Remove.
423         (MapViewNT): Rename to MapView.
424         (struct mmap_func_t): Remove definition.
425         (mmap_funcs_9x): Remove.
426         (mmap_funcs_nt): Remove.
427         (mmap_func): Remove.
428         (mmap_init): Remove.
429         * net.cc (getdomainname): Drop comment. Use NT4 registry key only.
430         (get_95_ifconf): Remove.
431         * pinfo.cc (winpids::enumNT): Rename to winpids::enum_processes.
432         (winpids::enum9x): Remove.
433         (winpids::set): Just call enum_processes directly.
434         (winpids::enum_init): Ditto.
435         * pinfo.h (class winpids): Drop enum_processes pointer.  Rename
436         enumNT to enum_processes.  Drop enum9x declaration.  Drop initialization
437         of enum_processes throughout.
438         * registry.cc (get_registry_hive_path): Just create NT key.
439         (load_registry_hive): Only load NT specific file.
440         * syscalls.cc (unlink_9x): Remove.
441         (unlink): Just call unlink_nt.
442         * wincap.cc: Remove is_winnt flag throughout.
443         * wincap.h: Ditto.
444         * winsup.h: Remove mmap_init declaration.
445
446 2007-02-21  Corinna Vinschen  <corinna@vinschen.de>
447
448         * wincap.cc (wincap_unknown): Change settings for unknown to reflect
449         the capabilities of NT4.
450         (wincap_95): Remove.
451         (wincap_95osr2): Remove.
452         (wincap_98): Remove.
453         (wincap_98se): Remove.
454         (wincap_me): Remove.
455         (wincap_nt3): Remove.
456         (wincapc::init): Temporarily bail out on any 9x system.
457
458 2007-02-20  Corinna Vinschen  <corinna@vinschen.de>
459
460         * cygwin.din (sem_unlink): Export.
461         * posix_ipc.cc: Include thread.h and semaphore.h.  Remove TODO
462         comment.
463         (ipc_names): Add max_len member.  Set to maximum length of the path
464         before tacking on the prefix path.  Set prefix path for named semaphors
465         to /dev/shm, as on Linux.
466         (enum ipc_type_t): Change sem to semaphore to avoid name conflicts.
467         (check_path): Detect empty paths.  Use ipc_names's max_len member.
468         Use __small_sprintf to create full object path name.  Special case
469         semaphores.
470         (ipc_cond_init): Drop superfluous strcpy.
471         (class ipc_flock): New class to simplify file locking in subsequent
472         code.
473         (struct mq_hdr): Raise size of mqh_uname to allow adding a unique
474         LUID to the name.
475         (mq_open): Fix formatting.  Create unique synchronization object names
476         using AllocateLocallyUniqueId.
477         (struct sem_finfo): New structure defining named semaphore file content.
478         (sem_open): Move here.  Rework implementation to allow kernel
479         persistent implementation of POSIX named semaphores.
480         (_sem_close): Implement sem_close.
481         (sem_close): Move here.  Just call _sem_close with do_close parameter
482         set to true.
483         (sem_unlink): New function.
484         * pthread.cc (mangle_sem_name): Remove.
485         (sem_open): Move to posix_ipc.cc.
486         (sem_close): Ditto.
487         * syscalls.cc (close_all_files): Call semaphore::terminate here.
488         * thread.cc: Fix formatting.  Rearrange semaphore functions so that
489         they are close together.
490         (semaphore::semaphore): Rework to play nicely with new named semaphore
491         implementation.
492         (semaphore::_terminate): Call _sem_close if semaphore is a named
493         semaphore.
494         (semaphore::destroy): Don't destroy named semaphores.  Return EINVAL
495         instead.
496         (semaphore::close): Only destroy named semaphores.  Return EINVAL
497         otherwise.
498         (semaphore::open): Rework to play nicely with new named semaphore
499         implementation.  Loop through existing semaphores to be able to
500         return same sem_t pointer as a former call on the same named semaphore.
501         (semaphore::getinternal): New function called from _sem_close.
502         * thread.h (class List): Make mx and head public.
503         (class semaphore): Fix formatting.  Align method declarations with
504         implementation in thread.cc.  Add members used for named semaphores.
505         (semaphore::terminate): New static method.
506         * include/semaphore.h: Redefine SEM_FAILED.  Fix formatting.
507         (sem_unlink): Add declaration.
508         * include/cygwin/version.h: Bump API minor number.
509
510 2007-02-20  Christopher Faylor  <me@cgf.cx>
511
512         * exceptions.cc (_cygtls::signal_exit): Only call myself.exit when when
513         exit_state indicates that we've visited do_exit.
514         * sync.h (lock_process::lock_process): Use renamed exit_state -
515         ES_PROCESS_LOCKED.
516         * winsup.h: Rename ES_MUTO_SET to ES_PROCESS_LOCKED.
517
518 2007-02-20  Corinna Vinschen  <corinna@vinschen.de>
519
520         * fhandler_socket.cc (fhandler_socket::bind): Remove printing wrong
521         errno in debug output.
522
523 2007-02-19  Christopher Faylor  <me@cgf.cx>
524
525         Remove extraneous whitespace.
526         * pinfo.cc (commune_process): Use default argument to lock_process.
527         * sigproc.cc: Update copyright.
528         * select.cc: Ditto.
529
530 2007-02-15  Corinna Vinschen  <corinna@vinschen.de>
531
532         * posix_ipc.cc (mq_open): Avoid compiler warning.  Initialize mqhdr
533         before using it in file exists case.
534         * include/mqueue.h (mqd_t): Make non-pointer type.
535
536 2007-02-15  Corinna Vinschen  <corinna@vinschen.de>
537
538         * posix_ipc.cc (ipc_mutex_init): Create global object name.
539         (ipc_cond_init): Ditto.
540         (struct mq_hdr): Add mqh_uname member to store synchronization object
541         name.
542         (mq_open): Create unique synchronization object name and store in
543         mq_hdr->mqh_uname.  Use this name in calls to ipc_mutex_init and
544         ipc_cond_init.
545
546 2007-02-14  Corinna Vinschen  <corinna@vinschen.de>
547
548         * Makefile.in (DLL_OFILES): Add posix_ipc.o.
549         * cygwin.din (mq_close): Export.
550         (mq_getattr): Export.
551         (mq_notify): Export.
552         (mq_open): Export.
553         (mq_receive): Export.
554         (mq_send): Export.
555         (mq_setattr): Export.
556         (mq_timedreceive): Export.
557         (mq_timedsend): Export.
558         (mq_unlink): Export.
559         * posix_ipc.cc: New file implementing the above functions.  Move
560         shm_open and shm_unlink from syscalls.cc here.
561         * sysconf.cc (sca): Set value of _SC_MQ_OPEN_MAX to MQ_OPEN_MAX,
562         _SC_MQ_PRIO_MAX to MQ_PRIO_MAX, _SC_MESSAGE_PASSING to
563         _POSIX_MESSAGE_PASSING.
564         * include/limits.h (MQ_OPEN_MAX): Define.
565         (MQ_PRIO_MAX): Define.
566         * include/mqueue.h: New file.
567         * include/cygwin/version.h: Bump API minor number.
568
569 2007-02-13  Corinna Vinschen  <corinna@vinschen.de>
570
571         * include/cygwin/stdlib.h (valloc): Declare.
572         (memalign): Declare.
573
574 2007-02-09  Pierre A. Humblet  <Pierre.Humblet@ieee.org>
575
576         * libc/minires-os-if.c (write_record): Handle DNS_TYPE_SRV and
577         some obsolete types.
578
579 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
580
581         * syscalls.cc (check_shm): New static function to do path checking
582         common to shm_open and shm_unlink.  Check for /dev/shm existance.
583         (shm_open): Call check_shm.
584         (shm_unlink): Ditto.
585
586 2007-02-08  Corinna Vinschen  <corinna@vinschen.de>
587
588         * cygwin.din (shm_open): Export.
589         (shm_unlink): Export.
590         * syscalls.cc (shm_open): New function.
591         (shm_unlink): New function.
592         * sysconf.cc (sca): Set value of _SC_SHARED_MEMORY_OBJECTS to
593         _POSIX_SHARED_MEMORY_OBJECTS.
594         * include/cygwin/version.h: Bump API minor number.
595         * include/sys/mman.h (shm_open): Add prototype.
596         (shm_unlink): Ditto.
597
598 2007-02-08  Christopher Faylor <me@cgf.cx>
599             Corinna Vinschen  <corinna@vinschen.de>
600
601         * cygmalloc.h (__set_ENOMEM): Declare.
602         (MALLOC_FAILURE_ACTION): Call __set_ENOMEM.
603         * malloc_wrapper.cc (malloc) Remove setting errno here.
604         (realloc): Ditto.
605         (calloc): Ditto.
606         (memalign): Ditto.
607         (valloc): Ditto.
608         (posix_memalign): Save and restore errno.
609
610 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
611
612         * cygmalloc.h (MALLOC_FAILURE_ACTION): Move to correct #if branch.
613
614 2007-02-07  Corinna Vinschen  <corinna@vinschen.de>
615
616         * cygmalloc.h (MALLOC_FAILURE_ACTION): Define empty.
617         * cygwin.din (posix_madvise): Export.
618         (posix_memalign): Export.
619         * fhandler.cc (fhandler_base::fpathconf): Return useful values in
620         _PC_VDISABLE, _PC_SYNC_IO and _PC_SYMLINK_MAX cases.
621         * malloc_wrapper.cc (malloc): Set errno here since it's not set in
622         dlmalloc.c anymore.
623         (realloc): Ditto.
624         (calloc): Ditto.
625         (memalign): Ditto.
626         (valloc): Ditto.
627         (posix_memalign): New function.
628         * mmap.cc (posix_madvise): New function.
629         * sysconf.cc (get_open_max): New function.
630         (get_page_size): Ditto.
631         (get_nproc_values): Ditto.
632         (get_avphys): Ditto.
633         (sc_type): New type.
634         (sca): New array to map _SC_xxx options to sysconf return values.
635         (sysconf): Reimplement using sca array.
636         * include/limits.h: Add all missing values as defined by SUSv3.
637         * include/pthread.h (PTHREAD_DESTRUCTOR_ITERATIONS): Move definition
638         to sys/limits.h.
639         (PTHREAD_KEYS_MAX): Ditto.
640         * include/semaphore.h (SEM_VALUE_MAX): Ditto.
641         * include/cygwin/stdlib.h (posix_memalign): Declare.
642         * include/cygwin/version.h: Bump API minor number.
643         * include/sys/mman.h: Add posix_madvise flags.
644         (posix_madvise): Declare.
645         * include/sys/termios.h (_POSIX_VDISABLE): Move definition to
646         sys/limits.h.
647
648 2007-02-05  Corinna Vinschen  <corinna@vinschen.de>
649
650         * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support for
651         baud rates up to 3000000 baud.  Add missing 128K and 256K cases.
652         (fhandler_serial::tcgetattr): Ditto.
653         * include/sys/termios.h: Add baud rate definitions from B460800 up to
654         B3000000.
655
656 2007-02-02  Corinna Vinschen  <corinna@vinschen.de>
657
658         * syscalls.cc (unlink_nt): Add missing assignment in case NtClose fails.
659
660 2007-02-01  Corinna Vinschen  <corinna@vinschen.de>
661
662         * net.cc (ga_dup): New function, taken from ga_clone with v4-in-v6
663         mapping addition.
664         (ga_clone): Just call ga_dup from here.
665         (ga_duplist): New function to duplicate list of struct addrinfo.
666         (ga_echeck): Don't check ai_flags, it already happened in
667         cygwin_getaddrinfo.
668         (cygwin_freeaddrinfo): Always call ipv4_freeaddrinfo.
669         (cygwin_getaddrinfo): Use new wincap.supports_all_posix_ai_flags
670         flag rather than wincap.has_gaa_on_link_prefix.  Always duplicate
671         WinSock's addrinfo list to a self-allocated list.  Handle AI_V4MAPPED
672         for pre-Vista platforms supporting getaddrinfo.
673         * wincap.h (wincapc::supports_all_posix_ai_flags): New element.
674         * wincap.cc: Implement above element throughout.
675         * include/netdb.h: Note how AI_ADDRCONFIG is not supported pre-Vista.
676         Remove superfluous comment.
677
678 2007-02-01  Corinna Vinschen  <corinna@vinschen.de>
679
680         * include/cygwin/socket.h: Add IPv6 socket options.
681
682 2007-01-31  Corinna Vinschen  <corinna@vinschen.de>
683
684         * net.cc (cygwin_getaddrinfo): Fix thinko in AI_ADDRCONFIG handling.
685
686 2007-01-31  Corinna Vinschen  <corinna@vinschen.de>
687
688         * net.cc (cygwin_getaddrinfo): Check ai_flags for valid values.
689         Handle AI_NUMERICSERV.  Handle AI_ADDRCONFIG behaviour on Vista.
690         * include/netdb.h (AI_NUMERICSERV): Add missing flag.
691
692 2007-01-30  Corinna Vinschen  <corinna@vinschen.de>
693
694         * fhandler_disk_file.cc (fhandler_disk_file::closedir): Add dir name
695         to debug output.
696         * syscalls.cc (try_to_bin): Enable code to move file to user specific
697         recycler dir to eliminate Vista problem.
698         (unlink_nt): Add comment that rename after opening for delete on close
699         only fails on XP.
700
701 2007-01-30  Corinna Vinschen  <corinna@vinschen.de>
702
703         * sigproc.cc (child_info::child_info): Set msv_count to non-zero
704         value only on systems requiring it.
705
706 2007-01-28  Corinna Vinschen  <corinna@vinschen.de>
707
708         * include/ftw.h: Include sys/cdefs.h.
709
710 2007-01-26  Corinna Vinschen  <corinna@vinschen.de>
711
712         * fhandler_disk_file.cc (fhandler_disk_file::rmdir): Implement rmdir
713         on NT by calling unlink_nt.  Check for directory here.
714         * syscalls.cc (try_to_bin): Fix buggy debug_printf statement.
715         (unlink_nt): Make non-static.  Don't use delete-on-close semantics on
716         directories.  Explain why.
717
718 2007-01-24  Corinna Vinschen  <corinna@vinschen.de>
719
720         * net.cc (if_nametoindex): This time, really free IP_ADAPTER_ADDRESSES
721         memory.
722         (if_indextoname): Ditto.
723
724 2007-01-24  Corinna Vinschen  <corinna@vinschen.de>
725
726         * security.h (pop_thread_privilege): Revert to previous state, not
727         to token used for impersonation.
728
729 2007-01-24  Corinna Vinschen  <corinna@vinschen.de>
730
731         * cygheap.h (cygheap_user::deimpersonate): Always RevertToSelf.
732
733 2007-01-23  Corinna Vinschen  <corinna@vinschen.de>
734
735         * net.cc (gai_errmap): Add EAI_OVERFLOW entry.  Fix formatting.
736         (cygwin_gai_strerror): Drop using EAI_MAX.
737         (w32_to_gai_err): Ditto.
738         * include/netdb.h: Define EAI_OVERFLOW. Remove EAI_MAX.
739
740 2007-01-23  Corinna Vinschen  <corinna@vinschen.de>
741
742         * include/netdb.h: Add AI_xxx flags available since Vista.
743
744 2007-01-23  Corinna Vinschen  <corinna@vinschen.de>
745
746         * net.cc (if_nametoindex): Free IP_ADAPTER_ADDRESSES memory.
747         (if_indextoname): Ditto.
748         (if_nameindex): Ditto.  Remove duplicate indexed entries in result.
749
750 2007-01-21  Corinna Vinschen  <corinna@vinschen.de>
751
752         * autoload.cc (WSAIoctl): Define.
753         (SendARP): Define.
754         * cygwin.din: Export if_freenameindex, if_indextoname, if_nameindex and
755         if_nametoindex.
756         * fhandler_procnet.cc: Drop including wchar.h.  Drop definitions of
757         GAA_FLAG_INCLUDE_ALL_INTERFACES, IP_ADAPTER_UNICAST_ADDRESS_VISTA.
758         (fhandler_procnet::exists): Check for has_gaa_prefixes.  Call
759         get_adapters_addresses here.
760         (fhandler_procnet::readdir): Ditto.
761         (prefix): Move to net.cc.
762         (fhandler_procnet::fill_filebuf): Call get_adapters_addresses here.
763         Simplify allocation.  Use AdapterName rather than FriendlyName as
764         interface name.  Use IfIndex if available, Ipv6IfIndex otherwise.
765         (in6_are_prefix_equal): Move to net.cc.
766         * fhandler_socket.cc: Define old SIOCGxxx values.
767         (CONV_OLD_TO_NEW_SIO): Convert old SIOCGxxx value to new one.
768         (struct __old_ifreq): Define old struct ifreq.
769         (fhandler_socket::ioctl): Handle old SIOCGxxx values.  Handle new
770         SIOCGIFFRNDLYNAM command.  Simplify copying ifreq data to user space.
771         Call get_ifconf with additional SOCKET parameter.
772         * net.cc (IP_ADAPTER_UNICAST_ADDRESS_LH): Define.
773         (IP_ADAPTER_ADDRESSES_LH): Define.
774         (SIO_GET_INTERFACE_LIST): Define.
775         (sockaddr_in6_old): Define.
776         (sockaddr_gen): Define.
777         (INTERFACE_INFO): Define.
778         (IN_LOOPBACK): Define.
779         (in_are_prefix_equal): New static function.
780         (ip_addr_prefix): New function, replaces prefix function, add AF_INET
781         handling.
782         (GAA_FLAG_INCLUDE_ALL_INTERFACES): Define.
783         (get_adapters_addresses): New function.
784         (WS_IFF_xxx): Define Winsock interface flag values.
785         (convert_ifr_flags): New function to convert Winsock interface flag
786         values to Cygwin interface flag values.
787         (get_xp_ifconf): New get_ifconf implementation for XP SP1 and above.
788         (get_2k_ifconf): Fix interface index.  Fix formatting.
789         (get_nt_ifconf): Fix formatting.
790         (get_95_ifconf): Ditto.
791         (get_ifconf): Take additional SOCKET parameter.  Call get_xp_ifconf
792         on XP SP1 and above.
793         (if_nametoindex): New function.
794         (if_indextoname): New function.
795         (if_nameindex): New function.
796         (if_freenameindex): New function.
797         (in6_are_prefix_equal): Moved here from fhandler_procnet.cc.
798         * wincap.cc (wincap_xp): Define has_gaa_prefixes as true by default.
799         (wincapc::init): Assume has_osversioninfoex by default.  Call
800         GetVersionEx with OSVERSIONINFOEX first.  Call with OSVERSIONINFO only
801         if that fails.  Simplify NT4 case and try to avoid strcmp.  Check XP
802         Service Pack using version.wServicePackMajor to avoid strcmp.
803         * include/asm/socket.h (SIOCGIFFRNDLYNAM): Define.
804         * include/cygwin/if.h: Fix formatting.
805         (IFF_POINTTOPOINT): Define.
806         (IFF_NOARP): Define.
807         (IFF_LOWER_UP): Define.
808         (IFF_DORMANT): Define.
809         (struct if_nameindex): Define.
810         (IFRF_FRIENDLYNAMESIZ): Define.
811         (struct ifreq_frndlyname): Define.
812         (IFNAMSIZ): Redefine as 44.
813         (IF_NAMESIZE): Define.
814         (struct ifreq): Redefine ifru_flags as int.  Define ifru_data.  Pad size
815         to sizeof sockaddr_in6 for further extensions.
816         (ifr_data): Define.
817         (ifr_frndlyname): Define.
818         (if_nametoindex): Declare.
819         (if_indextoname): Declare.
820         (if_nameindex): Declare.
821         (if_freenameindex): Declare.
822         * include/cygwin/version.h: Bump API minor number.
823         (CYGWIN_VERSION_CHECK_FOR_OLD_IFREQ): Define check for old vs. new
824         ifreq structure.
825
826 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
827
828         * spawn.cc (spawn_guts): Don't set cwd for non-Cygwin child processes
829         on NT to allow starting them in virtual directories.
830
831 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
832
833         * mmap.cc (list::hash): Fix type to __ino64_t.
834         (list::get_hash): Ditto.
835         (list::set): Add struct stat parameter.  Use that instead of calling
836         fstat.
837         (map::get_list_by_fd): Ditto.
838         (map::add_list): Ditto.
839         (mmap_is_attached_or_noreserve): Call get_list_by_fd appropriately.
840         (mmap_worker): Add pameters for map list and file stat information.
841         Propagate to called functions.
842         (mmap64): Use fstat on files early.  Replace call to GetFileSize.
843         Call get_list_by_fd and mmap_worker appropriately.
844
845 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
846
847         * fhandler_procnet.cc: Drop declaration of htonl and ntohs.  Include
848         asm/byteorder.h instead.
849
850 2007-01-18  Corinna Vinschen  <corinna@vinschen.de>
851
852         * include/cygwin/in6.h: Drop inclusion of asm/byteorder.h.
853         * fhandler_procnet.cc: Declare htonl and ntohs here.
854
855 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
856
857         * Makefile.in (DLL_OFILES): Add fhandler_procnet.o.
858         * autoload.cc (GetAdaptersAddresses): Define.
859         * devices.h (FH_PROCNET): Define new device.
860         * devices.in (dev_procnet_storage): Add "/proc/net" entry.
861         * devices.cc: Regenerate.
862         * dir.cc (readdir_worker): Use isproc_dev macro.
863         * dtable.cc (build_fh_pc): Add FH_PROCNET.
864         * fhandler.h (class fhandler_procnet): New class.
865         * fhandler_proc.cc: Add "net" subdirectory handling.
866         * fhandler_procnet.cc: New file handling "/proc/net" directory.
867         * path.cc (isvirtual_dev): Move to path.h.
868         * path.h (isproc_dev): New macro to identify /proc files by device.
869         (isvirtual_dev): Moved here.  Define using isproc_dev.
870         * syscalls.cc (unlink): Use isproc_dev macro.
871         * wincap.h (wincapc::has_gaa_prefixes): New element.
872         (wincapc::has_gaa_on_link_prefix): New element.
873         * wincap.cc: Implement above elements throughout.
874         (wincapc::init): Check XP for service pack and set has_gaa_prefixes
875         appropriately.
876         * include/cygwin/in6.h: Include asm/byteorder.h.
877
878 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
879
880         * include/asm/socket.h (SIOGIFINDEX): Define.
881
882 2007-01-17  Corinna Vinschen  <corinna@vinschen.de>
883
884         * mmap.cc (MapView9x): Note possible uselessness of retrying.
885         (MapViewNT): Ditto.
886         (mmap64): Fix pre-reservation to work for non NULL, non MAP_FIXED.
887
888 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
889
890         * autoload.cc (RtlAnsiStringToUnicodeString): Define.
891         (RtlOemStringToUnicodeString): Define.
892         * ntdll.h (struct _RTL_USER_PROCESS_PARAMETERS): Define.
893         (struct _PEB): Redefine with a bit of content.
894         (RtlAnsiStringToUnicodeString): Declare.
895         (RtlOemStringToUnicodeString): Declare.
896         * path.cc: Include ntdll.h.
897         (_upp): New global variable pointing to user process parameter block.
898         (get_user_proc_parms): New static function to retrieve user process
899         parameter block.
900         (close_user_proc_parms_cwd_handle): New function to close handle to
901         current working directory in user process parameter block.
902         (cwdstuff::init): Drop redundant declaration of dynamically_loaded.
903         Set current dir only on 9x.  Call close_user_proc_parms_cwd_handle
904         on NT instead.
905         (cwdstuff::keep_in_sync): Only on 9x.
906         (cwdstuff::set): Keep behaviour on 9x.  On NT write cwd path into user
907         process parameter block and set cwd handle to NULL.  Fix comments to
908         reflect new behaviour.
909
910 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
911
912         * fhandler_socket.cc (fhandler_socket::ioctl): Handle SIOCGIFINDEX.
913         * net.cc (get_2k_ifconf): Ditto.
914         (get_nt_ifconf): Fake SIOCGIFINDEX.
915         (get_95_ifconf): Ditto.
916         (get_ifconf): Handle SIOCGIFINDEX.  Fake it for loopback on systems
917         not supporting IP Helper Lib.
918         * include/asm/socket.h (SIOCGIFINDEX): Define.
919         * include/cygwin/if.h (struct ifreq): Add member for interface index.
920         (ifr_ifindex): Define.
921
922 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
923
924         * include/cygwin/in6.h (struct ipv6_mreq): Change type of interface
925         member to uint32_t.
926         (struct in6_pktinfo): Ditto.
927
928 2007-01-16  Corinna Vinschen  <corinna@vinschen.de>
929
930         * include/cygwin/in.h (struct ip_mreq_source): Define.
931         (struct ip_msfilter): Define.
932         (IP_MSFILTER_SIZE): Define.
933         (struct in_pktinfo): Define.
934         (struct group_req): Define.
935         (struct group_source_req): Define.
936         (struct group_filter): Define.
937         (GROUP_FILTER_SIZE): Define.
938         (INADDR_ALLRTRS_GROUP): Define.
939         * include/cygwin/socket.h: Define protocol agnostic multicast options.
940
941 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
942
943         * CYGWIN_LICENSE: Fix web pages and contact information.
944
945 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
946
947         * ntdll.h: Adjust status definitions.
948
949 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
950
951         * cygheap.cc (cygheap_init): Add TODO comment.
952
953 2007-01-15  Corinna Vinschen  <corinna@vinschen.de>
954
955         * ntdll.h (STATUS_SHARING_VIOLATION): Define.
956
957 2007-01-13  Corinna Vinschen  <corinna@vinschen.de>
958
959         * syscalls.cc (unlink_nt): Don't move files to recycle bin which are
960         not in use.
961
962 2007-01-13  Christopher Faylor  <me@cgf.cx>
963
964         * glob.cc: Update copyright notice with latest from FreeBSD.
965         (glob0): Use correct type for c variable to propagate previously
966         detected protection.
967
968 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
969
970         * cygheap.cc (_csbrk): Fix off-by-one error.
971         * cygwin.sc: Give .cygheap a minimum size of 512K.
972
973 2007-01-12  Christopher Faylor  <me@cgf.cx>
974
975         * external.cc (sync_winenv): Use cur_environ () rather than
976         __cygwin_environ.
977
978 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
979
980         * fork.cc (child_copy): Add missing Windows PID in debug output.
981
982 2007-01-12  Corinna Vinschen  <corinna@vinschen.de>
983
984         * syscalls.cc: Update copyright.
985
986 2007-01-10  Corinna Vinschen  <corinna@vinschen.de>
987
988         * mmap.cc (mmap64): Pre-Reserve space for the whole mapping to get a
989         useful, valid address before the actual mappings take place.
990         Fix typo in comment.
991
992 2007-01-10  Corinna Vinschen  <corinna@vinschen.de>
993
994         * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu).
995
996 2007-01-09  Corinna Vinschen  <corinna@vinschen.de>
997
998         * syscalls.cc (getpagesize): Change condition for clarity.
999         (getsystempagesize): Ditto.
1000
1001 2007-01-09  Corinna Vinschen  <corinna@vinschen.de>
1002
1003         * mmap.cc: Do bookkeeping in 4K pages, rather than in 64K chunks.
1004
1005 2007-01-07  Corinna Vinschen  <corinna@vinschen.de>
1006
1007         * security.h (setacl): Add parameter for writability flag.
1008         * sec_acl.cc (setacl): Ditto.  Set to true if any ACE with write
1009         permissions is created.
1010         * fhandler_disk_file.cc (fhandler_disk_file::facl): Reset
1011         FILE_ATTRIBUTE_READONLY if ACL contains an ACE with write permissions.
1012
1013 2007-01-05  Corinna Vinschen  <corinna@vinschen.de>
1014
1015         * include/strings.h: Don't include string.h.  Only declare functions
1016         according to SUSv3.
1017
1018 2007-01-04  Corinna Vinschen  <corinna@vinschen.de>
1019
1020         (get_ifconf): Set MTU for loopback to more correct value.
1021
1022 2007-01-04  Corinna Vinschen  <corinna@vinschen.de>
1023
1024         * fhandler_socket.cc (fhandler_socket::ioctl): Don't fake results
1025         for SIOCGIFFLAGS here.  Call get_ifconf instead.
1026         * net.cc (get_2k_ifconf): Clean up code to generate interface name.
1027         Handle SIOCGIFFLAGS here.
1028         (get_nt_ifconf): Fake SIOCGIFFLAGS here.
1029         (get_95_ifconf): Ditto.
1030         (get_ifconf): Don't fake loopback on systems with IP Helper Lib.
1031         Set MTU for loopback to a more "modern" value.
1032
1033 2007-01-04  Brian Ford  <Brian.Ford@FlightSafety.com>
1034             Corinna Vinschen  <corinna@vinschen.de>
1035
1036         * fhandler.h (PREFERRED_IO_BLKSIZE): Define as 64K.
1037         * fhandler.cc (fhandler_base::fstat): Set st_blksize to
1038         PREFERRED_IO_BLKSIZE.
1039         * fhandler_disk_file.cc (fhandler_base::fstat_helper): Ditto.
1040         * fhandler_mailslot.cc (fhandler_mailslot::fstat): Ditto.
1041         * fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto.
1042
1043 2007-01-01  Christopher Faylor  <me@cgf.cx>
1044
1045         * spawn.cc (spawn_guts): Don't expect synchronization from a non-cygwin
1046         _P_NOWAIT process.