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