OSDN Git Service

* fhandler_console.cc (fhandler_console::write_normal): Remove
[pf3gnuchains/sourceware.git] / winsup / cygwin / ChangeLog
1 2011-02-07  Corinna Vinschen  <corinna@vinschen.de>
2
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
7         comments.
8
9 2011-02-05  Christopher Faylor  <me+cygwin@cgf.cx>
10
11         * autoload.cc (wsock_init): Properly define WSAStartup function pointer
12         to avoid stack damage.
13
14 2011-02-02  Corinna Vinschen  <corinna@vinschen.de>
15
16         * libc/bsdlib.cc: Include err.h.
17
18 2011-02-02  Eric Blake  <eblake@redhat.com>
19
20         * include/err.h: Fix loss of semicolons in previous patch.
21
22 2011-02-02  Corinna Vinschen  <corinna@vinschen.de>
23
24         * include/err.h (err): Add noreturn attribute.
25         (errx): Ditto.
26         (verr): Ditto.
27         (verrx): Ditto.
28
29 2011-02-02  Corinna Vinschen  <corinna@vinschen.de>
30
31         * path.cc (conv_path_list): Remove enclosing quotes and trailing
32         backslashes from Win32 environment path lists.
33
34 2011-02-01  Christian Franke  <franke@computer.org>
35
36         * fhandler.cc (fhandler_base::fsync): Ignore ERROR_INVALID_FUNCTION
37         error from FlushFileBuffers().
38
39 2011-01-31  Corinna Vinschen  <corinna@vinschen.de>
40
41         * syscalls.cc (utmp_data): Fix potential buffer overflow.
42
43 2011-01-31  Corinna Vinschen  <corinna@vinschen.de>
44
45         * fhandler_socket.cc (address_in_use): Improve comment readability.
46
47 2011-01-30  Corinna Vinschen  <corinna@vinschen.de>
48
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
52         address in use.
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
57         and method.
58
59 2011-01-28 Peter Foley <jpfoley2@verizon.net>
60
61         * configure.in: Define LIBSERVER regardless of cross_host.
62         * configure: Regenerate.
63
64 2011-01-28  Corinna Vinschen  <corinna@vinschen.de>
65
66         * fhandler_socket.cc (fhandler_socket::wait_for_events): Call
67         pthread_testcancel in case of timeout to enable pthread_cancel
68         on waiting thread.
69
70 2011-01-27  Corinna Vinschen  <corinna@vinschen.de>
71
72         * include/features.h (__STDC_ISO_10646__): Move to newlib's
73         sys/features.h.
74
75 2011-01-26  Corinna Vinschen  <corinna@vinschen.de>
76
77         * fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Fix
78         computation of st_blocks.
79         (fhandler_base::fstat_helper): Fix formatting.
80
81 2011-01-24  Corinna Vinschen  <corinna@vinschen.de>
82
83         * include/features.h (__STDC_ISO_10646__): Define.  Add comment.
84
85 2011-01-21  Corinna Vinschen  <corinna@vinschen.de>
86
87         * syscalls.cc (rename): Fix permission problem with symlinks on NFS.
88         Rework how NtOpenFile gets called to make it more readable.  Change
89         comment.
90
91 2011-01-20  Corinna Vinschen  <corinna@vinschen.de>
92
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.
99         (spawnlpe): Ditto.
100         (spawnvp): Ditto.
101
102 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
103
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.
107
108 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
109
110         * exec.cc (execlp): Add missing _P_PATH_TYPE_EXEC flag in call to
111         spawnve.
112
113 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
114
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
126         comment.
127         (spawnlp): Call spawnve.
128         (spawnlpe): Ditto.
129         (spawnvp): Ditto.
130         (spawnvpe): Fix formatting.
131
132 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
133
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.
138
139 2011-01-19  Corinna Vinschen  <corinna@vinschen.de>
140
141         * errno.cc (errmap): Add error codes for invalid binaries.
142         * exec.cc (execvp): Call spawnve with _P_PATH_TYPE_EXEC flag
143         from here.
144         (execvpe): Ditto.
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
147         argument.
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.
153         (_P_MODE): Define.
154         (av::fixup): Declare with additional bool parameter.
155
156 2011-01-17  Corinna Vinschen  <corinna@vinschen.de>
157
158         * fhandler_proc.cc (format_proc_partitions): Fix compiler warning.
159
160 2011-01-17  Corinna Vinschen  <corinna@vinschen.de>
161
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
165         POSIX to Win32.
166         * path.h (enum pathconv_arg): Define PC_SYM_NOFOLLOW_REP flag.
167
168 2011-01-17  Corinna Vinschen  <corinna@vinschen.de>
169
170         * fhandler_proc.cc (proc_tab_cmp): Fix typo in comment.
171         (fhandler_proc::fill_filebuf): Handle return value of 0 from format
172         function as error.
173         (format_proc_stat): Set errno when returning 0 size.
174         (format_proc_partitions): Rewrite method to fetch partition info.
175
176 2011-01-13  Corinna Vinschen  <corinna@vinschen.de>
177
178         * fhandler_disk_file.cc (fhandler_base::fstat_helper): Always set
179         st_size of directories to 0.  Explain why.
180
181 2011-01-12  Corinna Vinschen  <corinna@vinschen.de>
182
183         * posix.sgml: Add madvise to BSD list.
184
185 2011-01-12  Corinna Vinschen  <corinna@vinschen.de>
186
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
190         constants undefined.
191         (madvise): Declare.
192
193 2011-01-12  Corinna Vinschen  <corinna@vinschen.de>
194
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
202         partition.  
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
207         reference count.
208
209 2011-01-11  Corinna Vinschen  <corinna@vinschen.de>
210
211         * fhandler.h (MAX_PARTITIONS): New definition.
212         (class fhandler_dev_floppy): Add partitions array member.  Add close
213         method.
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.
224
225 2011-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
226
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.
230
231 2011-01-11  Corinna Vinschen  <corinna@vinschen.de>
232
233         * cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR.  Drop setting
234         current locale and calling srand48.
235
236 2011-01-02  Christopher Faylor  <me+cygwin@cgf.cx>
237
238         * ChangeLog-2010: Create from ChangeLog.
239         * ChangeLog: Start fresh.