]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
* include/cygwin/version.h: Bump DLL minor number.
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
ad80bc42
CF
12003-02-08 Christopher Faylor <cgf@redhat.com>
2
3 * include/cygwin/version.h: Bump DLL minor number.
4
52003-02-07 Christopher Faylor <cgf@redhat.com>
6
7 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Bump down to 16MB thanks to below
8 changes.
9
4136fdb1
CV
102003-02-07 Corinna Vinschen <corinna@vinschen.de>
11
12 * mmap.cc (mmap_record::alloc_map): De-inline. Add offset and length
13 parameter. Only protect pages actually unused currently. Do job
14 of map_map() when initializing a map.
15 (mmap_record::map_map): Reduce functionality for the reuse case
16 of private anonymous mapping.
17 (mmap_record::fixup_map): Format change.
18 (list::add_record): Add offset and length parameter to call
19 mmap_record::alloc_map() correctly.
20 (mmap64): Rename `l' variable to `map_list'. Accomodate above changes.
21 (munmap): Rename `l' variable to `map_list'.
22 (msync): Ditto.
23 (fhandler_disk_file::mmap): Streamline code.
24 (mprotect): Ditto.
25 (fixup_mmaps_after_fork): Rename `l' variable to `map_list'.
26
49b84ce4
CF
272003-02-07 Vaclav Haisman <V.Haisman@sh.cvut.cz>
28 Christopher Faylor <cgf@redhat.com>
29
30 * exceptions.cc (try_to_debug): Set priority of current thread rather
31 than the main thread. Make busy waiting loop less busy. Restore
32 priority when function returns.
33
bc5b63ed
CF
342003-02-07 Christopher Faylor <cgf@redhat.com>
35
36 * malloc.cc (DEFAULT_MMAP_THRESHOLD): Set high to avoid mmaps.
37
382003-02-07 Christopher Faylor <cgf@redhat.com>
39
40 * pipe.cc (fhandler_pipe::close): Avoid extraneous this->.
41
1de8d164
CF
422003-02-06 Christopher Faylor <cgf@redhat.com>
43
44 * heap.cc (heap_init): Remove debugging code.
45
565e8015
CV
462003-02-06 Pierre Humblet <pierre.humblet@ieee.org>
47
48 * security.h: Introduce names UNKNOWN_UID and UNKNOWN_GID and delete
1de8d164 49 declaration of is_grp_member.
565e8015
CV
50 * uinfo.cc (internal_getlogin): Use UNKNOWN_GID.
51 * passwd.cc (pwdgrp::read_passwd): Use UNKNOWN_UID.
52 * grp.cc (pwdgrp::read_group): Change group name to provide better
53 feedback.
54 (getgrgid): Use gid16togid32.
55 * sec_helper.cc (is_grp_member): Delete.
56
d238c1b4
CF
572003-02-05 Christopher Faylor <cgf@redhat.com>
58
59 * path.cc: Change 'to_posix_p' to 'to_posix' throughout.
60 (conv_path_list_buf_size): Accommodate relative paths.
61
b7f52fe8
CF
622003-02-05 Christopher Faylor <cgf@redhat.com>
63
64 * path.cc (etc::dir_changed): Fix debug printf.
65
62cd433e
CV
662003-02-05 Corinna Vinschen <corinna@vinschen.de>
67
68 * sec_acl.cc (setacl): Move all permission settings to beginning of
69 loop. Set default rights to same values as in alloc_sd(). Set DELETE
70 for owner and default owner only if S_IWOTH is given.
71
722003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
73
74 * sec_acl.cc: Change all __aclent16_t to __aclent32_t except in
75 wrapper function definitions. Replace call to the aclXYZ functions by
76 calls aclXYZ32.
77 (searchace): Change type of third argument to __uid32_t and use
78 ILLEGAL_UID instead of -1;
79 (setacl): Remove some initializations. Only give STANDARD_RIGHTS_WRITE
80 for S_IWOTH. Replace -1 by ILLEGAL_UID.
81 (getacl): Change type of owner_sid, group_sid and ace_sid to cygpsid.
82 In last else clause, suppress second call to ace_sid.get_id and use
83 TRUE in first call. Replace EqualSid by ==.
84 (acl_access): Call internal_getgroups in USER and GROUP cases.
85 (acecmp: Define static.
86 (acl32): Create from 16 bit type.
87 (facl32): Ditto.
88 (lacl32): Ditto.
89 (aclcheck32): Ditto.
90 (aclsort32): Ditto.
91 (acltomode32): Ditto.
92 (aclfrommode32): Ditto.
93 (acltopbits32): Ditto.
94 (aclfrompbits32): Ditto.
95 (acltotext32): Ditto.
96 (aclfromtext32): Ditto, and use strechr.
97 (acl16to32): Create.
98 (acl): Make it a wrapper function.
99 (facl): Ditto.
100 (lacl): Ditto.
101 (aclcheck): Ditto.
102 (aclsort): Ditto.
103 (acltomode): Ditto.
104 (aclfrommode): Ditto.
105 (acltopbits): Ditto.
106 (aclfrompbits): Ditto.
107 (acltotext): Ditto.
108 (aclfromtext): Ditto.
109 * security.cc (write_sd): Call set_process_privilege and check
110 ownership.
111 (alloc_sd): Remove call to set_process_privilege and the owner check.
112
cadd065b
CF
1132003-02-05 Christopher Faylor <cgf@redhat.com>
114
115 * include/sys/cygwin.h: Use C-style comments.
116
0c8455c3
CV
1172003-02-05 Pierre Humblet <pierre.humblet@ieee.org>
118
119 * sec_helper.cc (get_sids_info): New function.
120 * security.cc (extract_nt_dom_user): Simplify with strechr.
121 (get_user_groups): Initialize glen to MAX_SID_LEN.
122 (get_user_local_groups): Ditto.
123 (get_attribute_from_acl): Define ace_sid as cygpsid.
124 (get_nt_attribute): Define owner_sid and group_sid as cygpsid.
125 Call get_sids_info instead of cygsid.get_{u,g}id and is_grp_member.
126 (get_nt_object_attribute): Ditto.
127 (alloc_sd): Define ace_sid as cygpsid.
128
5ae9331a
TP
1292003-02-04 Thomas Pfaff <tpfaff@gmx.net>
130
131 * syscalls.cc (struct system_cleanup_args): New struct.
132 (system_cleanup): New function.
133 (system): Use pthread_cleanup_push and _pop to save and restore
134 signal handlers and sigprocmask.
135
3dbafd87
CV
1362003-02-04 Corinna Vinschen <corinna@vinschen.de>
137
138 * path.cc (symlink): Create security attributes so that only the
139 user can modify the symlink.
140 * security.cc (set_security_attribute): Remove symlink special
141 handling.
142
0daf2561
CV
1432003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
144
145 * grp.cc (internal_getgroups): Do not return without closing
146 the process handle.
147
4a21c2d5
CV
1482003-02-04 Pierre Humblet <pierre.humblet@ieee.org>
149
150 * security.h (class cygpsid): New class.
151 (class cygsid): Use cygpsid as base. Remove members psid, get_id,
152 get_uid, get_gid, string, debug_printf and the == and != operators.
153 (cygsidlist::clear_supp): Only do work if setgroups has been called.
154 * sec_helper.cc: Define sid_auth NO_COPY.
155 (cygpsid::operator==): New operator.
156 (cygpsid::get_id): New function.
157 (cygpsid::string): New function.
158 (cygsid::string): Delete.
159 (cygsid::get_id): Delete.
160 * pwdgrp.h: Change arguments of internal_getpwsid,
161 internal_getgrsid and internal_getgroups to cygpsid.
162 * passwd.cc (internal_getpwsid): Change argument from cygsid to cygpsid.
d238c1b4 163 * grp.cc (internal_getgrsid): Ditto.
4a21c2d5
CV
164 (internal_getgroups): Ditto.
165
335556d5
CF
1662003-02-03 Christopher Faylor <cgf@redhat.com>
167
168 Eliminate most unneeded this-> pointers throughout.
169
153e83c6
CV
1702003-02-03 Pierre Humblet <pierre.humblet@ieee.org>
171
172 * security.h: Add third argument to set_process_privilege.
173 * autoload.cc: Add OpenThreadToken.
174 * sec_helper.cc (set_process_privilege): Add and use use_thread
175 argument.
176 * security.cc (alloc_sd): Modify call to set_process_privilege.
177 Remember the result in each process. If failed and file owner is not
178 the user, fail.
179
f0f3ea68
CV
1802003-02-03 Corinna Vinschen <corinna@vinschen.de>
181
182 * fhandler_socket.cc (fhandler_socket::recvfrom): Return buffer
183 length and don't set errno in case of WSAEMSGSIZE error.
184 (fhandler_socket::recvmsg): Ditto.
185
6688a061
CF
1862003-02-01 Christopher Faylor <cgf@redhat.com>
187
188 * grp.cc (getgrent32): Only refresh group entries when at beginning.
189 (internal_getgrsid): Only refresh if uninitialized.
190 (internal_getgrent): Ditto.
191 * passwd.cc (getpwent): Only refresh passwd entries when at beginning.
192 (pwdgrp::read_passwd): linebuf *cannot* be NO_COPY.
193 (internal_getpwsid): Only refresh if uninitialized.
194 (getpass): No need to refresh passwd data here.
195 * pwdgrp.h (refresh): Eliminate default.
196
a5a93a62
CF
1972003-01-31 Christopher Faylor <cgf@redhat.com>
198
199 * dlfcn.cc (dlerror): Only report load errors once per error.
200
b0a82a85
CF
2012003-01-31 Christopher Faylor <cgf@redhat.com>
202
203 * fhandler_serial.cc (fhandler_serial::open): Avoid extraneous setting
204 of res.
205
206 * termios.cc (tcsetattr): Correctly record errno after tcsetattr call.
207
2082003-01-31 Troy Curtiss <troyc@usa.net>
209
210 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add error-checking
211 so that if any Win32 SetComm*() calls fail, errno gets set to EINVAL
212 and tcsetattr() returns -1. Catch invalid bitrates, mostly. If baud
213 rate setting is B0, just drop DTR and leave Win32 DCB bitrate as-is
214 since 0 is not a valid Win32 setting.
215 (fhandler_serial::tcgetattr): If DTR is low, populate the bitrate as
216 B0, otherwise get it from the DCB.
217
949c3da1
CF
2182003-01-31 Christopher Faylor <cgf@redhat.com>
219
220 * passwd.cc (pwdgrp::read_passwd): linebuf *must* be static (from
221 Pierre Humblet).
222 * pwdgrp.h (pwdgrp::refresh): Avoid calling read function if we already
223 have lock since that means we are in the process of reading the file.
224
485d85bf
CF
2252003-01-31 Jason Tishler <jason@tishler.net>
226
227 * shared.cc (shared_info::heap_chunk_size): Use correct variable when
228 reading HKLM.
229
704ce461
CF
2302003-01-30 Christopher Faylor <cgf@redhat.com>
231
232 * fhandler_registry.cc (fhandler_registry::exists): Fix off-by-one
233 error when inspecting path.
234
ba6e1083
CF
2352003-01-29 Christopher Faylor <cgf@redhat.com>
236
237 * lib/getopt.c: Allow environment variable control of POSIXLY_INCORRECT
238 behavior.
239
2402003-01-28 Corinna Vinschen <corinna@vinschen.de>
01e3c897
CV
241
242 * fhandler_socket.cc (fhandler_socket::accept): On successful execution
243 set connection state of returned socket to CONNECTED.
244
dfb366da
CF
2452003-01-27 Christopher Faylor <cgf@redhat.com>
246
247 * passwd.cc (pwdgrp::parse_passwd): Be more unforgiving about
248 non-numeric fields.
249
03dba1de
CF
2502003-01-26 Christopher Faylor <cgf@redhat.com>
251
252 * uinfo.cc (pwdgrp::next_num): Remove check for NULL since it is no
253 longer a valid return from next_str.
254 (pwdgrp::add_line): Duh. Revert to use strchr.
255
fea48988
CF
2562003-01-26 Christopher Faylor <cgf@redhat.com>
257
ca6018a0 258 * string.h (strechr): New function.
fea48988
CF
259 * uinfo.cc (pwdgrp::next_str): Search only for input char in string.
260 Return EOS on failure. Don't check for NULL since it shouldn't be
261 possible.
262 (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'.
263 (pwdgrp::next_num): Pass explicit separator character to next_str.
264 * grp.cc (pwdgrp::parse_group): Ditto.
265 * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage
266 input.
267 * pwdgrp.h (pwdgrp::next_str): Don't use default parameter.
268
9a751621
CF
2692003-01-26 Christopher Faylor <cgf@redhat.com>
270
271 * uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
272 CreateFile failure.
273
c9133395
CF
2742003-01-26 Christopher Faylor <cgf@redhat.com>
275
bdbd7fb6
CF
276 * passwd.cc (pwdgrp::parse_passwd): Eliminate use of memset. The
277 structure should always be completely filled out.
278 * grp.cc (pwdgrp::parse_group): Ditto.
279
2802003-01-26 Christopher Faylor <cgf@redhat.com>
281
282 * grp.cc (pwdgrp::parse_group): Fix off-by-one problem in allocating
c9133395 283 gr_mem.
65037056
CF
284
2852003-01-26 Christopher Faylor <cgf@redhat.com>
286
287 * include/sys/strace.h (paranoid_printf): Define as not being part of
288 "all" output.
289
2902003-01-25 Christopher Faylor <cgf@redhat.com>
291
292 * pwdgrp.h (pwdgrp::next_num): Rename from next_int. Returns
293 true/false if parse operation succeeded.
294 (pwdgrp::reparse): Remove.
295 (pwdgrp::raw_ptr): New function. Returns pointer in line.
296 (pwdgrp::next_num): New functions for parsing other than unsigned long.
297 * grp.cc (pwdgrp::parse_group): Reinstate previous parsing behavior.
298 Don't fill in fields with NULL and assign empty gr_mem to known pointer
299 rather than doing a pointless calloc. Streamline gr_mem parsing.
300 Don't increment curr_lines here.
301 * passwd.cc (pwdgrp::parse_passwd): Use new behavior of next_num.
302 Don't increment curr_lines here.
303 * uinfo.cc (pwdgrp::next_str): Keep returning EOL if out of data.
304 (pwdgrp::reparse): Remove.
305 (pwdgrp::next_num): Rename from next_int. Return bool indicating
306 success of parse, argument returns value parsed.
307 (pwdgrp::add_line): Increment curr_lines here on successful parse.
308 (pwdgrp::load): (from Pierre Humblet) Don't return status. Just report
309 it here.
310
a53ddfe6
CF
3112003-01-25 Christopher Faylor <cgf@redhat.com>
312
313 * pwdgrp.cc (pwdgrp::reparse): Declare.
314 * uinfo.cc (pwdgrp::reparse): Define.
c9b99d0d 315 * grp.cc (pwdgrp::parse_group): Use reparse.
a53ddfe6 316
4f7e12dd
CV
3172003-01-25 Pierre Humblet <pierre.humblet@ieee.org>
318
319 * syscalls.cc (seteuid32): On Win95 get the pw entry. If it exists
320 update the euid and call cygheap->user.set_name. Remove special
321 handling of ILLEGAL_UID.
ba6e1083 322 (setgid32): Add a debug_printf. On Win95, always set the egid.
4f7e12dd
CV
323 Remove special handling of ILLEGAL_GID. Do not compare gid and gr_gid.
324 * child_info.h (class cygheap_exec_info): Remove uid.
325 * spawn.cc (spawn_guts): Do not set ciresrv.moreinfo->uid.
326 * dcrto.cc (dll_crt0_1): Always call uinfo_init.
327 * uinfo.cc (uinfo_init): Reorganize and close handle if needed.
328 (cygheap_user::ontherange): Do not call internal_getpwnam if pw is NULL.
329
45dbfc26
CF
3302003-01-24 Christopher Faylor <cgf@redhat.com>
331
332 * fhandler_console.cc (fhandler_console::send_winch_maybe): Reset
333 scroll region if size changes.
334
7d33eefa
CV
3352003-01-24 Pierre Humblet <pierre.humblet@ieee.org>
336 Jason Tishler <jason@tishler.net>
337
338 * cygwin.din: Export setreuid32, setreuid, setregid32, setregid.
339 * syscalls.cc (setreuid32): New function.
340 (setreuid): Ditto.
341 (setregid32): Ditto.
342 (setregid): Ditto.
343 * include/cygwin/version.h: Bump API minor number.
344
ac413374 3452003-01-23 Christopher Faylor <cgf@redhat.com>
69fae986 346
ac413374 347 * pwdrp.h (pwdgrp::refresh): Lock entire test prior to reading.
2037688a 348
ac413374 3492003-01-23 Christopher Faylor <cgf@redhat.com>
09a88426
CF
350
351 * grp.cc (pwdgrp::parse_group): Eliminate arg and use class member
352 instead. Use next_str and next_int to parse arguments.
353 * passwd.cc (pwdgrp::parse_passwd): Ditto.
354 (grab_string): Eliminate.
355 (grab_int): Ditto.
356 * pwdgrp.h (pwdgrp::parse): Eliminate input arg.
357 (pwdgrp::parse_passwd): Reflect above change.
358 (pwdgrp::parse_group): Reflect above change.
359 (pwdgrp::next_str): New function.
360 (pwdgrp::next_int): Ditto.
361 (pwdgrp::gets): Eliminate.
362 * uinfo.cc (pwdgrp::next_str): New function.
363 (pwdgrp::next_int): Ditto.
364 (pwdgrp::add_line): Subsume gets.
365 (pwdgrp::gets): Eliminate.
366 (pwdgrp::load): Just call add_line to parse input buffer.
367
ac413374
CF
3682003-01-22 Thomas Pfaff <tpfaff@gmx.net>
369
370 * include/pthread.h (PTHREAD_MUTEX_RECURSIVE): Revert changes from
371 2003-01-09 mutex patch.
372 (PTHREAD_MUTEX_ERRORCHECK): Ditto.
373
3742003-01-22 Corinna Vinschen <corinna@vinschen.de>
375
376 * cygrun.c: Move from here to ../testsuite.
377 * Makefile.in: Remove cygrun.exe dependencies.
378
3792003-01-21 Jason Tishler <jason@tishler.net>
380
381 * cygwin.din: Export nanosleep().
382 * signal.cc (nanosleep): New function.
383 (sleep): Move old functionality to nanosleep(). Call nanosleep().
384 (usleep): Remove old functionality. Call nanosleep().
385 * include/cygwin/version.h: Bump API minor number.
386
57394495
CF
3872003-01-21 Christopher Faylor <cgf@redhat.com>
388
389 * grp.cc: Call gr.refresh() rather than doing isunitialized tests
390 throughout.
391 (gr): Use constructor (sigh).
392 (pwdgrp::parse_group): Rename from parse_grp.
393 (pwdgrp::read_group): Rename from read_etc_group. Just call gr.load
394 with a single argument.
395 * passwd.cc: Call pr.refresh() rather than doing isunitialized tests
396 throughout.
397 (pr): Use constructor (sigh).
398 (pwdgrp::parse_passwd): Rename from "parse_pwd".
399 (pwdgrp::read_passwd): Rename from read_etc_passwd. Just call pr.load
400 with a single argument.
401 * pwdgrp.h (pwdgrp_state): Eliminate.
402 (pwdgrp): Reflect above renamings.
403 (pwdgrp::etc_ix): Rename from pwd_ix.
404 (pwdgrp::read): New element.
405 (pwdgrp::lock): New element.
406 (pwdgrp::refresh): New function.
407 (pwdgrp::load): Eliminate variations which take buffer arguments.
408 (pwdgrp::pwdgrp): New constructors. Initialize mutex here.
409 * uinfo.cc (pwdgrp::load): Accommodate pwd_ix -> etc_ix renaming.
410 (pwdgrp::load): Set initialized state to true rather than setting state
411 to loaded.
412
984864e9
CF
4132003-01-21 Christopher Faylor <cgf@redhat.com>
414
89f7e8d1 415 * include/cygwin/version.h: Bump DLL minor number.
984864e9 416
d8cde3a3
CF
4172003-01-21 Pierre Humblet <pierre.humblet@ieee.org>
418
419 * path.h (etc::change_possible): Revert the type to bool.
420 (etc::set_last_modified): Remove obsolete function.
421 * path.cc (etc::change_possible): Revert type to bool.
422 (etc::test_file_change): Do not test for negative values of
423 change_possible and do not set it to -res.
424 (etc::dir_changed): When the handle is NULL, call memset instead of
09a88426
CF
425 test_file_changed. When the handle is invalid, return true. Detect
426 filename change in /etc.
d8cde3a3 427 (etc::file_changed): Remove unneeded check for !fn[n].
33de631b 428 * uinfo.cc (pwdgrp::load): Eliminate spurious setting of fh to NULL.
b99b804b 429 * pwdgrp.h (pwdgrp::operator =): Eliminate.
d8cde3a3 430
7905c4f1
CF
4312003-01-19 Christopher Faylor <cgf@redhat.com>
432
433 * pwdgrp.h (etc): Move to path.h.
434 (pwdgrp::max_lines): New field.
435 (pwdgrp::curr_lines): New field.
436 (pwdgrp::pwdgrp_buf): Ditto.
437 (pwdgrp_buf_elem_size): Ditto.
438 (pwdgrp_parse): Ditto.
439 (pwdgrp::gets): Just declare here.
440 (pwdgrp::load): Ditto. Just take one argument.
441 (pwdgrp::load): Define overloaded function accepting passwd buf.
442 (pwdgrp::load): Define overloaded function accepting group buf.
443 * grp.cc: Use pwdgrp elements rather than standalone static variables
444 throughout.
445 (curr_lines): Eliminate.
446 (max_lines): Ditto.
447 (add_grp_line): Ditto.
448 (parse_grp): Define as returning boolean. Accept void * arg and line
449 count. Coerce first argument into __group32 buf reference. Increment
450 curr_line as appropriate.
451 (read_etc_group): Pass pwdgrp buffer to gr.load.
452 * passwd.cc: Use pwdgrp elements rather than standalone static variables
453 throughout.
454 (curr_lines): Eliminate.
455 (max_lines): Ditto.
456 (add_grp_line): Ditto.
457 (parse_passwd): Define as returning boolean. Accept void * arg and line
458 count. Coerce first argument into passwd buf reference. Increment
459 curr_line as appropriate.
460 (read_etc_group): Pass pwdgrp buffer to pr.load.
461 * path.cc (etc::fn): Extend buffer size to allow index by 1 rather than
462 zero.
463 (etc::last_modified): Ditto.
464 (etc::change_possible): Ditto. Renamed from sawchange. Change to
465 signed char since elements are now tri-state.
466 (etc::init): Assume "handle" is 1 based rather than 0.
467 (etc::test_file_change): New function. Sets change_possible based on
468 file date comparison.
469 (etc::dir_changed): Check file states immediately after changed_h is
470 initialized to avoid a race.
471 (etc::file_changed): Use test_file_change to detect if file needs to be
472 updated.
473 * path.h (etc): Move class here from pwdgrp.h.
7905c4f1
CF
474 * uinfo.cc: Move etc:: functions to path.cc. Move pwdgrp functions
475 here.
476 (pwdgrp::gets): Eliminate buf checks. Just check eptr and set lptr.
477 (pwdgrp::add_line): New function.
478 (pwdgrp::load): Call generic add_line function which will call correct
479 parser.
480
4c6a3e50
CF
4812003-01-17 Christopher Faylor <cgf@redhat.com>
482
483 * cygheap.cc: Change most 'int's to 'unsigned's.
484 (_cmalloc): Only check for size of malloced region when calculating
97d2bc79 485 bucket. Add overhead when performing the sbrk. Previous change broke
4c6a3e50
CF
486 _crealloc.
487
e9152439
CF
4882003-01-17 Christopher Faylor <cgf@redhat.com>
489
490 * dcrt0.cc (initialize_env): Use colon for CYGWIN_DEBUG separator.
491 * grp.cc: Change most statics to NO_COPY throughout.
492 * passwd.cc: Ditto.
493
4942003-01-17 Christopher Faylor <cgf@redhat.com>
495
496 * pwdgrp.h: Change some BOOLs to bools.
497 (pwdgrp::pwdgrp): Remove unneeded constructor.
498 * passwd.cc: Change BOOL to bool throughout.
499
afa378e7
CV
5002003-01-17 Corinna Vinschen <corinna@vinschen.de>
501
502 * cygwin.din: Add strerror_r.
503 * include/cygwin/version.h: Bump API minor number.
504
1de6f431
CF
5052003-01-17 Christopher Faylor <cgf@redhat.com>
506
507 * uinfo.cc (etc::dir_changed): Don't print a warning if can't open
508 /etc, unless debugging.
509
d8cde3a3 5102003-01-17 Pierre Humblet <pierre.humblet@ieee.org>
14ea5029
CF
511
512 * grp.cc (read_etc_group): On NT, add a line for gid = -1. Change name
513 "unknown" to "mkgroup".
514 (internal_getgrgid): Do not return default in nontsec case.
515 (internal_getgroups): Add argument srchsid and look for it in groups if
516 not NULL.
517 * passwd.cc (read_etc_passwd): On NT, add a line for uid = -1. Use
518 same default uid for Win95 and NT. Call cygheap_user::ontherange to
519 initialize HOME.
520
14ea5029
CF
5212003-01-16 Christopher Faylor <cgf@redhat.com>
522
523 * cygheap.cc (init_cygheap::etc_changed): Move to uinfo.cc.
524 * cygheap.h (init_cygheap::etc_changed_h): Remove.
525 (init_cygheap::etc_changed): Ditto.
526 * grp.cc (group_state): Remove. Use gr instead throughout.
527 (gr): Define as class pwdgrp.
528 (read_etc_group): Remove gr definition. Remove calls to
529 set_last_modified and close. Pass add_grp to gr.load to load file.
530 * passwd.cc (passwd_state): Remove. Use pr instead, throughout.
531 (pr): Define as class pwdgrp.
532 (read_etc_passwd): Remove pr definition. Remove calls to
533 set_last_modified and close. Pass add_pwd_line to pr.load to load
534 file.
535 * pwdgrp.h (etc): New helper class for pwdgrp.
536 (pwdgrp): Combine pwdgrp_check and pwdgrp_read into one class. Remove
537 file_w32 and last_modified fields.
538 (pwdgrp::set_last_modified): Remove.
539 (pwdgrp::isinitializing): Remove FindFirstFile stuff. Move to
540 etc::file_changed.
541 (pwdgrp::load): Rename from 'open'. Call etc::init to initialize etc
542 scanning. Close file handle after reading buffer into memory. Parse
543 buffer by calling second argument.
544 (pwdgrp::gets): Reorganize slightly to rely on eptr starting at
5304bcdf 545 beginning of buffer.
14ea5029
CF
546 (pwdgrp::close): Remove.
547 * uinfo.cc (etc::dir_changed): New function.
548 (etc::init): Ditto.
549 (etc::file_changed): Ditto.
550 (etc::set_last_modified): Ditto.
551
41429bc9
CV
5522003-01-16 Jason Tishler <jason@tishler.net>
553
554 * mmap.cc (fixup_mmaps_after_fork): Add ERROR_NOACCESS to the list of
555 ReadProcessMemory() error codes that trigger a retry with temporary
556 PAGE_READONLY access. Note that this can occur on NT 4.0.
557
18813254
CF
5582003-01-15 Christopher Faylor <cgf@redhat.com>
559
560 * path.cc (normalize_posix_path): Convert win32 path separators to
561 slashes when full path is specified.
562
77cb0c56
CF
5632003-01-15 Pierre Humblet <pierre.humblet@ieee.org>
564
565 * cmalloc.cc (_cmalloc): Fix memory leak.
566
ce542f78
CV
5672003-01-15 Corinna Vinschen <corinna@vinschen.de>
568
569 * autoload.cc: Fix copyright date.
570 * fhandler_dsp.cc: Ditto.
571 * mmap.cc: Ditto.
572 * net.cc: Ditto.
573 * ntdll.h: Ditto.
574 * signal.cc: Ditto.
575 * syscalls.cc: Ditto.
576 * uname.cc: Ditto.
577 * wait.cc: Ditto.
578
15996b6f
CV
5792003-01-14 Corinna Vinschen <corinna@vinschen.de>
580
581 * mmap.cc (fixup_mmaps_after_fork): Copy protection to child process.
582 Change ambiguous debug output.
583
857b65dd
CV
5842003-01-14 Corinna Vinschen <corinna@vinschen.de>
585
586 * mmap.cc (mmap_record::access): Change argument type to caddr_t
587 for strictness.
588 (mprotect): Protect against calling VirtualProtect() for shared
589 pages on 9x/Me.
590 (fixup_mmaps_after_fork): If ReadProcessMemory() fails, try to
591 change protection of parent page to PAGE_READONLY, then try again.
592 Revert protection afterwards.
593
e14328f4
TP
5942003-01-14 Thomas Pfaff <tpfaff@gmx.net>
595
596 * syscalls.cc (system): Add pthread_testcancel call.
597 * thread.cc: Update list of cancellation points.
598
4a3584c8
TP
5992003-01-14 Thomas Pfaff <tpfaff@gmx.net>
600
601 * wait.cc: Include thread.h
602 (wait4): Add pthread_testcancel call.
603 Wait for child process and cancellation event.
604 * thread.cc: Update list of cancellation points.
605
7ec66a2c
TP
6062003-01-14 Thomas Pfaff <tpfaff@gmx.net>
607
608 * signal.cc (sleep): Add pthread_testcancel call.
609 Wait for signal and cancellation event.
610 (usleep): Ditto.
611
6122003-01-14 Thomas Pfaff <tpfaff@gmx.net>
3457ce4d
TP
613
614 * exceptions.cc (handle_sigsuspend): Add pthread_testcancel call.
615 Wait for signal and cancellation event.
616 * thread.cc: Update list of cancellation points.
617
2673d5f2
CF
6182003-01-14 David Huang <davehzhr@hotmail.com>
619
620 * fhandler_dsp.cc (fhandler_dsp::ioctl): Add limited support for
621 SNDCTL_DSP_GETFMTS.
622
9f0d3f37
CF
6232003-01-12 Christopher Faylor <cgf@redhat.com>
624
625 * ntdll.h: Fix typo.
626
7f129d87
CV
6272003-01-12 Corinna Vinschen <corinna@vinschen.de>
628
629 * uname.cc (uname): Use cygwin_gethostname() to retrieve hostname.
630
ab2dbccc
CV
6312003-01-12 Pierre Humblet <pierre.humblet@ieee.org>
632
633 * sec_acl.cc (search_ace): Use id == -1, instead of < 0, as wildcard.
634 (setacl): Start the search for a matching default at the next entry.
635 Invalidate the type of merged entries instead of clearing it.
636 Use well_known_creator for default owner and owning group and do
637 not try to merge non-default and default entries in these cases.
638 (getacl): Recognize well_known_creator for default owner and group.
639 (acl_worker): Improve errno settings and streamline the nontsec case.
640 * security.cc (write_sd): Remove the call to set_process_privilege.
641 (alloc_sd): If the owner changes, call set_process_privilege and return
642 immediately on failure. Change inheritance rules: on new directories add
643 inherit only allow ACEs for creator_owner, creator_group and everyone.
644 Preserve all inheritances through chmod and chown calls. Introduce
645 isownergroup to implement the uid == gid case, to keep the inheritance
646 code simple. Do not initialize owner_sid and group_sid and stop using
647 the variable psd.
648
68115c74
CF
6492003-01-10 Christopher Faylor <cgf@redhat.com>
650
651 * net.cc: Use gethostname define from winsock2.h.
652
e3abf986
CF
6532003-01-10 Christopher Faylor <cgf@redhat.com>
654
655 * path.cc: Unrevert below reversion except for
656 mount_info::conv_to_posix_path part.
657
df2caa88
CV
6582003-01-10 Corinna Vinschen <corinna@vinschen.de>
659
660 * path.cc: Revert patch from 2003-01-09 to normalize a windows path
661 rather than converting to posix.
662
dc8d11f5
CV
6632003-01-10 Corinna Vinschen <corinna@vinschen.de>
664
665 * autoload.cc (gethostname): Make call optional, return 1 if function
666 can't get loaded.
667 * net.cc (cygwin_gethostname): Call GetComputerName if return value
668 of gethostname is non-zero.
669
70d61f30
CV
6702003-01-10 Charles Wilson <cwilson@ece.gatech.edu>
671
8735f49f 672 * cygwin.din: Add asprintf and vasprintf, as well as the reentrant
70d61f30 673 versions and underscore variants.
8735f49f 674 * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR.
70d61f30 675
a7711767
CV
6762003-01-10 Corinna Vinschen <corinna@vinschen.de>
677
678 * net.cc (cygwin_gethostname): Fix call to wsock function gethostname.
679
d5223b2b
CF
6802003-01-09 Christopher Faylor <cgf@redhat.com>
681
682 * cygthread.cc (cygthread::cygthread): Be more noisy about odd
683 condition.
684 * miscfuncs.cc (low_priority_sleep): Sleep in regular priority if
685 that's what we're currently running at.
686
65f207e8
TP
6872003-01-09 Thomas Pfaff <tpfaff@gmx.net>
688
689 * include/semaphore.h: Modify typedef for sem_t.
690 * include/cygwin/types.h: Modify typedefs for pthread_t,
691 pthread_mutex_t, pthread_key_t, pthread_attr_t,
692 pthread_mutexattr_t, pthread_condattr_t, pthread_cond_t,
693 pthread_rwlock_t and pthread_rwlockattr_t.
694
09cbb9d6
TP
6952003-01-09 Thomas Pfaff <tpfaff@gmx.net>
696
697 * thread.h (WAIT_CANCELED): New define.
698 (pthread::cancelable_wait): New static method.
699 * thread.cc (pthread::cancelable_wait): Implement.
700 (semaphore::Wait): Wait on semaphore and thread cancellation.
701 (pthread::join): Wait on joined thread and thread cancellation.
702 (semaphore::wait): Add testcancel to check for thread
703 cancellation even if the semaphore is available.
704
5d68d1de
TP
7052003-01-09 Thomas Pfaff <tpfaff@gmx.net>
706
707 * include/pthread.h: Add define for errorchecking mutexes.
708 Change default mutex type.
709 * thread.cc (pthread_cond::TimedWait): Update mutex unlock
710 calls.
711 (pthread_mutex::pthread_mutex): New implement.
712 (pthread_mutex::~pthread_mutex): Ditto.
713 (pthread_mutex::Lock): Ditto.
714 (pthread_mutex::TryLock): Ditto.
715 (pthread_mutex::UnLock): Ditto.
716 (pthread_mutex::Destroy): Implement new method.
717 (pthread_mutex::SetOwner): Ditto.
718 (pthread_mutex::LockRecursive): Ditto.
719 (pthread_mutex::fixup_after_fork): Restore locking state after
720 fork.
721 (__pthread_mutex_lock): Return pthread_mutex::Lock errorcode.
722 (__pthread_mutex_trylock): Return pthread_mutex::TryLock
723 errorcode.
724 (__pthread_mutex_unlock): Return pthread_mutex::UnLock
725 errorcode.
726 (__pthread_mutex_destroy): Call pthread_mutex::Destroy to
3457ce4d 727 destroy mutex.
5d68d1de
TP
728 (__pthread_mutexattr_settype): Allow errorchecking and recursive
729 types.
730 * thread.h (MUTEX_LOCK_COUNTER_INITIAL): New define.
731 (pthread_mutex::criticalsection): Remove.
732 (pthread_mutex::lock_counter): New member.
733 (pthread_mutex::recursion_counter): Ditto.
734 (pthread_mutex::owner): Ditto.
735 (pthread_mutex::type): Ditto.
736 (pthread_mutex::Destroy): New method.
737 (pthread_mutex::SetOwner): Ditto.
738 (pthread_mutex::LockRecursive): Ditto.
739
ed9fe455
TP
7402003-01-09 Thomas Pfaff <tpfaff@gmx.net>
741
742 * pthread.cc (pthread_cond_init): Use new pthread_cond::init.
743 * thread.cc: Some white spaces cleanups.
744 Change __pthread_cond_init to pthread_cond::init throughout.
745 (nativeMutex): Move class methods outside pthread_mutex.
746 (MTinterface::Init): Initialize pthread_cond init lock.
747 (pthread_cond::condInitializationLock): Instantiate.
748 (pthread_cond::initMutex): New Method.
749 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
750 * thread.h: Some white spaces cleanups.
751 (nativeMutex): Move class declaration outside pthread_mutex.
752 (pthread_cond::condInitializationLock): New static member.
753 (pthread_cond::initMutex): New Method.
754 (pthread_cond::isGoodInitializerOrBadObject): Ditto.
755 (__pthread_cond_init): Remove prototype.
756
93353aee
CV
7572003-01-09 Corinna Vinschen <corinna@vinschen.de>
758
759 * fhandler_disk_file.cc (num_entries): Return 2 as link count if
760 directory unreadable.
761
3eb27a4e
CV
7622003-01-09 Corinna Vinschen <corinna@vinschen.de>
763
764 * security.cc (get_nt_attribute): Always return -1 when read_sd()
765 fails.
766 (get_file_attribute): Set permissions to 0 and owner/group to -1
767 if security descriptor is unreadable.
768
85ba109d
CF
7692003-01-09 Christopher Faylor <cgf@redhat.com>
770
771 Use isdirsep rather than SLASH_P throughout.
772 * path.cc (iscygdrive): Disallow /cygdrive\x.
773 (normalize_posix_path): "Normalize" a windows path, if detected, rather
774 than converting to posix.
775
7762003-01-06 Troy Curtiss <troyc@usa.net>
777
778 * fhandler_serial.cc (fhandler_serial::tcsetattr): Add support and
779 capability checking for B230400 bitrate.
780 (fhandler_serial::tcgetattr): Add support for B230400 bitrate.
781 * include/sys/termios.h: Add B230400 definition for Posix support of
782 230.4Kbps.
783
cbdbe9d7
CF
7842003-01-05 Christopher Faylor <cgf@redhat.com>
785
786 * pinfo.cc (_pinfo::commune_send): Use myself->lock rather than just
787 lock when leaving.
788
f3afe99b
CF
7892003-01-03 Christopher Faylor <cgf@redhat.com>
790
791 * dtable.h (dtable::in_vfork_cleanup): New function. True if vfork
792 cleanup needed.
793 * dtable.cc (dtable::vfork_parent_restore): Remove assertion.
794 * pipe.cc (fhandler_pipe::close): Don't close read_state during
795 fork_fixup since it wasn't inherited.
796
2665fb15
CF
7972003-01-01 Christopher Faylor <cgf@redhat.com>
798
799 * passwd.cc (getpwuid_r32): Revert previous change.
800
8619b42b
CF
8012003-01-01 Christopher Faylor <cgf@redhat.com>
802
803 * sysconf.cc (sysconf): Return arbitrary values for
804 _SC_GETGR_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_GETPW_R_SIZE_MAX.
805
806 * passwd.cc (getpwuid_r32): Add uid/gid fields to size check
807 calculation.
808
This page took 0.137463 seconds and 5 git commands to generate.