1 2011-02-07 Corinna Vinschen <corinna@vinschen.de>
3 * fhandler_console.cc (fhandler_console::write_normal): Remove
4 erroneous premature return after collecting truncated multibyte
5 sequence in trunc_buf. Rather fall through to printing routine.
6 Fix return value to take trunc_buf content into account. Improve
9 2011-02-05 Christopher Faylor <me+cygwin@cgf.cx>
11 * autoload.cc (wsock_init): Properly define WSAStartup function pointer
12 to avoid stack damage.
14 2011-02-02 Corinna Vinschen <corinna@vinschen.de>
16 * libc/bsdlib.cc: Include err.h.
18 2011-02-02 Eric Blake <eblake@redhat.com>
20 * include/err.h: Fix loss of semicolons in previous patch.
22 2011-02-02 Corinna Vinschen <corinna@vinschen.de>
24 * include/err.h (err): Add noreturn attribute.
29 2011-02-02 Corinna Vinschen <corinna@vinschen.de>
31 * path.cc (conv_path_list): Remove enclosing quotes and trailing
32 backslashes from Win32 environment path lists.
34 2011-02-01 Christian Franke <franke@computer.org>
36 * fhandler.cc (fhandler_base::fsync): Ignore ERROR_INVALID_FUNCTION
37 error from FlushFileBuffers().
39 2011-01-31 Corinna Vinschen <corinna@vinschen.de>
41 * syscalls.cc (utmp_data): Fix potential buffer overflow.
43 2011-01-31 Corinna Vinschen <corinna@vinschen.de>
45 * fhandler_socket.cc (address_in_use): Improve comment readability.
47 2011-01-30 Corinna Vinschen <corinna@vinschen.de>
49 * fhandler_socket.cc (address_in_use): Disable. Add comment.
50 (fhandler_socket::bind): Change comment to explain setting the
51 SO_EXCLUSIVEADDRUSE socket option. Remove code which checks for
53 * net.cc (cygwin_setsockopt): Never set SO_REUSEADDR option. Improve
54 comment to compensate for the deleted comment in fhandler_socket::bind.
55 * wincap.cc: Throughout, drop has_enhanced_socket_security from wincaps.
56 * wincap.h (struct wincaps): Drop has_enhanced_socket_security flags
59 2011-01-28 Peter Foley <jpfoley2@verizon.net>
61 * configure.in: Define LIBSERVER regardless of cross_host.
62 * configure: Regenerate.
64 2011-01-28 Corinna Vinschen <corinna@vinschen.de>
66 * fhandler_socket.cc (fhandler_socket::wait_for_events): Call
67 pthread_testcancel in case of timeout to enable pthread_cancel
70 2011-01-27 Corinna Vinschen <corinna@vinschen.de>
72 * include/features.h (__STDC_ISO_10646__): Move to newlib's
75 2011-01-26 Corinna Vinschen <corinna@vinschen.de>
77 * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Fix
78 computation of st_blocks.
79 (fhandler_base::fstat_helper): Fix formatting.
81 2011-01-24 Corinna Vinschen <corinna@vinschen.de>
83 * include/features.h (__STDC_ISO_10646__): Define. Add comment.
85 2011-01-21 Corinna Vinschen <corinna@vinschen.de>
87 * syscalls.cc (rename): Fix permission problem with symlinks on NFS.
88 Rework how NtOpenFile gets called to make it more readable. Change
91 2011-01-20 Corinna Vinschen <corinna@vinschen.de>
93 * exec.cc: Include pinfo.h.
94 * winf.h: Move definitions of _P_PATH_TYPE_EXEC and _P_MODE from here...
95 * pinfo.h: ...to here.
96 (_P_PATH_TYPE_EXEC): Redefine to be bigger than _P_SYSTEM.
97 (_P_MODE): Redefine so as not to mask out _P_SYSTEM.
98 * spawn.cc (spawnlp): Add _P_PATH_TYPE_EXEC flag in call to spawnve.
102 2011-01-19 Corinna Vinschen <corinna@vinschen.de>
104 * spawn.cc (av::fixup): Reenable #! handling for all exec functions.
105 Return ENOEXEC in !p_type_exec case only for unrecognized files.
106 Fix comment formatting.
108 2011-01-19 Corinna Vinschen <corinna@vinschen.de>
110 * exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
113 2011-01-19 Corinna Vinschen <corinna@vinschen.de>
115 * exec.cc: Rearrange functions in alphabetical order.
116 (_execve): Drop temporary define and drop export alias.
117 (execl): Call spawnve.
118 (execle): New function.
119 (execlp): New function.
120 (execv): Call spawnve.
121 (execve): Drop converting NULL envp to emtpy envp.
122 (execvp): Call spawnve.
123 (execvpe): Drop converting NULL envp to emtpy envp. Call spawnve.
124 (fexecve): Call spawnve.
125 * spawn.cc (spawnve): Convert NULL envp to emtpy envp. Remove outdated
127 (spawnlp): Call spawnve.
130 (spawnvpe): Fix formatting.
132 2011-01-19 Corinna Vinschen <corinna@vinschen.de>
134 * exec.cc (strccpy): Move function from here...
135 * strfuncs.cc (strccpy): ...to here.
136 * string.h (strccpy): Declare.
137 * winsup.h (strccpy): Drop declaration.
139 2011-01-19 Corinna Vinschen <corinna@vinschen.de>
141 * errno.cc (errmap): Add error codes for invalid binaries.
142 * exec.cc (execvp): Call spawnve with _P_PATH_TYPE_EXEC flag
145 * spawn.cc (spawn_guts): Filter _P_PATH_TYPE_EXEC from mode and
146 store in p_type_exec. Call av::fixup with addtional p_type_exec
148 (spawnve): Check for filtered mode.
149 (spawnvpe): Add _P_PATH_TYPE_EXEC flag when calling spawnve.
150 (av::fixup): Accept additional bool parameter p_type_exec. Only check
151 for script if p_type_exec is true.
152 * winf.h (_P_PATH_TYPE_EXEC): Define.
154 (av::fixup): Declare with additional bool parameter.
156 2011-01-17 Corinna Vinschen <corinna@vinschen.de>
158 * fhandler_proc.cc (format_proc_partitions): Fix compiler warning.
160 2011-01-17 Corinna Vinschen <corinna@vinschen.de>
162 * path.cc (path_conv::check): Don't follow reparse point symlinks if
163 PC_SYM_NOFOLLOW_REP flag is set.
164 (cygwin_conv_path): Set PC_SYM_NOFOLLOW_REP flag when converting from
166 * path.h (enum pathconv_arg): Define PC_SYM_NOFOLLOW_REP flag.
168 2011-01-17 Corinna Vinschen <corinna@vinschen.de>
170 * fhandler_proc.cc (proc_tab_cmp): Fix typo in comment.
171 (fhandler_proc::fill_filebuf): Handle return value of 0 from format
173 (format_proc_stat): Set errno when returning 0 size.
174 (format_proc_partitions): Rewrite method to fetch partition info.
176 2011-01-13 Corinna Vinschen <corinna@vinschen.de>
178 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Always set
179 st_size of directories to 0. Explain why.
181 2011-01-12 Corinna Vinschen <corinna@vinschen.de>
183 * posix.sgml: Add madvise to BSD list.
185 2011-01-12 Corinna Vinschen <corinna@vinschen.de>
187 * cygwin.din (madvise): Export posix_madvise as madvise.
188 * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
189 * include/sys/mman.h: Define madvise constants, keep Linux-specific
193 2011-01-12 Corinna Vinschen <corinna@vinschen.de>
195 * fhandler.h (struct part_t): New type.
196 (class fhandler_dev_floppy): Convert partitions to part_t pointer.
197 Add lock_partition method.
198 * fhandler_floppy.cc (fhandler_dev_floppy::lock_partition): New method
199 to implement ondemand partition locking.
200 (fhandler_dev_floppy::write_file): Call lock_partition from here if
201 writing failed due to a potential write restriction on a disk
203 (fhandler_dev_floppy::open): Don't lock partitions here.
204 (fhandler_dev_floppy::close): Keep track of partition handle reference
205 count. Close handles and remove partitions pointer ony if count is 0.
206 (fhandler_dev_floppy::dup): Just copy partitions pointer and increment
209 2011-01-11 Corinna Vinschen <corinna@vinschen.de>
211 * fhandler.h (MAX_PARTITIONS): New definition.
212 (class fhandler_dev_floppy): Add partitions array member. Add close
214 * fhandler_floppy.cc (fhandler_dev_floppy::fhandler_dev_floppy): Zero
215 out partitions array.
216 (fhandler_dev_floppy::open): Fix "entire disk" condition for call to
217 DeviceIoControl (FSCTL_ALLOW_EXTENDED_DASD_IO).
218 When opening disks for writing, call DeviceIoControl (FSCTL_LOCK_VOLUME)
219 on all affected disk partitions starting with Vista.
220 (fhandler_dev_floppy::close): New method.
221 (fhandler_dev_floppy::dup): Duplicate handles in partitions, if any.
222 * wincap.h (wincaps::has_restricted_raw_disk_access): New element.
223 * wincap.cc: Implement above element throughout.
225 2011-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
227 * termios.cc (cfgetospeed, cfgetispeed): Constify argument per POSIX.
228 * include/sys/termios.h (cfgetospeed, cfgetispeed): Declare functions.
229 Move macros after declarations and make conditional on !__cplusplus.
231 2011-01-11 Corinna Vinschen <corinna@vinschen.de>
233 * cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting
234 current locale and calling srand48.
236 2011-01-02 Christopher Faylor <me+cygwin@cgf.cx>
238 * ChangeLog-2010: Create from ChangeLog.
239 * ChangeLog: Start fresh.