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