]> sourceware.org Git - newlib-cygwin.git/blob - winsup/cygwin/ChangeLog
* security.h (class cygpsid): New class.
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
1 2003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
2
3 * security.h (class cygpsid): New class.
4 (class cygsid): Use cygpsid as base. Remove members psid, get_id,
5 get_uid, get_gid, string, debug_printf and the == and != operators.
6 (cygsidlist::clear_supp): Only do work if setgroups has been called.
7 * sec_helper.cc: Define sid_auth NO_COPY.
8 (cygpsid::operator==): New operator.
9 (cygpsid::get_id): New function.
10 (cygpsid::string): New function.
11 (cygsid::string): Delete.
12 (cygsid::get_id): Delete.
13 * pwdgrp.h: Change arguments of internal_getpwsid,
14 internal_getgrsid and internal_getgroups to cygpsid.
15 * passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
16 * grp.cc (internal_getgrsid): Ditto.
17 (internal_getgroups): Ditto.
18
19 2003-02-03 Christopher Faylor <cgf@redhat.com>
20
21 Eliminate most unneeded this-> pointers throughout.
22
23 2003-02-03 Pierre Humblet <pierre.humblet@ieee.org>
24
25 * security.h: Add third argument to set_process_privilege.
26 * autoload.cc: Add OpenThreadToken.
27 * sec_helper.cc (set_process_privilege): Add and use use_thread
28 argument.
29 * security.cc (alloc_sd): Modify call to set_process_privilege.
30 Remember the result in each process. If failed and file owner is not
31 the user, fail.
32
33 2003-02-03 Corinna Vinschen <corinna@vinschen.de>
34
35 * fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
36 length and don't set errno in case of WSAEMSGSIZE error.
37 (fhandler_socket::recvmsg): Ditto.
38
39 2003-02-01 Christopher Faylor <cgf@redhat.com>
40
41 * grp.cc (getgrent32): Only refresh group entries when at beginning.
42 (internal_getgrsid): Only refresh if uninitialized.
43 (internal_getgrent): Ditto.
44 * passwd.cc (getpwent): Only refresh passwd entries when at beginning.
45 (pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
46 (internal_getpwsid): Only refresh if uninitialized.
47 (getpass): No need to refresh passwd data here.
48 * pwdgrp.h (refresh): Eliminate default.
49
50 2003-01-31 Christopher Faylor <cgf@redhat.com>
51
52 * dlfcn.cc (dlerror): Only report load errors once per error.
53
54 2003-01-31 Christopher Faylor <cgf@redhat.com>
55
56 * fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
57 of res.
58
59 * termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
60
61 2003-01-31 Troy Curtiss <troyc@usa.net>
62
63 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking
64 so that if any Win32 SetComm*() calls fail, errno gets set to EINVAL
65 and tcsetattr() returns -1. Catch invalid bitrates, mostly. If baud
66 rate setting is B0, just drop DTR and leave Win32 DCB bitrate as-is
67 since 0 is not a valid Win32 setting.
68 (fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as
69 B0, otherwise get it from the DCB.
70
71 2003-01-31 Christopher Faylor <cgf@redhat.com>
72
73 * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from
74 Pierre Humblet).
75 * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already
76 have lock since that means we are in the process of reading the file.
77
78 2003-01-31 Jason Tishler <jason@tishler.net>
79
80 * shared.cc (shared_info::heap_chunk_size): Use correct variable when
81 reading HKLM.
82
83 2003-01-30 Christopher Faylor <cgf@redhat.com>
84
85 * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one
86 error when inspecting path.
87
88 2003-01-29 Christopher Faylor <cgf@redhat.com>
89
90 * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT
91 behavior.
92
93 2003-01-28 Corinna Vinschen <corinna@vinschen.de>
94
95 * fhandler_socket.cc (fhandler_socket::accept): On successful execution
96 set connection state of returned socket to CONNECTED.
97
98 2003-01-27 Christopher Faylor <cgf@redhat.com>
99
100 * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about
101 non-numeric fields.
102
103 2003-01-26 Christopher Faylor <cgf@redhat.com>
104
105 * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no
106 longer a valid return from next_str.
107 (pwdgrp::add_line): Duh. Revert to use strchr.
108
109 2003-01-26 Christopher Faylor <cgf@redhat.com>
110
111 * string.h (strechr): New function.
112 * uinfo.cc (pwdgrp::next_str): Search only for input char in string.
113 Return EOS on failure. Don't check for NULL since it shouldn't be
114 possible.
115 (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
116 (pwdgrp::next_num): Pass explicit separator character to next_str.
117 * grp.cc (pwdgrp::parse_group): Ditto.
118 * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage
119 input.
120 * pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
121
122 2003-01-26 Christopher Faylor <cgf@redhat.com>
123
124 * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
125 CreateFile failure.
126
127 2003-01-26 Christopher Faylor <cgf@redhat.com>
128
129 * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The
130 structure should always be completely filled out.
131 * grp.cc (pwdgrp::parse_group): Ditto.
132
133 2003-01-26 Christopher Faylor <cgf@redhat.com>
134
135 * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
136 gr_mem.
137
138 2003-01-26 Christopher Faylor <cgf@redhat.com>
139
140 * include/sys/strace.h (paranoid_printf): Define as not being part of
141 "all" output.
142
143 2003-01-25 Christopher Faylor <cgf@redhat.com>
144
145 * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns
146 true/false if parse operation succeeded.
147 (pwdgrp::reparse): Remove.
148 (pwdgrp::raw_ptr): New function. Returns pointer in line.
149 (pwdgrp::next_num): New functions for parsing other than unsigned long.
150 * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior.
151 Don't fill in fields with NULL and assign empty gr_mem to known pointer
152 rather than doing a pointless calloc. Streamline gr_mem parsing.
153 Don't increment curr_lines here.
154 * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num.
155 Don't increment curr_lines here.
156 * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
157 (pwdgrp::reparse): Remove.
158 (pwdgrp::next_num): Rename from next_int. Return bool indicating
159 success of parse, argument returns value parsed.
160 (pwdgrp::add_line): Increment curr_lines here on successful parse.
161 (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report
162 it here.
163
164 2003-01-25 Christopher Faylor <cgf@redhat.com>
165
166 * pwdgrp.cc (pwdgrp::reparse): Declare.
167 * uinfo.cc (pwdgrp::reparse): Define.
168 * grp.cc (pwdgrp::parse_group): Use reparse.
169
170 2003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
171
172 * syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
173 update the euid and call cygheap->user.set_name. Remove special
174 handling of ILLEGAL_UID.
175 (setgid32): Add a debug_printf. On Win95, always set the egid.
176 Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
177 * child_info.h (class cygheap_exec_info): Remove uid.
178 * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
179 * dcrto.cc (dll_crt0_1): Always call uinfo_init.
180 * uinfo.cc (uinfo_init): Reorganize and close handle if needed.
181 (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
182
183 2003-01-24 Christopher Faylor <cgf@redhat.com>
184
185 * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset
186 scroll region if size changes.
187
188 2003-01-24 Pierre Humblet <pierre.humblet@ieee.org>
189 Jason Tishler <jason@tishler.net>
190
191 * cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
192 * syscalls.cc (setreuid32): New function.
193 (setreuid): Ditto.
194 (setregid32): Ditto.
195 (setregid): Ditto.
196 * include/cygwin/version.h: Bump API minor number.
197
198 2003-01-23 Christopher Faylor <cgf@redhat.com>
199
200 * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
201
202 2003-01-23 Christopher Faylor <cgf@redhat.com>
203
204 * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member
205 instead. Use next_str and next_int to parse arguments.
206 * passwd.cc (pwdgrp::parse_passwd): Ditto.
207 (grab_string): Eliminate.
208 (grab_int): Ditto.
209 * pwdgrp.h (pwdgrp::parse): Eliminate input arg.
210 (pwdgrp::parse_passwd): Reflect above change.
211 (pwdgrp::parse_group): Reflect above change.
212 (pwdgrp::next_str): New function.
213 (pwdgrp::next_int): Ditto.
214 (pwdgrp::gets): Eliminate.
215 * uinfo.cc (pwdgrp::next_str): New function.
216 (pwdgrp::next_int): Ditto.
217 (pwdgrp::add_line): Subsume gets.
218 (pwdgrp::gets): Eliminate.
219 (pwdgrp::load): Just call add_line to parse input buffer.
220
221 2003-01-22 Thomas Pfaff <tpfaff@gmx.net>
222
223 * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from
224 2003-01-09 mutex patch.
225 (PTHREAD_MUTEX_ERRORCHECK): Ditto.
226
227 2003-01-22 Corinna Vinschen <corinna@vinschen.de>
228
229 * cygrun.c: Move from here to ../testsuite.
230 * Makefile.in: Remove cygrun.exe dependencies.
231
232 2003-01-21 Jason Tishler <jason@tishler.net>
233
234 * cygwin.din: Export nanosleep().
235 * signal.cc (nanosleep): New function.
236 (sleep): Move old functionality to nanosleep(). Call nanosleep().
237 (usleep): Remove old functionality. Call nanosleep().
238 * include/cygwin/version.h: Bump API minor number.
239
240 2003-01-21 Christopher Faylor <cgf@redhat.com>
241
242 * grp.cc: Call gr.refresh() rather than doing isunitialized tests
243 throughout.
244 (gr): Use constructor (sigh).
245 (pwdgrp::parse_group): Rename from parse_grp.
246 (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load
247 with a single argument.
248 * passwd.cc: Call pr.refresh() rather than doing isunitialized tests
249 throughout.
250 (pr): Use constructor (sigh).
251 (pwdgrp::parse_passwd): Rename from "parse_pwd".
252 (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load
253 with a single argument.
254 * pwdgrp.h (pwdgrp_state): Eliminate.
255 (pwdgrp): Reflect above renamings.
256 (pwdgrp::etc_ix): Rename from pwd_ix.
257 (pwdgrp::read): New element.
258 (pwdgrp::lock): New element.
259 (pwdgrp::refresh): New function.
260 (pwdgrp::load): Eliminate variations which take buffer arguments.
261 (pwdgrp::pwdgrp): New constructors. Initialize mutex here.
262 * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
263 (pwdgrp::load): Set initialized state to true rather than setting state
264 to loaded.
265
266 2003-01-21 Christopher Faylor <cgf@redhat.com>
267
268 * include/cygwin/version.h: Bump DLL minor number.
269
270 2003-01-21 Pierre Humblet <pierre.humblet@ieee.org>
271
272 * path.h (etc::change_possible): Revert the type to bool.
273 (etc::set_last_modified): Remove obsolete function.
274 * path.cc (etc::change_possible): Revert type to bool.
275 (etc::test_file_change): Do not test for negative values of
276 change_possible and do not set it to -res.
277 (etc::dir_changed): When the handle is NULL, call memset instead of
278 test_file_changed. When the handle is invalid, return true. Detect
279 filename change in /etc.
280 (etc::file_changed): Remove unneeded check for !fn[n].
281 * uinfo.cc (pwdgrp::load): Eliminate spurious setting of fh to NULL.
282 * pwdgrp.h (pwdgrp::operator =): Eliminate.
283
284 2003-01-19 Christopher Faylor <cgf@redhat.com>
285
286 * pwdgrp.h (etc): Move to path.h.
287 (pwdgrp::max_lines): New field.
288 (pwdgrp::curr_lines): New field.
289 (pwdgrp::pwdgrp_buf): Ditto.
290 (pwdgrp_buf_elem_size): Ditto.
291 (pwdgrp_parse): Ditto.
292 (pwdgrp::gets): Just declare here.
293 (pwdgrp::load): Ditto. Just take one argument.
294 (pwdgrp::load): Define overloaded function accepting passwd buf.
295 (pwdgrp::load): Define overloaded function accepting group buf.
296 * grp.cc: Use pwdgrp elements rather than standalone static variables
297 throughout.
298 (curr_lines): Eliminate.
299 (max_lines): Ditto.
300 (add_grp_line): Ditto.
301 (parse_grp): Define as returning boolean. Accept void * arg and line
302 count. Coerce first argument into __group32 buf reference. Increment
303 curr_line as appropriate.
304 (read_etc_group): Pass pwdgrp buffer to gr.load.
305 * passwd.cc: Use pwdgrp elements rather than standalone static variables
306 throughout.
307 (curr_lines): Eliminate.
308 (max_lines): Ditto.
309 (add_grp_line): Ditto.
310 (parse_passwd): Define as returning boolean. Accept void * arg and line
311 count. Coerce first argument into passwd buf reference. Increment
312 curr_line as appropriate.
313 (read_etc_group): Pass pwdgrp buffer to pr.load.
314 * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than
315 zero.
316 (etc::last_modified): Ditto.
317 (etc::change_possible): Ditto. Renamed from sawchange. Change to
318 signed char since elements are now tri-state.
319 (etc::init): Assume "handle" is 1 based rather than 0.
320 (etc::test_file_change): New function. Sets change_possible based on
321 file date comparison.
322 (etc::dir_changed): Check file states immediately after changed_h is
323 initialized to avoid a race.
324 (etc::file_changed): Use test_file_change to detect if file needs to be
325 updated.
326 * path.h (etc): Move class here from pwdgrp.h.
327 * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions
328 here.
329 (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
330 (pwdgrp::add_line): New function.
331 (pwdgrp::load): Call generic add_line function which will call correct
332 parser.
333
334 2003-01-17 Christopher Faylor <cgf@redhat.com>
335
336 * cygheap.cc: Change most 'int's to 'unsigned's.
337 (_cmalloc): Only check for size of malloced region when calculating
338 bucket. Add overhead when performing the sbrk. Previous change broke
339 _crealloc.
340
341 2003-01-17 Christopher Faylor <cgf@redhat.com>
342
343 * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
344 * grp.cc: Change most statics to NO_COPY throughout.
345 * passwd.cc: Ditto.
346
347 2003-01-17 Christopher Faylor <cgf@redhat.com>
348
349 * pwdgrp.h: Change some BOOLs to bools.
350 (pwdgrp::pwdgrp): Remove unneeded constructor.
351 * passwd.cc: Change BOOL to bool throughout.
352
353 2003-01-17 Corinna Vinschen <corinna@vinschen.de>
354
355 * cygwin.din: Add strerror_r.
356 * include/cygwin/version.h: Bump API minor number.
357
358 2003-01-17 Christopher Faylor <cgf@redhat.com>
359
360 * uinfo.cc (etc::dir_changed): Don't print a warning if can't open
361 /etc, unless debugging.
362
363 2003-01-17 Pierre Humblet <pierre.humblet@ieee.org>
364
365 * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
366 "unknown" to "mkgroup".
367 (internal_getgrgid): Do not return default in nontsec case.
368 (internal_getgroups): Add argument srchsid and look for it in groups if
369 not NULL.
370 * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use
371 same default uid for Win95 and NT. Call cygheap_user::ontherange to
372 initialize HOME.
373
374 2003-01-16 Christopher Faylor <cgf@redhat.com>
375
376 * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
377 * cygheap.h (init_cygheap::etc_changed_h): Remove.
378 (init_cygheap::etc_changed): Ditto.
379 * grp.cc (group_state): Remove. Use gr instead throughout.
380 (gr): Define as class pwdgrp.
381 (read_etc_group): Remove gr definition. Remove calls to
382 set_last_modified and close. Pass add_grp to gr.load to load file.
383 * passwd.cc (passwd_state): Remove. Use pr instead, throughout.
384 (pr): Define as class pwdgrp.
385 (read_etc_passwd): Remove pr definition. Remove calls to
386 set_last_modified and close. Pass add_pwd_line to pr.load to load
387 file.
388 * pwdgrp.h (etc): New helper class for pwdgrp.
389 (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove
390 file_w32 and last_modified fields.
391 (pwdgrp::set_last_modified): Remove.
392 (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
393 etc::file_changed.
394 (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc
395 scanning. Close file handle after reading buffer into memory. Parse
396 buffer by calling second argument.
397 (pwdgrp::gets): Reorganize slightly to rely on eptr starting at
398 beginning of buffer.
399 (pwdgrp::close): Remove.
400 * uinfo.cc (etc::dir_changed): New function.
401 (etc::init): Ditto.
402 (etc::file_changed): Ditto.
403 (etc::set_last_modified): Ditto.
404
405 2003-01-16 Jason Tishler <jason@tishler.net>
406
407 * mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
408 ReadProcessMemory() error codes that trigger a retry with temporary
409 PAGE_READONLY access. Note that this can occur on NT 4.0.
410
411 2003-01-15 Christopher Faylor <cgf@redhat.com>
412
413 * path.cc (normalize_posix_path): Convert win32 path separators to
414 slashes when full path is specified.
415
416 2003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
417
418 * cmalloc.cc (_cmalloc): Fix memory leak.
419
420 2003-01-15 Corinna Vinschen <corinna@vinschen.de>
421
422 * autoload.cc: Fix copyright date.
423 * fhandler_dsp.cc: Ditto.
424 * mmap.cc: Ditto.
425 * net.cc: Ditto.
426 * ntdll.h: Ditto.
427 * signal.cc: Ditto.
428 * syscalls.cc: Ditto.
429 * uname.cc: Ditto.
430 * wait.cc: Ditto.
431
432 2003-01-14 Corinna Vinschen <corinna@vinschen.de>
433
434 * mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
435 Change ambiguous debug output.
436
437 2003-01-14 Corinna Vinschen <corinna@vinschen.de>
438
439 * mmap.cc (mmap_record::access): Change argument type to caddr_t
440 for strictness.
441 (mprotect): Protect against calling VirtualProtect() for shared
442 pages on 9x/Me.
443 (fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
444 change protection of parent page to PAGE_READONLY, then try again.
445 Revert protection afterwards.
446
447 2003-01-14 Thomas Pfaff <tpfaff@gmx.net>
448
449 * syscalls.cc (system): Add pthread_testcancel call.
450 * thread.cc: Update list of cancellation points.
451
452 2003-01-14 Thomas Pfaff <tpfaff@gmx.net>
453
454 * wait.cc: Include thread.h
455 (wait4): Add pthread_testcancel call.
456 Wait for child process and cancellation event.
457 * thread.cc: Update list of cancellation points.
458
459 2003-01-14 Thomas Pfaff <tpfaff@gmx.net>
460
461 * signal.cc (sleep): Add pthread_testcancel call.
462 Wait for signal and cancellation event.
463 (usleep): Ditto.
464
465 2003-01-14 Thomas Pfaff <tpfaff@gmx.net>
466
467 * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call.
468 Wait for signal and cancellation event.
469 * thread.cc: Update list of cancellation points.
470
471 2003-01-14 David Huang <davehzhr@hotmail.com>
472
473 * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
474 SNDCTL_DSP_GETFMTS.
475
476 2003-01-12 Christopher Faylor <cgf@redhat.com>
477
478 * ntdll.h: Fix typo.
479
480 2003-01-12 Corinna Vinschen <corinna@vinschen.de>
481
482 * uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
483
484 2003-01-12 Pierre Humblet <pierre.humblet@ieee.org>
485
486 * sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
487 (setacl): Start the search for a matching default at the next entry.
488 Invalidate the type of merged entries instead of clearing it.
489 Use well_known_creator for default owner and owning group and do
490 not try to merge non-default and default entries in these cases.
491 (getacl): Recognize well_known_creator for default owner and group.
492 (acl_worker): Improve errno settings and streamline the nontsec case.
493 * security.cc (write_sd): Remove the call to set_process_privilege.
494 (alloc_sd): If the owner changes, call set_process_privilege and return
495 immediately on failure. Change inheritance rules: on new directories add
496 inherit only allow ACEs for creator_owner, creator_group and everyone.
497 Preserve all inheritances through chmod and chown calls. Introduce
498 isownergroup to implement the uid == gid case, to keep the inheritance
499 code simple. Do not initialize owner_sid and group_sid and stop using
500 the variable psd.
501
502 2003-01-10 Christopher Faylor <cgf@redhat.com>
503
504 * net.cc: Use gethostname define from winsock2.h.
505
506 2003-01-10 Christopher Faylor <cgf@redhat.com>
507
508 * path.cc: Unrevert below reversion except for
509 mount_info::conv_to_posix_path part.
510
511 2003-01-10 Corinna Vinschen <corinna@vinschen.de>
512
513 * path.cc: Revert patch from 2003-01-09 to normalize a windows path
514 rather than converting to posix.
515
516 2003-01-10 Corinna Vinschen <corinna@vinschen.de>
517
518 * autoload.cc (gethostname): Make call optional, return 1 if function
519 can't get loaded.
520 * net.cc (cygwin_gethostname): Call GetComputerName if return value
521 of gethostname is non-zero.
522
523 2003-01-10 Charles Wilson <cwilson@ece.gatech.edu>
524
525 * cygwin.din: Add asprintf and vasprintf, as well as the reentrant
526 versions and underscore variants.
527 * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
528
529 2003-01-10 Corinna Vinschen <corinna@vinschen.de>
530
531 * net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
532
533 2003-01-09 Christopher Faylor <cgf@redhat.com>
534
535 * cygthread.cc (cygthread::cygthread): Be more noisy about odd
536 condition.
537 * miscfuncs.cc (low_priority_sleep): Sleep in regular priority if
538 that's what we're currently running at.
539
540 2003-01-09 Thomas Pfaff <tpfaff@gmx.net>
541
542 * include/semaphore.h: Modify typedef for sem_t.
543 * include/cygwin/types.h: Modify typedefs for pthread_t,
544 pthread_mutex_t, pthread_key_t, pthread_attr_t,
545 pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t,
546 pthread_rwlock_t and pthread_rwlockattr_t.
547
548 2003-01-09 Thomas Pfaff <tpfaff@gmx.net>
549
550 * thread.h (WAIT_CANCELED): New define.
551 (pthread::cancelable_wait): New static method.
552 * thread.cc (pthread::cancelable_wait): Implement.
553 (semaphore::Wait): Wait on semaphore and thread cancellation.
554 (pthread::join): Wait on joined thread and thread cancellation.
555 (semaphore::wait): Add testcancel to check for thread
556 cancellation even if the semaphore is available.
557
558 2003-01-09 Thomas Pfaff <tpfaff@gmx.net>
559
560 * include/pthread.h: Add define for errorchecking mutexes.
561 Change default mutex type.
562 * thread.cc (pthread_cond::TimedWait): Update mutex unlock
563 calls.
564 (pthread_mutex::pthread_mutex): New implement.
565 (pthread_mutex::~pthread_mutex): Ditto.
566 (pthread_mutex::Lock): Ditto.
567 (pthread_mutex::TryLock): Ditto.
568 (pthread_mutex::UnLock): Ditto.
569 (pthread_mutex::Destroy): Implement new method.
570 (pthread_mutex::SetOwner): Ditto.
571 (pthread_mutex::LockRecursive): Ditto.
572 (pthread_mutex::fixup_after_fork): Restore locking state after
573 fork.
574 (__pthread_mutex_lock): Return pthread_mutex::Lock errorcode.
575 (__pthread_mutex_trylock): Return pthread_mutex::TryLock
576 errorcode.
577 (__pthread_mutex_unlock): Return pthread_mutex::UnLock
578 errorcode.
579 (__pthread_mutex_destroy): Call pthread_mutex::Destroy to
580 destroy mutex.
581 (__pthread_mutexattr_settype): Allow errorchecking and recursive
582 types.
583 * thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define.
584 (pthread_mutex::criticalsection): Remove.
585 (pthread_mutex::lock_counter): New member.
586 (pthread_mutex::recursion_counter): Ditto.
587 (pthread_mutex::owner): Ditto.
588 (pthread_mutex::type): Ditto.
589 (pthread_mutex::Destroy): New method.
590 (pthread_mutex::SetOwner): Ditto.
591 (pthread_mutex::LockRecursive): Ditto.
592
593 2003-01-09 Thomas Pfaff <tpfaff@gmx.net>
594
595 * pthread.cc (pthread_cond_init): Use new pthread_cond::init.
596 * thread.cc: Some white spaces cleanups.
597 Change __pthread_cond_init to pthread_cond::init throughout.
598 (nativeMutex): Move class methods outside pthread_mutex.
599 (MTinterface::Init): Initialize pthread_cond init lock.
600 (pthread_cond::condInitializationLock): Instantiate.
601 (pthread_cond::initMutex): New Method.
602 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
603 * thread.h: Some white spaces cleanups.
604 (nativeMutex): Move class declaration outside pthread_mutex.
605 (pthread_cond::condInitializationLock): New static member.
606 (pthread_cond::initMutex): New Method.
607 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
608 (__pthread_cond_init): Remove prototype.
609
610 2003-01-09 Corinna Vinschen <corinna@vinschen.de>
611
612 * fhandler_disk_file.cc (num_entries): Return 2 as link count if
613 directory unreadable.
614
615 2003-01-09 Corinna Vinschen <corinna@vinschen.de>
616
617 * security.cc (get_nt_attribute): Always return -1 when read_sd()
618 fails.
619 (get_file_attribute): Set permissions to 0 and owner/group to -1
620 if security descriptor is unreadable.
621
622 2003-01-09 Christopher Faylor <cgf@redhat.com>
623
624 Use isdirsep rather than SLASH_P throughout.
625 * path.cc (iscygdrive): Disallow /cygdrive\x.
626 (normalize_posix_path): "Normalize" a windows path, if detected, rather
627 than converting to posix.
628
629 2003-01-06 Troy Curtiss <troyc@usa.net>
630
631 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and
632 capability checking for B230400 bitrate.
633 (fhandler_serial::tcgetattr): Add support for B230400 bitrate.
634 * include/sys/termios.h: Add B230400 definition for Posix support of
635 230.4Kbps.
636
637 2003-01-05 Christopher Faylor <cgf@redhat.com>
638
639 * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just
640 lock when leaving.
641
642 2003-01-03 Christopher Faylor <cgf@redhat.com>
643
644 * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork
645 cleanup needed.
646 * dtable.cc (dtable::vfork_parent_restore): Remove assertion.
647 * pipe.cc (fhandler_pipe::close): Don't close read_state during
648 fork_fixup since it wasn't inherited.
649
650 2003-01-01 Christopher Faylor <cgf@redhat.com>
651
652 * passwd.cc (getpwuid_r32): Revert previous change.
653
654 2003-01-01 Christopher Faylor <cgf@redhat.com>
655
656 * sysconf.cc (sysconf): Return arbitrary values for
657 _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
658
659 * passwd.cc (getpwuid_r32): Add uid/gid fields to size check
660 calculation.
661
This page took 0.061013 seconds and 6 git commands to generate.