]>
Commit | Line | Data |
---|---|---|
e11fe31b CF |
1 | 2003-03-03 Christopher Faylor <cgf@redhat.com> |
2 | ||
3 | * fhandler_tty.cc (fhandler_pty_slave::open): Grudgingly increment | |
4 | fhandler_console::open_fhs here. | |
5 | (fhandler_pty_slave::close): Ditto for close. | |
6 | ||
cffdb4b1 CF |
7 | 2003-03-02 Christopher Faylor <cgf@redhat.com> |
8 | ||
9 | * lib/getopt.c: Refresh from NetBSD sources. | |
10 | ||
d5d2ffee CF |
11 | 2003-03-02 Christopher Faylor <cgf@redhat.com> |
12 | ||
13 | * fhandler_console.cc (fhandler_console::close): Don't decrement | |
14 | in use counter if in vfork fixup stage. | |
15 | ||
c2c6b170 CF |
16 | 2003-03-02 Christopher Faylor <cgf@redhat.com> |
17 | ||
18 | * lib/getopt.c: Nuke use of unneeded BSDisms. | |
19 | ||
8b19b43d CF |
20 | 2003-03-02 Christopher Faylor <cgf@redhat.com> |
21 | ||
22 | * dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary | |
23 | if LoadLibraryEx fails. | |
24 | * dtable.cc (dtable::dec_console_fds): Eliminate. | |
25 | (dtable::release): Don't treat console specially. | |
26 | (dtable::build_fhandler): Ditto. | |
27 | * dtable.h (console_fds): Eliminate. | |
28 | (dtable::dec_console_fds): Eliminate. | |
29 | (dtable::inc_console_fds): Eliminate. | |
30 | * fhandler.h (fhandler_console::open_fhs): New static element. | |
31 | * fhandler_console.cc (fhandler_console::open): Increment open_fs. | |
32 | (fhandler_console::close): Call FreeConsole if no more open consoles | |
33 | and ctty is not associated with the console. | |
34 | * syscalls.cc (setsid): Simplify check for when to call FreeConsole. | |
35 | (check_pty_fds): Eliminate definition. | |
36 | * winsup.h (check_pty_fds): Eliminate declaration. | |
37 | ||
3efc65f7 CF |
38 | 2003-03-02 Christopher Faylor <cgf@redhat.com> |
39 | ||
40 | * dll_init.cc (dll_list::load_after_fork): Fix typo where result of | |
41 | LoadLibrary was ignored. | |
42 | ||
5a082e9e CV |
43 | 2003-03-01 Corinna Vinschen <corinna@vinschen.de> |
44 | ||
45 | * fhandler_socket.cc (fhandler_socket::bind): Open and write socket | |
46 | file using Win32 calls. | |
47 | ||
9d913f07 CV |
48 | 2003-03-01 Corinna Vinschen <corinna@vinschen.de> |
49 | ||
50 | * fhandler_socket.cc (get_inet_addr): Open and read socket file using | |
51 | Win32 calls. | |
52 | ||
005c3065 CF |
53 | 2003-02-28 Christopher Faylor <cgf@redhat.com> |
54 | ||
55 | * cygwin.din: Wrap atexit and exit with cygwin, thread-safe functions. | |
56 | * dcrt0.cc (cygwin_atexit): New function. | |
57 | (cygwin_exit): Ditto. | |
58 | ||
27b4082a PH |
59 | 2003-02-28 Pierre Humblet <pierre.humblet@ieee.org> |
60 | ||
61 | * syscalls.cc (fstat64): Pass get_name () to pc. | |
005c3065 | 62 | (access): Pass fn to stat_worker. |
27b4082a PH |
63 | |
64 | 2003-03-27 Corinna Vinschen <corinna@vinschen.de> | |
5777b970 CV |
65 | |
66 | * fhandler_socket.cc (class sock_event): New class managing Winsock | |
67 | events for interruptible socket calls. | |
68 | (fhandler_socket::connect): Move support for interruptible call to | |
69 | class sock_event. Use class object instead. | |
70 | (fhandler_socket::accept): Ditto. Remove useless casts. | |
71 | ||
005c3065 | 72 | 2003-03-27 Thomas Pfaff <tpfaff@gmx.net> |
5777b970 CV |
73 | |
74 | * fhandler_socket.cc (fhandler_socket::connect): Add support for | |
75 | an interruptable connect. | |
76 | ||
7b2ce663 CV |
77 | 2003-02-27 Pierre Humblet <pierre.humblet@ieee.org> |
78 | ||
79 | * uinfo.cc (internal_getlogin): Only update user.groups.pgsid | |
80 | if the call to set the primary group succeeds. | |
81 | ||
0e7a60fe CF |
82 | 2003-02-27 Christopher Faylor <cgf@redhat.com> |
83 | ||
84 | * cygthread::detach: Improve error message. | |
85 | ||
61a52599 CV |
86 | 2003-02-26 Pierre Humblet <pierre.humblet@ieee.org> |
87 | ||
88 | * sec_helper.cc (get_sids_info): debug_print owner_sid and group_sid. | |
89 | ||
6b9a9ce6 CV |
90 | 2003-02-25 Corinna Vinschen <corinna@vinschen.de> |
91 | ||
92 | * mmap.cc (mmap64): Fix returned address by taking the granularity | |
93 | into account. | |
94 | ||
1ffc44aa PH |
95 | 2003-02-23 Pierre Humblet <pierre.humblet@ieee.org> |
96 | ||
97 | * syslog.cc (syslog): Do not unlock the file before closing it | |
98 | and remove debug_printf about stream errors. | |
99 | ||
a066f364 CF |
100 | 2003-02-22 Christopher Faylor <cgf@redhat.com> |
101 | ||
102 | * cygmalloc.h: Remove MORECORE_CANNOT_TRIM. It's not true. | |
103 | # cygwin.din: Export mallinfo. | |
104 | # malloc_wrapper.cc (mallinfo): New function. | |
105 | ||
878e60c5 CF |
106 | 2003-02-22 Pierre Humblet <pierre.humblet@ieee.org> |
107 | ||
108 | * syslog.cc (syslog): Do not print the Windows pid. Print the Cygwin | |
109 | pid as an unsigned decimal. On Win95 print a timestamp and attempt to | |
110 | lock the file up to four times in 3 ms. | |
111 | ||
b1d1e50d CV |
112 | 2003-02-21 Corinna Vinschen <corinna@vinschen.de> |
113 | ||
114 | * fhandler_socket.cc (fhandler_socket::fhandler_socket): Fix compiler | |
115 | warning. | |
116 | (fhandler_socket::fstat): Simplify. Set st_uid/st_gid to effective | |
117 | uid/gid of current process in case of open sockets. | |
118 | ||
cf762b08 CV |
119 | 2003-02-21 Corinna Vinschen <corinna@vinschen.de> |
120 | ||
121 | * dtable.cc (dtable::build_fhandler_from_name): Set some fhandler | |
122 | data on sockets to evaluate AF_LOCAL sockets correctly. | |
123 | (dtable::build_fhandler): Set unit number on sockets. | |
124 | * fhandler.h (fhandler_socket): Add unit number. | |
125 | (fhandler_socket::get_unit): New method. | |
126 | * fhandler_socket.cc (fhandler_socket::fhandler_socket): Set unit | |
127 | number. | |
128 | (fhandler_socket::fstat): Reorganize to return more Linux-like | |
129 | values. | |
130 | * net.cc: include ctype.h. | |
131 | (fdsock): Set unit number when building fhandler. | |
132 | * path.cc (path_conv::check): Set device type to FH_SOCKET if file | |
133 | is a AF_UNIX socket. | |
134 | (get_devn): Evaluate unit for virtual socket devices. | |
135 | (win32_device_name): Set windows path for sockets to unix_path with | |
136 | just backslashes to keep the different names. | |
137 | * syscalls.cc (fstat64): Don't override st_ino, st_dev and st_rdev | |
138 | for sockets. | |
139 | (stat_worker): Ditto. | |
140 | ||
141 | 2003-02-21 Pierre Humblet <pierre.humblet@ieee.org> | |
142 | ||
143 | * autoload.cc (AccessCheck): Add. | |
144 | (DuplicateToken): Add. | |
145 | * security.h (check_file_access): Declare. | |
146 | * syscalls.cc (access): Convert path to Windows, check existence | |
147 | and readonly attribute. Call check_file_access instead of acl_access. | |
148 | * security.cc (check_file_access): Create. | |
149 | * sec_acl (acl_access): Delete. | |
150 | ||
5cd82412 CF |
151 | 2003-02-19 Christopher Faylor <cgf@redhat.com> |
152 | ||
153 | * fhandler.cc (fhandler_base::open): Move some filesystem specific | |
154 | stuff. | |
155 | (fhandler_disk_file::open): Accept some filesystem specific stuff. | |
156 | * sigproc.cc (wait_for_sigthread): Become slightly more thread safe. | |
157 | (sig_send): Don't assume that signal thread is ready. | |
158 | ||
892d8962 CV |
159 | 2003-02-20 Corinna Vinschen <corinna@vinschen.de> |
160 | ||
161 | * wincap.h (wincap): Remove unnecessary definition of | |
162 | supports_sparse_files. | |
163 | * wincap.cc: Ditto. | |
164 | ||
518f5d49 CV |
165 | 2003-02-20 Corinna Vinschen <corinna@vinschen.de> |
166 | ||
167 | * fhandler_disk_file.cc (fhandler_disk_file::opendir): Check descriptor | |
168 | created by cygheap_fdnew constructor. | |
169 | * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto. | |
170 | * fhandler_socket.cc (fhandler_socket::accept): Ditto and move | |
171 | creation of file descriptor behind blocking OS call. | |
172 | * net.cc (cygwin_socket): Ditto. | |
173 | (cygwin_rcmd): Ditto. | |
174 | (cygwin_rresvport): Ditto. | |
175 | (cygwin_rexec): Ditto. | |
176 | (socketpair): Ditto. | |
177 | ||
3a88cf1b CV |
178 | 2003-02-20 Corinna Vinschen <corinna@vinschen.de> |
179 | ||
180 | * autoload.cc (GetCompressedFileSize): Add. | |
181 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Compute | |
182 | st_blocks value from GetCompressedFileSize() if available. | |
183 | ||
79207923 CV |
184 | 2003-02-18 Vaclav Haisman <V.Haisman@sh.cvut.cz> |
185 | ||
186 | * wincap.h (wincaps::supports_sparse_files): New flag. | |
187 | (wincapc::supports_sparse_files): New method. | |
188 | * wincap.cc (wincap_unknown): Define value for the new flag. | |
189 | (wincap_95): Ditto. | |
190 | (wincap_95osr2): Ditto. | |
191 | (wincap_98): Ditto. | |
192 | (wincap_98se): Ditto. | |
193 | (wincap_me): Ditto. | |
194 | (wincap_nt3): Ditto. | |
195 | (wincap_nt4): Ditto. | |
196 | (wincap_nt4sp4): Ditto. | |
197 | (wincap_2000): Ditto. | |
198 | (wincap_xp): Ditto. | |
199 | * path.h (path_conv::fs_flags): New method. | |
005c3065 CF |
200 | * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl. |
201 | (fhandler_disk_file::open): Set newly created and truncated files as | |
79207923 CV |
202 | sparse on platforms that support it. |
203 | ||
afe13e84 CV |
204 | 2003-02-17 Pierre Humblet <pierre.humblet@ieee.org> |
205 | ||
206 | * grp.cc (internal_getgroups): Handle properly tokens with | |
207 | no groups. Fix bug introduced on 2003-02-04. | |
208 | ||
8fc16812 CF |
209 | 2003-02-16 Christopher Faylor <cgf@redhat.com> |
210 | ||
408e9b2f | 211 | * cygwin.din: Export all appropriate newlib libm functions. Sort. |
8fc16812 CF |
212 | * include/cygwin/version.h: Bump API minor number. |
213 | ||
f655eadf CF |
214 | 2003-02-15 Christopher Faylor <cgf@redhat.com> |
215 | ||
8fc16812 | 216 | * cygwin.din: Export all appropriate newlib libc functions. |
f655eadf CF |
217 | * include/cygwin/version.h: Bump API minor number. |
218 | ||
4d9ba012 CV |
219 | 2003-02-14 Jason Tishler <jason@tishler.net> |
220 | ||
221 | * mmap.cc (mprotect): Add missing break. | |
222 | ||
dff01e3a CF |
223 | 2003-02-13 Christopher Faylor <cgf@redhat.com> |
224 | ||
225 | * exceptions.cc (try_to_debug): Don't reset priority when returning | |
226 | from non-waitloop call. | |
d1d1797e CF |
227 | |
228 | 2003-02-13 Vaclav Haisman <V.Haisman@sh.cvut.cz> | |
005c3065 | 229 | Christopher Faylor <cgf@redhat.com> |
d1d1797e CF |
230 | |
231 | * fhandler_console.cc (fhandler_console::write_normal): Use MessageBeep | |
232 | for bell sound. | |
233 | * autoload.cc (MessageBeep): Add. | |
234 | ||
97c61aeb CF |
235 | 2003-02-13 Christopher Faylor <cgf@redhat.com> |
236 | ||
237 | * include/cygwin/types.h: Use correct ifdef guard for u_ definitions. | |
238 | ||
a200c081 CF |
239 | 2003-02-13 Christopher Faylor <cgf@redhat.com> |
240 | ||
241 | * environ.cc (environ_init): Use strechr. | |
242 | ||
2858de3a CF |
243 | 2003-02-13 Christopher Faylor <cgf@redhat.com> |
244 | ||
245 | * include/cygwin/in.h (sockaddr_in): Fix typo. | |
246 | ||
75c8a70c CF |
247 | 2003-02-12 Christopher Faylor <cgf@redhat.com> |
248 | ||
249 | * path.h (path_conv): Reorganize slightly. | |
250 | ||
939d19b0 CF |
251 | 2003-02-12 Christopher Faylor <cgf@redhat.com> |
252 | ||
253 | * fhandler_tty.cc (process_input): Add sanity check to ensure that | |
254 | console typeahead is cleared on signal. | |
255 | ||
7a44ba05 CF |
256 | 2003-02-12 Christopher Faylor <cgf@redhat.com> |
257 | ||
258 | * spawn.cc (linebuf::~linebuf): Resurrect commented out (for | |
259 | debugging?) code. | |
260 | ||
407b8df6 CF |
261 | 2003-02-10 Ralf Habacker <ralf.habacker@freenet.de> |
262 | ||
263 | * include/cygwin/in.h (in_attr_t): Define new type. | |
264 | * include/arpa/inet.h (inet_addr): Change return type to in_addr_t. | |
265 | (inet_lnaof): Ditto. | |
266 | (inet_netof): Ditto. | |
267 | (inet_network): Ditto. | |
268 | ||
269 | 2003-02-10 Christopher Faylor <cgf@redhat.com> | |
270 | ||
271 | * include/cygwin/types.h: Move many *_t typedefs here. Protect them | |
272 | with ifdefs. | |
273 | * fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to mode_t. | |
274 | * security.cc (get_attribute_from_acl): Accept mode_t attribute. | |
275 | (get_nt_attribute): Ditto. | |
276 | (get_file_attribute): Ditto. | |
277 | (get_nt_object_attribute): Ditto. | |
278 | (get_object_attribute): Ditto. | |
279 | * security.h: Reflect above changes. | |
280 | * syscalls.cc (chown_worker): Change attrib to mode_t. | |
281 | ||
ad80bc42 CF |
282 | 2003-02-08 Christopher Faylor <cgf@redhat.com> |
283 | ||
67c64e3b | 284 | * include/cygwin/version.h: Bump DLL minor number to 21. |
ad80bc42 CF |
285 | |
286 | 2003-02-07 Christopher Faylor <cgf@redhat.com> | |
287 | ||
288 | * malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below | |
289 | changes. | |
290 | ||
4136fdb1 CV |
291 | 2003-02-07 Corinna Vinschen <corinna@vinschen.de> |
292 | ||
293 | * mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length | |
294 | parameter. Only protect pages actually unused currently. Do job | |
295 | of map_map() when initializing a map. | |
296 | (mmap_record::map_map): Reduce functionality for the reuse case | |
297 | of private anonymous mapping. | |
298 | (mmap_record::fixup_map): Format change. | |
299 | (list::add_record): Add offset and length parameter to call | |
300 | mmap_record::alloc_map() correctly. | |
301 | (mmap64): Rename `l' variable to `map_list'. Accomodate above changes. | |
302 | (munmap): Rename `l' variable to `map_list'. | |
303 | (msync): Ditto. | |
304 | (fhandler_disk_file::mmap): Streamline code. | |
305 | (mprotect): Ditto. | |
306 | (fixup_mmaps_after_fork): Rename `l' variable to `map_list'. | |
307 | ||
49b84ce4 CF |
308 | 2003-02-07 Vaclav Haisman <V.Haisman@sh.cvut.cz> |
309 | Christopher Faylor <cgf@redhat.com> | |
310 | ||
311 | * exceptions.cc (try_to_debug): Set priority of current thread rather | |
312 | than the main thread. Make busy waiting loop less busy. Restore | |
313 | priority when function returns. | |
314 | ||
bc5b63ed CF |
315 | 2003-02-07 Christopher Faylor <cgf@redhat.com> |
316 | ||
317 | * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps. | |
318 | ||
319 | 2003-02-07 Christopher Faylor <cgf@redhat.com> | |
320 | ||
321 | * pipe.cc (fhandler_pipe::close): Avoid extraneous this->. | |
322 | ||
1de8d164 CF |
323 | 2003-02-06 Christopher Faylor <cgf@redhat.com> |
324 | ||
325 | * heap.cc (heap_init): Remove debugging code. | |
326 | ||
565e8015 CV |
327 | 2003-02-06 Pierre Humblet <pierre.humblet@ieee.org> |
328 | ||
329 | * security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete | |
1de8d164 | 330 | declaration of is_grp_member. |
565e8015 CV |
331 | * uinfo.cc (internal_getlogin): Use UNKNOWN_GID. |
332 | * passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID. | |
333 | * grp.cc (pwdgrp::read_group): Change group name to provide better | |
334 | feedback. | |
335 | (getgrgid): Use gid16togid32. | |
336 | * sec_helper.cc (is_grp_member): Delete. | |
337 | ||
d238c1b4 CF |
338 | 2003-02-05 Christopher Faylor <cgf@redhat.com> |
339 | ||
340 | * path.cc: Change 'to_posix_p' to 'to_posix' throughout. | |
341 | (conv_path_list_buf_size): Accommodate relative paths. | |
342 | ||
b7f52fe8 CF |
343 | 2003-02-05 Christopher Faylor <cgf@redhat.com> |
344 | ||
345 | * path.cc (etc::dir_changed): Fix debug printf. | |
346 | ||
62cd433e CV |
347 | 2003-02-05 Corinna Vinschen <corinna@vinschen.de> |
348 | ||
349 | * sec_acl.cc (setacl): Move all permission settings to beginning of | |
350 | loop. Set default rights to same values as in alloc_sd(). Set DELETE | |
351 | for owner and default owner only if S_IWOTH is given. | |
352 | ||
353 | 2003-02-05 Pierre Humblet <pierre.humblet@ieee.org> | |
354 | ||
355 | * sec_acl.cc: Change all __aclent16_t to __aclent32_t except in | |
356 | wrapper function definitions. Replace call to the aclXYZ functions by | |
357 | calls aclXYZ32. | |
358 | (searchace): Change type of third argument to __uid32_t and use | |
359 | ILLEGAL_UID instead of -1; | |
360 | (setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE | |
361 | for S_IWOTH. Replace -1 by ILLEGAL_UID. | |
362 | (getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid. | |
363 | In last else clause, suppress second call to ace_sid.get_id and use | |
364 | TRUE in first call. Replace EqualSid by ==. | |
365 | (acl_access): Call internal_getgroups in USER and GROUP cases. | |
366 | (acecmp: Define static. | |
367 | (acl32): Create from 16 bit type. | |
368 | (facl32): Ditto. | |
369 | (lacl32): Ditto. | |
370 | (aclcheck32): Ditto. | |
371 | (aclsort32): Ditto. | |
372 | (acltomode32): Ditto. | |
373 | (aclfrommode32): Ditto. | |
374 | (acltopbits32): Ditto. | |
375 | (aclfrompbits32): Ditto. | |
376 | (acltotext32): Ditto. | |
377 | (aclfromtext32): Ditto, and use strechr. | |
378 | (acl16to32): Create. | |
379 | (acl): Make it a wrapper function. | |
380 | (facl): Ditto. | |
381 | (lacl): Ditto. | |
382 | (aclcheck): Ditto. | |
383 | (aclsort): Ditto. | |
384 | (acltomode): Ditto. | |
385 | (aclfrommode): Ditto. | |
386 | (acltopbits): Ditto. | |
387 | (aclfrompbits): Ditto. | |
388 | (acltotext): Ditto. | |
389 | (aclfromtext): Ditto. | |
390 | * security.cc (write_sd): Call set_process_privilege and check | |
391 | ownership. | |
392 | (alloc_sd): Remove call to set_process_privilege and the owner check. | |
393 | ||
cadd065b CF |
394 | 2003-02-05 Christopher Faylor <cgf@redhat.com> |
395 | ||
396 | * include/sys/cygwin.h: Use C-style comments. | |
397 | ||
0c8455c3 CV |
398 | 2003-02-05 Pierre Humblet <pierre.humblet@ieee.org> |
399 | ||
400 | * sec_helper.cc (get_sids_info): New function. | |
401 | * security.cc (extract_nt_dom_user): Simplify with strechr. | |
402 | (get_user_groups): Initialize glen to MAX_SID_LEN. | |
403 | (get_user_local_groups): Ditto. | |
404 | (get_attribute_from_acl): Define ace_sid as cygpsid. | |
405 | (get_nt_attribute): Define owner_sid and group_sid as cygpsid. | |
406 | Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member. | |
407 | (get_nt_object_attribute): Ditto. | |
408 | (alloc_sd): Define ace_sid as cygpsid. | |
409 | ||
5ae9331a TP |
410 | 2003-02-04 Thomas Pfaff <tpfaff@gmx.net> |
411 | ||
412 | * syscalls.cc (struct system_cleanup_args): New struct. | |
413 | (system_cleanup): New function. | |
414 | (system): Use pthread_cleanup_push and _pop to save and restore | |
415 | signal handlers and sigprocmask. | |
416 | ||
3dbafd87 CV |
417 | 2003-02-04 Corinna Vinschen <corinna@vinschen.de> |
418 | ||
419 | * path.cc (symlink): Create security attributes so that only the | |
420 | user can modify the symlink. | |
421 | * security.cc (set_security_attribute): Remove symlink special | |
422 | handling. | |
423 | ||
0daf2561 CV |
424 | 2003-02-04 Pierre Humblet <pierre.humblet@ieee.org> |
425 | ||
426 | * grp.cc (internal_getgroups): Do not return without closing | |
427 | the process handle. | |
428 | ||
4a21c2d5 CV |
429 | 2003-02-04 Pierre Humblet <pierre.humblet@ieee.org> |
430 | ||
431 | * security.h (class cygpsid): New class. | |
432 | (class cygsid): Use cygpsid as base. Remove members psid, get_id, | |
433 | get_uid, get_gid, string, debug_printf and the == and != operators. | |
434 | (cygsidlist::clear_supp): Only do work if setgroups has been called. | |
435 | * sec_helper.cc: Define sid_auth NO_COPY. | |
436 | (cygpsid::operator==): New operator. | |
437 | (cygpsid::get_id): New function. | |
438 | (cygpsid::string): New function. | |
439 | (cygsid::string): Delete. | |
440 | (cygsid::get_id): Delete. | |
441 | * pwdgrp.h: Change arguments of internal_getpwsid, | |
442 | internal_getgrsid and internal_getgroups to cygpsid. | |
443 | * passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid. | |
d238c1b4 | 444 | * grp.cc (internal_getgrsid): Ditto. |
4a21c2d5 CV |
445 | (internal_getgroups): Ditto. |
446 | ||
335556d5 CF |
447 | 2003-02-03 Christopher Faylor <cgf@redhat.com> |
448 | ||
449 | Eliminate most unneeded this-> pointers throughout. | |
450 | ||
153e83c6 CV |
451 | 2003-02-03 Pierre Humblet <pierre.humblet@ieee.org> |
452 | ||
453 | * security.h: Add third argument to set_process_privilege. | |
454 | * autoload.cc: Add OpenThreadToken. | |
455 | * sec_helper.cc (set_process_privilege): Add and use use_thread | |
456 | argument. | |
457 | * security.cc (alloc_sd): Modify call to set_process_privilege. | |
458 | Remember the result in each process. If failed and file owner is not | |
459 | the user, fail. | |
460 | ||
f0f3ea68 CV |
461 | 2003-02-03 Corinna Vinschen <corinna@vinschen.de> |
462 | ||
463 | * fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer | |
464 | length and don't set errno in case of WSAEMSGSIZE error. | |
465 | (fhandler_socket::recvmsg): Ditto. | |
466 | ||
6688a061 CF |
467 | 2003-02-01 Christopher Faylor <cgf@redhat.com> |
468 | ||
469 | * grp.cc (getgrent32): Only refresh group entries when at beginning. | |
470 | (internal_getgrsid): Only refresh if uninitialized. | |
471 | (internal_getgrent): Ditto. | |
472 | * passwd.cc (getpwent): Only refresh passwd entries when at beginning. | |
473 | (pwdgrp::read_passwd): linebuf *cannot* be NO_COPY. | |
474 | (internal_getpwsid): Only refresh if uninitialized. | |
475 | (getpass): No need to refresh passwd data here. | |
476 | * pwdgrp.h (refresh): Eliminate default. | |
477 | ||
a5a93a62 CF |
478 | 2003-01-31 Christopher Faylor <cgf@redhat.com> |
479 | ||
480 | * dlfcn.cc (dlerror): Only report load errors once per error. | |
481 | ||
b0a82a85 CF |
482 | 2003-01-31 Christopher Faylor <cgf@redhat.com> |
483 | ||
484 | * fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting | |
485 | of res. | |
486 | ||
487 | * termios.cc (tcsetattr): Correctly record errno after tcsetattr call. | |
488 | ||
489 | 2003-01-31 Troy Curtiss <troyc@usa.net> | |
490 | ||
491 | * fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking | |
492 | so that if any Win32 SetComm*() calls fail, errno gets set to EINVAL | |
493 | and tcsetattr() returns -1. Catch invalid bitrates, mostly. If baud | |
494 | rate setting is B0, just drop DTR and leave Win32 DCB bitrate as-is | |
495 | since 0 is not a valid Win32 setting. | |
496 | (fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as | |
497 | B0, otherwise get it from the DCB. | |
498 | ||
949c3da1 CF |
499 | 2003-01-31 Christopher Faylor <cgf@redhat.com> |
500 | ||
501 | * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from | |
502 | Pierre Humblet). | |
503 | * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already | |
504 | have lock since that means we are in the process of reading the file. | |
505 | ||
485d85bf CF |
506 | 2003-01-31 Jason Tishler <jason@tishler.net> |
507 | ||
508 | * shared.cc (shared_info::heap_chunk_size): Use correct variable when | |
509 | reading HKLM. | |
510 | ||
704ce461 CF |
511 | 2003-01-30 Christopher Faylor <cgf@redhat.com> |
512 | ||
513 | * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one | |
514 | error when inspecting path. | |
515 | ||
ba6e1083 CF |
516 | 2003-01-29 Christopher Faylor <cgf@redhat.com> |
517 | ||
518 | * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT | |
519 | behavior. | |
520 | ||
521 | 2003-01-28 Corinna Vinschen <corinna@vinschen.de> | |
01e3c897 CV |
522 | |
523 | * fhandler_socket.cc (fhandler_socket::accept): On successful execution | |
524 | set connection state of returned socket to CONNECTED. | |
525 | ||
dfb366da CF |
526 | 2003-01-27 Christopher Faylor <cgf@redhat.com> |
527 | ||
528 | * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about | |
529 | non-numeric fields. | |
530 | ||
03dba1de CF |
531 | 2003-01-26 Christopher Faylor <cgf@redhat.com> |
532 | ||
533 | * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no | |
534 | longer a valid return from next_str. | |
535 | (pwdgrp::add_line): Duh. Revert to use strchr. | |
536 | ||
fea48988 CF |
537 | 2003-01-26 Christopher Faylor <cgf@redhat.com> |
538 | ||
ca6018a0 | 539 | * string.h (strechr): New function. |
fea48988 CF |
540 | * uinfo.cc (pwdgrp::next_str): Search only for input char in string. |
541 | Return EOS on failure. Don't check for NULL since it shouldn't be | |
542 | possible. | |
543 | (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'. | |
544 | (pwdgrp::next_num): Pass explicit separator character to next_str. | |
545 | * grp.cc (pwdgrp::parse_group): Ditto. | |
546 | * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage | |
547 | input. | |
548 | * pwdgrp.h (pwdgrp::next_str): Don't use default parameter. | |
549 | ||
9a751621 CF |
550 | 2003-01-26 Christopher Faylor <cgf@redhat.com> |
551 | ||
552 | * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for | |
553 | CreateFile failure. | |
554 | ||
c9133395 CF |
555 | 2003-01-26 Christopher Faylor <cgf@redhat.com> |
556 | ||
bdbd7fb6 CF |
557 | * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The |
558 | structure should always be completely filled out. | |
559 | * grp.cc (pwdgrp::parse_group): Ditto. | |
560 | ||
561 | 2003-01-26 Christopher Faylor <cgf@redhat.com> | |
562 | ||
563 | * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating | |
c9133395 | 564 | gr_mem. |
65037056 CF |
565 | |
566 | 2003-01-26 Christopher Faylor <cgf@redhat.com> | |
567 | ||
568 | * include/sys/strace.h (paranoid_printf): Define as not being part of | |
569 | "all" output. | |
570 | ||
571 | 2003-01-25 Christopher Faylor <cgf@redhat.com> | |
572 | ||
573 | * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns | |
574 | true/false if parse operation succeeded. | |
575 | (pwdgrp::reparse): Remove. | |
576 | (pwdgrp::raw_ptr): New function. Returns pointer in line. | |
577 | (pwdgrp::next_num): New functions for parsing other than unsigned long. | |
578 | * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior. | |
579 | Don't fill in fields with NULL and assign empty gr_mem to known pointer | |
580 | rather than doing a pointless calloc. Streamline gr_mem parsing. | |
581 | Don't increment curr_lines here. | |
582 | * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num. | |
583 | Don't increment curr_lines here. | |
584 | * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data. | |
585 | (pwdgrp::reparse): Remove. | |
586 | (pwdgrp::next_num): Rename from next_int. Return bool indicating | |
587 | success of parse, argument returns value parsed. | |
588 | (pwdgrp::add_line): Increment curr_lines here on successful parse. | |
589 | (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report | |
590 | it here. | |
591 | ||
a53ddfe6 CF |
592 | 2003-01-25 Christopher Faylor <cgf@redhat.com> |
593 | ||
594 | * pwdgrp.cc (pwdgrp::reparse): Declare. | |
595 | * uinfo.cc (pwdgrp::reparse): Define. | |
c9b99d0d | 596 | * grp.cc (pwdgrp::parse_group): Use reparse. |
a53ddfe6 | 597 | |
4f7e12dd CV |
598 | 2003-01-25 Pierre Humblet <pierre.humblet@ieee.org> |
599 | ||
600 | * syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists | |
601 | update the euid and call cygheap->user.set_name. Remove special | |
602 | handling of ILLEGAL_UID. | |
ba6e1083 | 603 | (setgid32): Add a debug_printf. On Win95, always set the egid. |
4f7e12dd CV |
604 | Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid. |
605 | * child_info.h (class cygheap_exec_info): Remove uid. | |
606 | * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid. | |
607 | * dcrto.cc (dll_crt0_1): Always call uinfo_init. | |
608 | * uinfo.cc (uinfo_init): Reorganize and close handle if needed. | |
609 | (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL. | |
610 | ||
45dbfc26 CF |
611 | 2003-01-24 Christopher Faylor <cgf@redhat.com> |
612 | ||
613 | * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset | |
614 | scroll region if size changes. | |
615 | ||
7d33eefa CV |
616 | 2003-01-24 Pierre Humblet <pierre.humblet@ieee.org> |
617 | Jason Tishler <jason@tishler.net> | |
618 | ||
619 | * cygwin.din: Export setreuid32, setreuid, setregid32, setregid. | |
620 | * syscalls.cc (setreuid32): New function. | |
621 | (setreuid): Ditto. | |
622 | (setregid32): Ditto. | |
623 | (setregid): Ditto. | |
624 | * include/cygwin/version.h: Bump API minor number. | |
625 | ||
ac413374 | 626 | 2003-01-23 Christopher Faylor <cgf@redhat.com> |
69fae986 | 627 | |
ac413374 | 628 | * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading. |
2037688a | 629 | |
ac413374 | 630 | 2003-01-23 Christopher Faylor <cgf@redhat.com> |
09a88426 CF |
631 | |
632 | * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member | |
633 | instead. Use next_str and next_int to parse arguments. | |
634 | * passwd.cc (pwdgrp::parse_passwd): Ditto. | |
635 | (grab_string): Eliminate. | |
636 | (grab_int): Ditto. | |
637 | * pwdgrp.h (pwdgrp::parse): Eliminate input arg. | |
638 | (pwdgrp::parse_passwd): Reflect above change. | |
639 | (pwdgrp::parse_group): Reflect above change. | |
640 | (pwdgrp::next_str): New function. | |
641 | (pwdgrp::next_int): Ditto. | |
642 | (pwdgrp::gets): Eliminate. | |
643 | * uinfo.cc (pwdgrp::next_str): New function. | |
644 | (pwdgrp::next_int): Ditto. | |
645 | (pwdgrp::add_line): Subsume gets. | |
646 | (pwdgrp::gets): Eliminate. | |
647 | (pwdgrp::load): Just call add_line to parse input buffer. | |
648 | ||
ac413374 CF |
649 | 2003-01-22 Thomas Pfaff <tpfaff@gmx.net> |
650 | ||
651 | * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from | |
652 | 2003-01-09 mutex patch. | |
653 | (PTHREAD_MUTEX_ERRORCHECK): Ditto. | |
654 | ||
655 | 2003-01-22 Corinna Vinschen <corinna@vinschen.de> | |
656 | ||
657 | * cygrun.c: Move from here to ../testsuite. | |
658 | * Makefile.in: Remove cygrun.exe dependencies. | |
659 | ||
660 | 2003-01-21 Jason Tishler <jason@tishler.net> | |
661 | ||
662 | * cygwin.din: Export nanosleep(). | |
663 | * signal.cc (nanosleep): New function. | |
664 | (sleep): Move old functionality to nanosleep(). Call nanosleep(). | |
665 | (usleep): Remove old functionality. Call nanosleep(). | |
666 | * include/cygwin/version.h: Bump API minor number. | |
667 | ||
57394495 CF |
668 | 2003-01-21 Christopher Faylor <cgf@redhat.com> |
669 | ||
670 | * grp.cc: Call gr.refresh() rather than doing isunitialized tests | |
671 | throughout. | |
672 | (gr): Use constructor (sigh). | |
673 | (pwdgrp::parse_group): Rename from parse_grp. | |
674 | (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load | |
675 | with a single argument. | |
676 | * passwd.cc: Call pr.refresh() rather than doing isunitialized tests | |
677 | throughout. | |
678 | (pr): Use constructor (sigh). | |
679 | (pwdgrp::parse_passwd): Rename from "parse_pwd". | |
680 | (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load | |
681 | with a single argument. | |
682 | * pwdgrp.h (pwdgrp_state): Eliminate. | |
683 | (pwdgrp): Reflect above renamings. | |
684 | (pwdgrp::etc_ix): Rename from pwd_ix. | |
685 | (pwdgrp::read): New element. | |
686 | (pwdgrp::lock): New element. | |
687 | (pwdgrp::refresh): New function. | |
688 | (pwdgrp::load): Eliminate variations which take buffer arguments. | |
689 | (pwdgrp::pwdgrp): New constructors. Initialize mutex here. | |
690 | * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming. | |
691 | (pwdgrp::load): Set initialized state to true rather than setting state | |
692 | to loaded. | |
693 | ||
984864e9 CF |
694 | 2003-01-21 Christopher Faylor <cgf@redhat.com> |
695 | ||
89f7e8d1 | 696 | * include/cygwin/version.h: Bump DLL minor number. |
984864e9 | 697 | |
d8cde3a3 CF |
698 | 2003-01-21 Pierre Humblet <pierre.humblet@ieee.org> |
699 | ||
700 | * path.h (etc::change_possible): Revert the type to bool. | |
701 | (etc::set_last_modified): Remove obsolete function. | |
702 | * path.cc (etc::change_possible): Revert type to bool. | |
703 | (etc::test_file_change): Do not test for negative values of | |
704 | change_possible and do not set it to -res. | |
705 | (etc::dir_changed): When the handle is NULL, call memset instead of | |
09a88426 CF |
706 | test_file_changed. When the handle is invalid, return true. Detect |
707 | filename change in /etc. | |
d8cde3a3 | 708 | (etc::file_changed): Remove unneeded check for !fn[n]. |
33de631b | 709 | * uinfo.cc (pwdgrp::load): Eliminate spurious setting of fh to NULL. |
b99b804b | 710 | * pwdgrp.h (pwdgrp::operator =): Eliminate. |
d8cde3a3 | 711 | |
7905c4f1 CF |
712 | 2003-01-19 Christopher Faylor <cgf@redhat.com> |
713 | ||
714 | * pwdgrp.h (etc): Move to path.h. | |
715 | (pwdgrp::max_lines): New field. | |
716 | (pwdgrp::curr_lines): New field. | |
717 | (pwdgrp::pwdgrp_buf): Ditto. | |
718 | (pwdgrp_buf_elem_size): Ditto. | |
719 | (pwdgrp_parse): Ditto. | |
720 | (pwdgrp::gets): Just declare here. | |
721 | (pwdgrp::load): Ditto. Just take one argument. | |
722 | (pwdgrp::load): Define overloaded function accepting passwd buf. | |
723 | (pwdgrp::load): Define overloaded function accepting group buf. | |
724 | * grp.cc: Use pwdgrp elements rather than standalone static variables | |
725 | throughout. | |
726 | (curr_lines): Eliminate. | |
727 | (max_lines): Ditto. | |
728 | (add_grp_line): Ditto. | |
729 | (parse_grp): Define as returning boolean. Accept void * arg and line | |
730 | count. Coerce first argument into __group32 buf reference. Increment | |
731 | curr_line as appropriate. | |
732 | (read_etc_group): Pass pwdgrp buffer to gr.load. | |
733 | * passwd.cc: Use pwdgrp elements rather than standalone static variables | |
734 | throughout. | |
735 | (curr_lines): Eliminate. | |
736 | (max_lines): Ditto. | |
737 | (add_grp_line): Ditto. | |
738 | (parse_passwd): Define as returning boolean. Accept void * arg and line | |
739 | count. Coerce first argument into passwd buf reference. Increment | |
740 | curr_line as appropriate. | |
741 | (read_etc_group): Pass pwdgrp buffer to pr.load. | |
742 | * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than | |
743 | zero. | |
744 | (etc::last_modified): Ditto. | |
745 | (etc::change_possible): Ditto. Renamed from sawchange. Change to | |
746 | signed char since elements are now tri-state. | |
747 | (etc::init): Assume "handle" is 1 based rather than 0. | |
748 | (etc::test_file_change): New function. Sets change_possible based on | |
749 | file date comparison. | |
750 | (etc::dir_changed): Check file states immediately after changed_h is | |
751 | initialized to avoid a race. | |
752 | (etc::file_changed): Use test_file_change to detect if file needs to be | |
753 | updated. | |
754 | * path.h (etc): Move class here from pwdgrp.h. | |
7905c4f1 CF |
755 | * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions |
756 | here. | |
757 | (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr. | |
758 | (pwdgrp::add_line): New function. | |
759 | (pwdgrp::load): Call generic add_line function which will call correct | |
760 | parser. | |
761 | ||
4c6a3e50 CF |
762 | 2003-01-17 Christopher Faylor <cgf@redhat.com> |
763 | ||
764 | * cygheap.cc: Change most 'int's to 'unsigned's. | |
765 | (_cmalloc): Only check for size of malloced region when calculating | |
97d2bc79 | 766 | bucket. Add overhead when performing the sbrk. Previous change broke |
4c6a3e50 CF |
767 | _crealloc. |
768 | ||
e9152439 CF |
769 | 2003-01-17 Christopher Faylor <cgf@redhat.com> |
770 | ||
771 | * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator. | |
772 | * grp.cc: Change most statics to NO_COPY throughout. | |
773 | * passwd.cc: Ditto. | |
774 | ||
775 | 2003-01-17 Christopher Faylor <cgf@redhat.com> | |
776 | ||
777 | * pwdgrp.h: Change some BOOLs to bools. | |
778 | (pwdgrp::pwdgrp): Remove unneeded constructor. | |
779 | * passwd.cc: Change BOOL to bool throughout. | |
780 | ||
afa378e7 CV |
781 | 2003-01-17 Corinna Vinschen <corinna@vinschen.de> |
782 | ||
783 | * cygwin.din: Add strerror_r. | |
784 | * include/cygwin/version.h: Bump API minor number. | |
785 | ||
1de6f431 CF |
786 | 2003-01-17 Christopher Faylor <cgf@redhat.com> |
787 | ||
788 | * uinfo.cc (etc::dir_changed): Don't print a warning if can't open | |
789 | /etc, unless debugging. | |
790 | ||
d8cde3a3 | 791 | 2003-01-17 Pierre Humblet <pierre.humblet@ieee.org> |
14ea5029 CF |
792 | |
793 | * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name | |
794 | "unknown" to "mkgroup". | |
795 | (internal_getgrgid): Do not return default in nontsec case. | |
796 | (internal_getgroups): Add argument srchsid and look for it in groups if | |
797 | not NULL. | |
798 | * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use | |
799 | same default uid for Win95 and NT. Call cygheap_user::ontherange to | |
800 | initialize HOME. | |
801 | ||
14ea5029 CF |
802 | 2003-01-16 Christopher Faylor <cgf@redhat.com> |
803 | ||
804 | * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc. | |
805 | * cygheap.h (init_cygheap::etc_changed_h): Remove. | |
806 | (init_cygheap::etc_changed): Ditto. | |
807 | * grp.cc (group_state): Remove. Use gr instead throughout. | |
808 | (gr): Define as class pwdgrp. | |
809 | (read_etc_group): Remove gr definition. Remove calls to | |
810 | set_last_modified and close. Pass add_grp to gr.load to load file. | |
811 | * passwd.cc (passwd_state): Remove. Use pr instead, throughout. | |
812 | (pr): Define as class pwdgrp. | |
813 | (read_etc_passwd): Remove pr definition. Remove calls to | |
814 | set_last_modified and close. Pass add_pwd_line to pr.load to load | |
815 | file. | |
816 | * pwdgrp.h (etc): New helper class for pwdgrp. | |
817 | (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove | |
818 | file_w32 and last_modified fields. | |
819 | (pwdgrp::set_last_modified): Remove. | |
820 | (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to | |
821 | etc::file_changed. | |
822 | (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc | |
823 | scanning. Close file handle after reading buffer into memory. Parse | |
824 | buffer by calling second argument. | |
825 | (pwdgrp::gets): Reorganize slightly to rely on eptr starting at | |
5304bcdf | 826 | beginning of buffer. |
14ea5029 CF |
827 | (pwdgrp::close): Remove. |
828 | * uinfo.cc (etc::dir_changed): New function. | |
829 | (etc::init): Ditto. | |
830 | (etc::file_changed): Ditto. | |
831 | (etc::set_last_modified): Ditto. | |
832 | ||
41429bc9 CV |
833 | 2003-01-16 Jason Tishler <jason@tishler.net> |
834 | ||
835 | * mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of | |
836 | ReadProcessMemory() error codes that trigger a retry with temporary | |
837 | PAGE_READONLY access. Note that this can occur on NT 4.0. | |
838 | ||
18813254 CF |
839 | 2003-01-15 Christopher Faylor <cgf@redhat.com> |
840 | ||
841 | * path.cc (normalize_posix_path): Convert win32 path separators to | |
842 | slashes when full path is specified. | |
843 | ||
77cb0c56 CF |
844 | 2003-01-15 Pierre Humblet <pierre.humblet@ieee.org> |
845 | ||
846 | * cmalloc.cc (_cmalloc): Fix memory leak. | |
847 | ||
ce542f78 CV |
848 | 2003-01-15 Corinna Vinschen <corinna@vinschen.de> |
849 | ||
850 | * autoload.cc: Fix copyright date. | |
851 | * fhandler_dsp.cc: Ditto. | |
852 | * mmap.cc: Ditto. | |
853 | * net.cc: Ditto. | |
854 | * ntdll.h: Ditto. | |
855 | * signal.cc: Ditto. | |
856 | * syscalls.cc: Ditto. | |
857 | * uname.cc: Ditto. | |
858 | * wait.cc: Ditto. | |
859 | ||
15996b6f CV |
860 | 2003-01-14 Corinna Vinschen <corinna@vinschen.de> |
861 | ||
862 | * mmap.cc (fixup_mmaps_after_fork): Copy protection to child process. | |
863 | Change ambiguous debug output. | |
864 | ||
857b65dd CV |
865 | 2003-01-14 Corinna Vinschen <corinna@vinschen.de> |
866 | ||
867 | * mmap.cc (mmap_record::access): Change argument type to caddr_t | |
868 | for strictness. | |
869 | (mprotect): Protect against calling VirtualProtect() for shared | |
870 | pages on 9x/Me. | |
871 | (fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to | |
872 | change protection of parent page to PAGE_READONLY, then try again. | |
873 | Revert protection afterwards. | |
874 | ||
e14328f4 TP |
875 | 2003-01-14 Thomas Pfaff <tpfaff@gmx.net> |
876 | ||
877 | * syscalls.cc (system): Add pthread_testcancel call. | |
878 | * thread.cc: Update list of cancellation points. | |
879 | ||
4a3584c8 TP |
880 | 2003-01-14 Thomas Pfaff <tpfaff@gmx.net> |
881 | ||
882 | * wait.cc: Include thread.h | |
883 | (wait4): Add pthread_testcancel call. | |
884 | Wait for child process and cancellation event. | |
885 | * thread.cc: Update list of cancellation points. | |
886 | ||
7ec66a2c TP |
887 | 2003-01-14 Thomas Pfaff <tpfaff@gmx.net> |
888 | ||
889 | * signal.cc (sleep): Add pthread_testcancel call. | |
890 | Wait for signal and cancellation event. | |
891 | (usleep): Ditto. | |
892 | ||
893 | 2003-01-14 Thomas Pfaff <tpfaff@gmx.net> | |
3457ce4d TP |
894 | |
895 | * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call. | |
896 | Wait for signal and cancellation event. | |
897 | * thread.cc: Update list of cancellation points. | |
898 | ||
2673d5f2 CF |
899 | 2003-01-14 David Huang <davehzhr@hotmail.com> |
900 | ||
901 | * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for | |
902 | SNDCTL_DSP_GETFMTS. | |
903 | ||
9f0d3f37 CF |
904 | 2003-01-12 Christopher Faylor <cgf@redhat.com> |
905 | ||
906 | * ntdll.h: Fix typo. | |
907 | ||
7f129d87 CV |
908 | 2003-01-12 Corinna Vinschen <corinna@vinschen.de> |
909 | ||
910 | * uname.cc (uname): Use cygwin_gethostname() to retrieve hostname. | |
911 | ||
ab2dbccc CV |
912 | 2003-01-12 Pierre Humblet <pierre.humblet@ieee.org> |
913 | ||
914 | * sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard. | |
915 | (setacl): Start the search for a matching default at the next entry. | |
916 | Invalidate the type of merged entries instead of clearing it. | |
917 | Use well_known_creator for default owner and owning group and do | |
918 | not try to merge non-default and default entries in these cases. | |
919 | (getacl): Recognize well_known_creator for default owner and group. | |
920 | (acl_worker): Improve errno settings and streamline the nontsec case. | |
921 | * security.cc (write_sd): Remove the call to set_process_privilege. | |
922 | (alloc_sd): If the owner changes, call set_process_privilege and return | |
923 | immediately on failure. Change inheritance rules: on new directories add | |
924 | inherit only allow ACEs for creator_owner, creator_group and everyone. | |
925 | Preserve all inheritances through chmod and chown calls. Introduce | |
926 | isownergroup to implement the uid == gid case, to keep the inheritance | |
927 | code simple. Do not initialize owner_sid and group_sid and stop using | |
928 | the variable psd. | |
929 | ||
68115c74 CF |
930 | 2003-01-10 Christopher Faylor <cgf@redhat.com> |
931 | ||
932 | * net.cc: Use gethostname define from winsock2.h. | |
933 | ||
e3abf986 CF |
934 | 2003-01-10 Christopher Faylor <cgf@redhat.com> |
935 | ||
936 | * path.cc: Unrevert below reversion except for | |
937 | mount_info::conv_to_posix_path part. | |
938 | ||
df2caa88 CV |
939 | 2003-01-10 Corinna Vinschen <corinna@vinschen.de> |
940 | ||
941 | * path.cc: Revert patch from 2003-01-09 to normalize a windows path | |
942 | rather than converting to posix. | |
943 | ||
dc8d11f5 CV |
944 | 2003-01-10 Corinna Vinschen <corinna@vinschen.de> |
945 | ||
946 | * autoload.cc (gethostname): Make call optional, return 1 if function | |
947 | can't get loaded. | |
948 | * net.cc (cygwin_gethostname): Call GetComputerName if return value | |
949 | of gethostname is non-zero. | |
950 | ||
70d61f30 CV |
951 | 2003-01-10 Charles Wilson <cwilson@ece.gatech.edu> |
952 | ||
8735f49f | 953 | * cygwin.din: Add asprintf and vasprintf, as well as the reentrant |
70d61f30 | 954 | versions and underscore variants. |
8735f49f | 955 | * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR. |
70d61f30 | 956 | |
a7711767 CV |
957 | 2003-01-10 Corinna Vinschen <corinna@vinschen.de> |
958 | ||
959 | * net.cc (cygwin_gethostname): Fix call to wsock function gethostname. | |
960 | ||
d5223b2b CF |
961 | 2003-01-09 Christopher Faylor <cgf@redhat.com> |
962 | ||
963 | * cygthread.cc (cygthread::cygthread): Be more noisy about odd | |
964 | condition. | |
965 | * miscfuncs.cc (low_priority_sleep): Sleep in regular priority if | |
966 | that's what we're currently running at. | |
967 | ||
65f207e8 TP |
968 | 2003-01-09 Thomas Pfaff <tpfaff@gmx.net> |
969 | ||
970 | * include/semaphore.h: Modify typedef for sem_t. | |
971 | * include/cygwin/types.h: Modify typedefs for pthread_t, | |
972 | pthread_mutex_t, pthread_key_t, pthread_attr_t, | |
973 | pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t, | |
974 | pthread_rwlock_t and pthread_rwlockattr_t. | |
975 | ||
09cbb9d6 TP |
976 | 2003-01-09 Thomas Pfaff <tpfaff@gmx.net> |
977 | ||
978 | * thread.h (WAIT_CANCELED): New define. | |
979 | (pthread::cancelable_wait): New static method. | |
980 | * thread.cc (pthread::cancelable_wait): Implement. | |
981 | (semaphore::Wait): Wait on semaphore and thread cancellation. | |
982 | (pthread::join): Wait on joined thread and thread cancellation. | |
983 | (semaphore::wait): Add testcancel to check for thread | |
984 | cancellation even if the semaphore is available. | |
985 | ||
5d68d1de TP |
986 | 2003-01-09 Thomas Pfaff <tpfaff@gmx.net> |
987 | ||
988 | * include/pthread.h: Add define for errorchecking mutexes. | |
989 | Change default mutex type. | |
990 | * thread.cc (pthread_cond::TimedWait): Update mutex unlock | |
991 | calls. | |
992 | (pthread_mutex::pthread_mutex): New implement. | |
993 | (pthread_mutex::~pthread_mutex): Ditto. | |
994 | (pthread_mutex::Lock): Ditto. | |
995 | (pthread_mutex::TryLock): Ditto. | |
996 | (pthread_mutex::UnLock): Ditto. | |
997 | (pthread_mutex::Destroy): Implement new method. | |
998 | (pthread_mutex::SetOwner): Ditto. | |
999 | (pthread_mutex::LockRecursive): Ditto. | |
1000 | (pthread_mutex::fixup_after_fork): Restore locking state after | |
1001 | fork. | |
1002 | (__pthread_mutex_lock): Return pthread_mutex::Lock errorcode. | |
1003 | (__pthread_mutex_trylock): Return pthread_mutex::TryLock | |
1004 | errorcode. | |
1005 | (__pthread_mutex_unlock): Return pthread_mutex::UnLock | |
1006 | errorcode. | |
1007 | (__pthread_mutex_destroy): Call pthread_mutex::Destroy to | |
3457ce4d | 1008 | destroy mutex. |
5d68d1de TP |
1009 | (__pthread_mutexattr_settype): Allow errorchecking and recursive |
1010 | types. | |
1011 | * thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define. | |
1012 | (pthread_mutex::criticalsection): Remove. | |
1013 | (pthread_mutex::lock_counter): New member. | |
1014 | (pthread_mutex::recursion_counter): Ditto. | |
1015 | (pthread_mutex::owner): Ditto. | |
1016 | (pthread_mutex::type): Ditto. | |
1017 | (pthread_mutex::Destroy): New method. | |
1018 | (pthread_mutex::SetOwner): Ditto. | |
1019 | (pthread_mutex::LockRecursive): Ditto. | |
1020 | ||
ed9fe455 TP |
1021 | 2003-01-09 Thomas Pfaff <tpfaff@gmx.net> |
1022 | ||
1023 | * pthread.cc (pthread_cond_init): Use new pthread_cond::init. | |
1024 | * thread.cc: Some white spaces cleanups. | |
1025 | Change __pthread_cond_init to pthread_cond::init throughout. | |
1026 | (nativeMutex): Move class methods outside pthread_mutex. | |
1027 | (MTinterface::Init): Initialize pthread_cond init lock. | |
1028 | (pthread_cond::condInitializationLock): Instantiate. | |
1029 | (pthread_cond::initMutex): New Method. | |
1030 | (pthread_cond::isGoodInitializerOrBadObject): Ditto. | |
1031 | * thread.h: Some white spaces cleanups. | |
1032 | (nativeMutex): Move class declaration outside pthread_mutex. | |
1033 | (pthread_cond::condInitializationLock): New static member. | |
1034 | (pthread_cond::initMutex): New Method. | |
1035 | (pthread_cond::isGoodInitializerOrBadObject): Ditto. | |
1036 | (__pthread_cond_init): Remove prototype. | |
1037 | ||
93353aee CV |
1038 | 2003-01-09 Corinna Vinschen <corinna@vinschen.de> |
1039 | ||
1040 | * fhandler_disk_file.cc (num_entries): Return 2 as link count if | |
1041 | directory unreadable. | |
1042 | ||
3eb27a4e CV |
1043 | 2003-01-09 Corinna Vinschen <corinna@vinschen.de> |
1044 | ||
1045 | * security.cc (get_nt_attribute): Always return -1 when read_sd() | |
1046 | fails. | |
1047 | (get_file_attribute): Set permissions to 0 and owner/group to -1 | |
1048 | if security descriptor is unreadable. | |
1049 | ||
85ba109d CF |
1050 | 2003-01-09 Christopher Faylor <cgf@redhat.com> |
1051 | ||
1052 | Use isdirsep rather than SLASH_P throughout. | |
1053 | * path.cc (iscygdrive): Disallow /cygdrive\x. | |
1054 | (normalize_posix_path): "Normalize" a windows path, if detected, rather | |
1055 | than converting to posix. | |
1056 | ||
1057 | 2003-01-06 Troy Curtiss <troyc@usa.net> | |
1058 | ||
1059 | * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and | |
1060 | capability checking for B230400 bitrate. | |
1061 | (fhandler_serial::tcgetattr): Add support for B230400 bitrate. | |
1062 | * include/sys/termios.h: Add B230400 definition for Posix support of | |
1063 | 230.4Kbps. | |
1064 | ||
cbdbe9d7 CF |
1065 | 2003-01-05 Christopher Faylor <cgf@redhat.com> |
1066 | ||
1067 | * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just | |
1068 | lock when leaving. | |
1069 | ||
f3afe99b CF |
1070 | 2003-01-03 Christopher Faylor <cgf@redhat.com> |
1071 | ||
1072 | * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork | |
1073 | cleanup needed. | |
1074 | * dtable.cc (dtable::vfork_parent_restore): Remove assertion. | |
1075 | * pipe.cc (fhandler_pipe::close): Don't close read_state during | |
1076 | fork_fixup since it wasn't inherited. | |
1077 | ||
2665fb15 CF |
1078 | 2003-01-01 Christopher Faylor <cgf@redhat.com> |
1079 | ||
1080 | * passwd.cc (getpwuid_r32): Revert previous change. | |
1081 | ||
8619b42b CF |
1082 | 2003-01-01 Christopher Faylor <cgf@redhat.com> |
1083 | ||
1084 | * sysconf.cc (sysconf): Return arbitrary values for | |
1085 | _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX. | |
1086 | ||
1087 | * passwd.cc (getpwuid_r32): Add uid/gid fields to size check | |
1088 | calculation. | |
1089 |