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