]>
Commit | Line | Data |
---|---|---|
c99902b9 CF |
1 | 2002-06-26 Christopher Faylor <cgf@redhat.com> |
2 | ||
3 | * cygheap.cc (cygheap_user::set_name): Avoid clearing things when just | |
4 | setting name to itself or during first time initialization. | |
5 | ||
6 | * environ.cc (check_case_init): Make case insensitive. | |
7 | ||
be5007aa CV |
8 | 2002-06-26 Corinna Vinschen <corinna@vinschen.de> |
9 | ||
10 | * fhandler.h (fhandler_socket::bind): Add method definition. | |
11 | (fhandler_socket::connect): Ditto. | |
12 | (fhandler_socket::listen): Ditto. | |
13 | (fhandler_socket::accept): Ditto. | |
14 | (fhandler_socket::getsockname): Ditto. | |
15 | (fhandler_socket::getpeername): Ditto. | |
16 | (fhandler_socket::recvfrom): Ditto. | |
17 | (fhandler_socket::recvmsg): Ditto. | |
18 | (fhandler_socket::sendto): Ditto. | |
19 | (fhandler_socket::sendmsg): Ditto. | |
20 | (fhandler_socket::shutdown): Ditto. | |
21 | * fhandler_socket.cc (get_inet_addr): Move here from net.cc. | |
22 | (fhandler_socket::bind): New method. | |
23 | (fhandler_socket::connect): Ditto. | |
24 | (fhandler_socket::listen): Ditto. | |
25 | (fhandler_socket::accept): Ditto. | |
26 | (fhandler_socket::getsockname): Ditto. | |
27 | (fhandler_socket::getpeername): Ditto. | |
28 | (fhandler_socket::recvfrom): Ditto. | |
29 | (fhandler_socket::recvmsg): Ditto. | |
30 | (fhandler_socket::sendto): Ditto. | |
31 | (fhandler_socket::sendmsg): Ditto. | |
32 | (fhandler_socket::shutdown): Ditto. | |
33 | * net.cc: Various formatting cleanups throughout. | |
34 | (get_inet_addr): Move to fhandler_socket.cc. | |
35 | (cygwin_bind): Move base functionality to appropriate fhandler_socket | |
36 | method. | |
37 | (cygwin_connect): Ditto. | |
38 | (cygwin_listen): Ditto. | |
39 | (cygwin_accept): Ditto. | |
40 | (cygwin_getsockname): Ditto. | |
41 | (cygwin_getpeername): Ditto. | |
42 | (cygwin_recvfrom): Ditto. | |
43 | (cygwin_recvmsg): Ditto. | |
44 | (cygwin_sendto): Ditto. | |
45 | (cygwin_sendmsg): Ditto. | |
46 | (cygwin_shutdown): Ditto. | |
47 | ||
303af157 CV |
48 | 2002-06-26 Corinna Vinschen <corinna@vinschen.de> |
49 | ||
50 | * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning. | |
51 | ||
8698edb8 CF |
52 | 2002-06-26 Christopher Faylor <cgf@redhat.com> |
53 | ||
54 | * dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and | |
55 | it's not cygwin info. | |
56 | ||
f279e522 CF |
57 | 2002-06-26 Christopher Faylor <cgf@redhat.com> |
58 | ||
59 | * autoload (noload): Avoid clobbering bx register. | |
60 | ||
61 | * environ.cc (codepage_init): Use case insensitive match. | |
62 | ||
63 | * fhandler_console.cc (cp_get_internal): Delete. | |
64 | (con_to_str): Use get_cp to derive code page. | |
65 | (str_to_con): Ditto. | |
66 | * miscfuncs.cc (get_cp): New function. | |
67 | (sys_wcstombs): New function. Converted from macro. | |
68 | (sys_mbstowcs): Ditto. | |
69 | * winsup.h: Reflect above changes. | |
70 | ||
109e4822 CF |
71 | 2002-06-26 Christopher Faylor <cgf@redhat.com> |
72 | ||
73 | * winsup.h: Minor cleanup. | |
74 | * path.h (path_conv::[]): New operator. | |
75 | * syscalls.cc (_link): Use path_conv operators rather than methods, | |
76 | where appropriate. Minor white space cleanup. | |
77 | ||
78 | 2002-06-26 Christopher Faylor <cgf@redhat.com> | |
79 | ||
80 | * include/cygwin/version.h: Bump DLL minor number. | |
81 | ||
82 | 2002-06-25 Christopher Faylor <cgf@redhat.com> | |
83 | ||
84 | * dcrt0.cc (sm): Make NO_COPY. | |
85 | ||
6331b658 CV |
86 | 2002-06-25 Corinna Vinschen <corinna@vinschen.de> |
87 | ||
88 | * syscalls.cc (chown): Convert uid to 32 bit. | |
89 | (lchown): Ditto. | |
90 | (fchown): Ditto. | |
91 | ||
e773b7cf CF |
92 | 2002-06-24 Christopher Faylor <cgf@redhat.com> |
93 | ||
94 | * dtable.cc (dtable::find_unused_handle): Avoid coercion. | |
95 | ||
4c78be52 CF |
96 | 2002-06-24 Christopher Faylor <cgf@redhat.com> |
97 | ||
98 | * dtable.cc (fhandler_base::dup2): Cleanup. Ensure that lock is turned | |
99 | off in error condition. | |
100 | ||
1fd072b6 CV |
101 | 2002-06-24 Corinna Vinschen <corinna@vinschen.de> |
102 | ||
103 | * uinfo.cc (internal_getlogin): Set myself->uid and myself->gid instead | |
104 | of user.real_uid and user.real_gid. | |
105 | (uinfo_init): Evaluate orig_uid and real_uid from myself->uid. Ditto | |
106 | for gid. | |
107 | ||
de0557f7 CF |
108 | 2002-06-23 Pierre Humblet <pierre.humblet@ieee.org> |
109 | ||
110 | * security.cc (get_group_sidlist): Add pw argument and use pw->pw_name | |
111 | in call to get_supplementary_group_sidlist. | |
112 | (create_token): Add pw argument and use it in call to | |
113 | get_group_sidlist. | |
114 | * security.h: Add pw argument in declaration of create_token. | |
115 | * syscalls.cc (seteuid32): Add pw argument in call to create_token. | |
116 | ||
035bfbdd CF |
117 | 2002-06-23 Conrad Scott <conrad.scott@dsl.pipex.com> |
118 | ||
119 | * fhandler.cc (fhandler_base::fstat): Set S_IFIFO for pipes. | |
120 | * fhandler_socket.cc (fhandler_socket.cc::fstat): Set S_IFSOCK. | |
121 | ||
eecef29f CF |
122 | 2002-06-23 Christopher Faylor <cgf@redhat.com> |
123 | ||
124 | * lib/_cygwin_S_IEXEC.cc: Remove obsolete file. | |
125 | ||
85b995d4 CF |
126 | 2002-06-23 Christopher Faylor <cgf@redhat.com> |
127 | ||
128 | Use cygwin_{shm,ipc}.h instead of /sys/{shm,ipc}.h throughout. | |
129 | * sys/ipc.h: Remove. | |
130 | * sys/shm.h: Remove. | |
131 | * cygwin_ipc.h: New file. | |
132 | * cygwin_shm.h: New file. | |
133 | ||
6bda8def CF |
134 | 2002-06-23 Christopher Faylor <cgf@redhat.com> |
135 | ||
136 | * cygwin.sc: Add recent changes from ld sources. | |
137 | ||
138 | 2002-06-23 Conrad Scott <conrad.scott@dsl.pipex.com> | |
139 | ||
140 | * winsup.h: Move #ifdef EXPCGF code into "winbase.h". | |
141 | * winbase.h: #ifdef EXPCGF code moved here from "winsup.h". | |
142 | ||
f6709c07 RC |
143 | 2002-06-12 Thomas Pfaff <tpfaff@gmx.net> |
144 | ||
145 | * thread.h (pthread::cleanup_stack): Renamed cleanup_handlers to | |
146 | cleanup_stack. | |
147 | * thread.cc (pthread::pthread): Ditto. | |
148 | (pthread::create): Fixed mutex verification. | |
149 | (pthread::push_cleanup_handler): Renamed cleanup_handlers to | |
150 | cleanup_stack. | |
151 | Mutex calls removed, used InterlockedExchangePointer instead. | |
152 | (pthread::pop_cleanup_handler): Renamed cleanup_handlers to | |
153 | cleanup_stack. | |
154 | (pthread::pop_all_cleanup_handlers): Ditto. | |
155 | (__pthread_once): Check state first and return if already done. | |
156 | (__pthread_join): DEADLOCK test reverted to __pthread_equal | |
157 | call. | |
158 | (__pthread_detach): Unlock mutex before deletion. | |
159 | ||
0278e3a3 CF |
160 | 2002-06-21 Christopher Faylor <cgf@redhat.com> |
161 | ||
162 | * Makefile.in (cygrun.exe): Move -lgcc where it will do some good. | |
163 | ||
1a7cb557 CV |
164 | 2002-06-21 Corinna Vinschen <corinna@vinschen.de> |
165 | ||
166 | * syscalls.cc (stat64_to_stat32): Correctly evaluate st_rdev. | |
167 | (fstat64): Set st_rdev to same value as st_dev. | |
168 | (stat_worker): Ditto. | |
169 | ||
49056987 CV |
170 | 2002-06-21 Corinna Vinschen <corinna@vinschen.de> |
171 | ||
172 | * security.cc (alloc_sd): Carefully check owner_sid again after trying | |
173 | SIDs from cygheap. | |
174 | ||
dd0208eb CV |
175 | 2002-06-21 Corinna Vinschen <corinna@vinschen.de> |
176 | ||
177 | * security.cc (alloc_sd): Remove unnecessary retrieval of owner name. | |
178 | Check uid for current user first and use SIDs from cygheap if so. | |
179 | Set errno to EINVAL if user SID isn't retrievable. Just print user SID | |
180 | as debug output. | |
181 | Don't bail out if group SID isn't retrievable. Change debug output | |
182 | appropriately. | |
183 | ||
d7c2bd8e CF |
184 | 2002-06-21 Christopher Faylor <cgf@redhat.com> |
185 | ||
186 | * errno.cc: Change text description for EBADF throughout. | |
187 | ||
7c02f861 CF |
188 | 2002-06-20 Pierre Humblet <pierre.humblet@ieee.org> |
189 | ||
190 | * uinfo.cc (cygheap_user::ontherange): Use env_name for NetUserGetInfo. | |
191 | (cygheap_user::env_logsrv): Verify env_domain is valid. | |
192 | * environ.cc: Include child_info.h and keep spenvs[] sorted. | |
193 | (environ_init): Check child_proc_info instead of myself->ppid_handle. | |
194 | ||
c25ebbaf CF |
195 | 2002-06-19 Christopher Faylor <cgf@redhat.com> |
196 | ||
197 | * fhandler.cc (fhandler_base::set_flags): Change priority of "linked | |
198 | in" default binmode setting so that it has priority over optional | |
199 | setting. | |
200 | ||
03a2ce9a CF |
201 | 2002-06-19 Christopher Faylor <cgf@redhat.com> |
202 | ||
d70b993f | 203 | Use hMainProc where appropriate, throughout. |
03a2ce9a CF |
204 | * environ.cc (spenv::retrieve): Add debugging statements. |
205 | ||
206 | * pinfo.cc (set_myself): Don't call strace.hello if already stracing. | |
207 | * strace.cc (strace): Move NO_COPY keyword so that it will actually | |
208 | take effect. | |
209 | ||
834224ab CV |
210 | 2002-06-19 Corinna Vinschen <corinna@vinschen.de> |
211 | ||
212 | * uinfo.cc (cygheap_user::ontherange): Call NetUserGetInfo() only with | |
213 | non-NULL logserver parameter. | |
214 | ||
e40670ee CF |
215 | 2002-06-16 Christopher Faylor <cgf@redhat.com> |
216 | ||
217 | * cygheap.h (cygheap_user::issetuid): New method. | |
218 | * dtable.cc (dtable::vfork_child_dup): Use new method to determine if | |
219 | we are in "setuid mode." | |
220 | * fork.cc (fork_parent): Ditto. | |
221 | * spawn.cc (spawn_guts): Ditto. | |
222 | * syscalls.cc (seteuid32): Ditto. | |
223 | (setegid32): Ditto. | |
224 | * environ.cc (spenv::retrieve): (Suggested by Pierre Humblet) Do | |
225 | potential recalculation of cygheap_user stuff when in setuid mode. | |
00a9e8a0 CF |
226 | Return special value when environment variable should be calculated but |
227 | not added. | |
e40670ee CF |
228 | (build_env): Don't add retrieved value to dstp if it is 'dont_add'. |
229 | ||
a05a9e01 CF |
230 | 2002-06-16 Christopher Faylor <cgf@redhat.com> |
231 | ||
232 | Changes suggested by Pierre Humblet. | |
233 | * environ.cc (NL): New macro. | |
234 | (conv_envvars): Use NL macro to fill in name and namelen. | |
235 | (spenv::namelen): New field. | |
236 | (spenvs): Use NL to fill in name and namelen. | |
237 | (spenv::retrieve): Eliminate length argument. Instead, use namelen | |
238 | throughout. | |
239 | (build_env): Don't calculate length of initial FOO= part of | |
240 | environment. Accommodate spenv::retrive argument change. | |
241 | ||
5f25e1d1 CF |
242 | 2002-06-16 Christopher Faylor <cgf@redhat.com> |
243 | ||
244 | * cygheap.h (cygheap_user::winname): New field. | |
245 | * cygheap.cc (cygheap_user::set_name): Clear winname when name changes. | |
246 | * uinfo.cc (cygheap_user::env_logsrv): Avoid calculating server when | |
247 | Windows user == SYSTEM. | |
248 | (cygheap_user::env_domain): Set winname here too. | |
249 | (cygheap_user::env_userprofile): Eliminate superfluous tests. | |
250 | (cygheap_user::env_name): Seed winname by calling env_domain(). | |
251 | ||
5c8bce24 CF |
252 | 2002-06-12 Pierre Humblet <pierre.humblet@ieee.org> |
253 | ||
254 | * spawn.cc (spawn_guts): Revert removal of ciresrv.moreinfo->uid = | |
255 | ILLEGAL_UID. | |
256 | ||
6ea3e429 CF |
257 | 2002-06-15 Christopher Faylor <cgf@redhat.com> |
258 | ||
259 | * child_info.h (child_proc_info): Declare as base class. | |
260 | (spawn_info): Declare as alias of child_proc_info to aid debugging. | |
261 | (fork_info): Ditto. | |
262 | * cygheap.cc (cygheap_fixup_in_child): Use child_proc_info global | |
263 | rather than parameter. | |
264 | * cygheap.h (cygheap_fixup_in_child): Reflect above change in | |
265 | declaration. | |
266 | * dcrt0.cc (_dll_crt0): Move 'si' definition here. Assign | |
267 | child_proc_info. | |
268 | (dll_crt0_1): Accommodate cygheap_fixup_in_child and *_info changes. | |
269 | * environ.cc (spenv::retrieve): Make regparm. | |
270 | * environ.h (environ_init): Ditto. | |
271 | (win_env::add_cache): Ditto. | |
272 | (build_env): Ditto. | |
273 | (getwinenv): Ditto. | |
274 | * fork.cc (sync_with_parent): Use fork_info global. | |
275 | (fork_child): Ditto. | |
276 | ||
cff111a6 CF |
277 | 2002-06-14 Christopher Faylor <cgf@redhat.com> |
278 | ||
279 | * uinfo.cc (cygheap_user::ontherange): Don't set HOMEDRIVE or HOMEPATH | |
280 | unless one or the other is specified. | |
281 | ||
6d171b44 CF |
282 | 2002-06-14 Christopher Faylor <cgf@redhat.com> |
283 | ||
284 | * cygheap.h (cygheap_user::userprofile_env_buf): New static member. | |
285 | * environ.cc (build_env): Add debugging statement. | |
286 | (spenvs): Switch functions for USERDOMAIN and USERNAME. | |
287 | * spawn.cc (spawn_guts): Move environment initialization prior to | |
288 | cygheap_setup_for_child or environment info will never be copied to | |
289 | child. | |
290 | ||
a77d35f7 CF |
291 | 2002-06-14 Christopher Faylor <cgf@redhat.com> |
292 | ||
293 | * cygheap.h (cygheap_user): Add static members to hold home{drive,path} | |
294 | info. | |
295 | * uinfo.cc (cygheap_user::ontherange): Use static class members for | |
296 | local HOME* storage. | |
297 | ||
9a771b29 CF |
298 | 2002-06-14 Christopher Faylor <cgf@redhat.com> |
299 | ||
300 | * cygheap.cc (cygheap_user::set_logsrv): Remove. | |
301 | (cygheap_user::set_domain): Ditto. | |
302 | * cygheap.h (cygheap_user::set_logsrv): Remove declaration. | |
303 | (cygheap_user::set_domain): Ditto. | |
304 | (cygheap_user::env_domain): Declare new method. | |
305 | (cygheap_user::env_name): Ditto. | |
306 | * environ.cc (spenvs): Add two environment variables. | |
307 | * spawn.cc (spawn_guts): Call build_env after RevertToSelf. Always set | |
308 | ciresrv.mount_h. | |
309 | (cygheap_user::ontherange): Recalculate homedrive/homepath if they are | |
310 | empty. Use env_logsrv to get logon server. | |
311 | (cygheap_user::env_logsrv): Calculate server name here rather than | |
312 | relying on it having been previously calculated. | |
313 | (cygheap_user::env_domain): Ditto for domain name. | |
314 | (cygheap-user::env_name): New method. | |
315 | ||
316 | 2002-06-12 Pierre Humblet <pierre.humblet@ieee.org> | |
317 | ||
318 | * syscalls.cc (seteuid32): Do not get or set the environment. Do not | |
319 | call LookupAccountSid nor internal_getlogin. Set cygheap->user name | |
320 | and sid from the passwd entry. | |
321 | * uinfo.cc (uinfo_init): Only call internal_getlogin when starting from | |
322 | a non Cygwin process and use the values returned in user. | |
323 | (internal_getlogin): Simplify to case where starting from a non Cygwin | |
324 | process. Store return values in user and return void. Do not set the | |
325 | Windows default environment. | |
326 | * dcrt0.cc (dll_crt0_1): Call uinfo_init only when needed. Do not set | |
327 | myself->uid nor reset user.sid. | |
328 | * spawn.cc (spawn_guts): Get the sid from cygheap->user. Always | |
329 | RevertToSelf(). Don't set uid in impersonated case. | |
330 | * cygheap.cc (cygheap_user::set_sid): Do not set orig_sig. | |
331 | (cygheap_user::set_orig_sid): New. | |
332 | * cygheap.h: Declare cygheap_user::set_sid. | |
333 | * winsup.h: Add argument to uinfo_init(). | |
334 | ||
470e8c46 CV |
335 | 2002-06-14 Corinna Vinschen <corinna@vinschen.de> |
336 | ||
337 | * environ.cc (build_env): If realloc moves envblock, move s with it. | |
338 | ||
39be53dc CF |
339 | 2002-06-13 Nicholas S. Wourms <nwourms@netscape.net> |
340 | ||
341 | * winver.rc: Add more words to copyright. | |
342 | ||
0e6d80e4 CV |
343 | 2002-06-13 Corinna Vinschen <corinna@vinschen.de> |
344 | ||
345 | * cygheap.cc (cygheap_user::set_name): Revert previous change. | |
346 | * environ.cc (spenv::retrieve): Check return value of call to | |
347 | cygheap->user.*from_cygheap(). | |
348 | ||
5682a6dd CV |
349 | 2002-06-13 Corinna Vinschen <corinna@vinschen.de> |
350 | ||
351 | * cygheap.cc (cygheap_user::set_name): Remove setting homedrive and | |
352 | homepath to NULL. | |
353 | (cygheap_user::set_logsrv): Fix free'ing of plogsrv. | |
354 | * cygheap.h (cygheap_user::cygheap_user): Initialize homedrive and | |
355 | homepath to NULL. | |
356 | ||
5f74ae83 CF |
357 | 2002-06-13 Christopher Faylor <cgf@redhat.com> |
358 | ||
359 | * security.cc (get_logon_server): Use strcasematch rather than | |
360 | strcasecmp. | |
361 | ||
4863867a CF |
362 | 2002-06-12 Christopher Faylor <cgf@redhat.com> |
363 | ||
364 | * path.cc (chdir): Minor cleanup. | |
365 | ||
12a2ef44 CF |
366 | 2002-06-12 Christopher Faylor <cgf@redhat.com> |
367 | ||
368 | * environ.cc (build_env): Correctly fill out windows environment block | |
369 | with win32 paths rather than posix paths. | |
370 | ||
da086d02 CF |
371 | 2002-06-12 Christopher Faylor <cgf@redhat.com> |
372 | ||
373 | * cygheap.cc (cygheap_user::set_name): Set homedrive and homepath to | |
374 | NULL on user name change. | |
375 | (cygheap_user::set_logsrv): Allocate enough space for leading \\ so | |
376 | that we can put this in the environment, if needed. | |
377 | * cygheap.h (homebodies): New enum. | |
378 | (cygheap_user::homedrive): New field. | |
379 | (cygheap_user::homepath): Ditto. | |
380 | (cygheap_user::env_logsrv): New method. | |
381 | (cygheap_user::env_homepath): New method. | |
382 | (cygheap_user::env_homedrive): New method. | |
383 | (cygheap_user::env_userprofile): New method. | |
384 | (cygheap_user::ontherange): New method. | |
385 | * environ.cc (envsize): Eliminate debugging argument. | |
386 | (environ_init): Assume that envc counts number of elments not total | |
387 | size. | |
388 | (spenv): New class. | |
389 | (spenvs): New array, renamed from forced_winenv_vars, using spenv. | |
390 | (spenv::retrieve): New method. | |
391 | (build_env): Rename from 'winenv' -- one stop shopping for building new | |
392 | environment blocks for both windows and "unix". | |
393 | * environ.h (build_env: Declare. | |
394 | (winenv): Delete declaration. | |
395 | (envsize): Ditto. | |
396 | * spawn.cc (spawn_guts): Use build_env to build windows and cygwin | |
397 | environment blocks. | |
398 | * uinfo.cc (internal_getlogin): Eliminate environment manipulation. | |
399 | Default to info from GetUserName if it exists. Move HOMEPATH and | |
400 | HOMEDRIVE stuff elsewhere. Move HOME setting elsewhere. Only set HOME | |
401 | environment variable in processes that are not parented by a cygwin | |
402 | process. | |
403 | (cygheap_user::ontherange): Define new method. | |
404 | (cygheap_user::env_logsrv): Ditto. | |
405 | (cygheap_user::env_homepath): Ditto. | |
406 | (cygheap_user::env_homedrive): Ditto. | |
407 | (cygheap_user::env_userprofile): Ditto. | |
408 | ||
077d8b23 CF |
409 | 2002-06-11 Christopher Faylor <cgf@redhat.com> |
410 | ||
411 | * spawn.cc (spawn_guts): More hToken removal cleanup. | |
412 | ||
d5377829 CF |
413 | 2002-06-09 Pierre Humblet <pierre.humblet@ieee.org> |
414 | ||
415 | * spawn.cc (spawn_guts): Define sec_attribs and call sec_user_nih() | |
416 | only once. | |
417 | ||
380aaf2d CF |
418 | 2002-06-10 Christopher Faylor <cgf@redhat.com> |
419 | ||
420 | * Makefile.in: Ensure that -MD gets added to CFLAGS regardless of | |
421 | CFLAGS command-line setting. | |
422 | ||
423 | * cygwin.din: Export sexec* functions as function which returns ENOSYS | |
424 | (i.e., sexec* is deprecated). | |
425 | * dtable.cc (dtable::vfork_child_dup): Ensure that impersonation is | |
426 | restored even on failure. | |
427 | * exec.cc: Throughout, remove references to sexec* and _spawnve. | |
428 | * pinfo.h: Remove _spawnve declaration. | |
429 | * spawn.cc: Rename _spawnve to spawnve and use throughout. | |
430 | (spawn_guts): Eliminate hToken argument and processing of same. Just | |
431 | perform special actions if impersonating. | |
432 | (spawnve): Rename from _spawnve. | |
433 | ||
b01cbd5d CF |
434 | 2002-06-10 Christopher Faylor <cgf@redhat.com> |
435 | ||
436 | * include/sys/strace.h (strace): Avoid use of constructor. | |
437 | ||
fe4283af CF |
438 | 2002-06-10 Christopher Faylor <cgf@redhat.com> |
439 | ||
440 | * dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before | |
441 | running global ctors. | |
442 | * wincap.h (wincap): Eliminate constructor. Default is to zero memory, | |
443 | anyway. | |
444 | * wincap.cc (wincap): Copy this on fork to avoid initialization in | |
445 | forked processes. | |
446 | ||
3d78e129 CV |
447 | 2002-06-10 Corinna Vinschen <corinna@vinschen.de> |
448 | ||
449 | * fhandler.h (fhandler_socket::fixup_after_fork): Revert patch from | |
450 | 2002-06-04. | |
451 | * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Ditto. | |
452 | (fhandler_socket::dup): Ditto. | |
453 | * net.cc (fdsock): Make sockets explicitely noninheritable on NT. | |
454 | ||
c2102631 CF |
455 | 2002-06-09 Christopher Faylor <cgf@redhat.com> |
456 | ||
457 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Correctly | |
458 | set number of links for directory, if appropriate. | |
459 | ||
43c3c4e3 RC |
460 | 2002-06-10 Robert Collins <rbtcollins@hotmail.com> |
461 | ||
462 | * thread.cc: Variation of a patch from Thomas Pffaf. | |
d70b993f | 463 | (__pthread_detach): Cleanup thread object if the thread has terminated. |
43c3c4e3 RC |
464 | (__pthread_join): Change order of error checks, and lock against |
465 | join/detach/exit races. | |
466 | (__pthread_exit): Lock object against join/detach/exit races. | |
467 | (pthread::thread_init_wrapper): Ditto. | |
468 | (thread_init_wrapper): Rename to pthread::thread_init_wrapper. | |
469 | (pthread::create): Check that the mutex initialized correctly. | |
470 | (pthread::push_cleanup_handler): Lock against potential cancellation | |
471 | race. NB: this may not be required if pthread_cleanup_push is non- | |
472 | cancelable. | |
473 | * thread.h (pthread::mutex): New member. | |
474 | (thread_init_wrapper): Rename to pthread::thread_init_wrapper. | |
475 | (pthread::thread_init_wrapper_: New static member. | |
476 | ||
007276b3 RC |
477 | 2002-06-10 Robert Collins <rbtcollins@hotmail.com> |
478 | ||
479 | * cygwin.din: Add _pthread_cleanup_push and _pthread_cleanup_pop. | |
480 | * pthread.cc: Change __pthread_self to pthread::self() thruoghout. | |
481 | (_pthread_cleanup_push): New function. | |
482 | (_pthread_cleanup_pop): Ditto. | |
483 | * thread.cc: Thanks to Thomas Pfaff for the pthread cleanup_push,_pop | |
484 | patch, this work is derived from that. | |
485 | Change __pthread_self to pthread::self() thruoghout. | |
486 | (__pthread_self): Rename to pthread::self. | |
487 | (pthread::self): New method. | |
488 | (pthread::pthread): Initialize new member. | |
489 | (pthread::push_cleanup_handler): New method. | |
490 | (pthread::pop_cleanup_handler): New method. | |
491 | (pthread::pop_all_cleanup_handlers): New method. | |
492 | (__pthread_exit): Pop all cleanup handlers. | |
493 | * thread.h (pthread::push_cleanup_handler): Declare. | |
494 | (pthread::pop_cleanup_handler): Ditto. | |
495 | (pthread::pop_all_cleanup_handlers): Ditto. | |
496 | (pthread::self): New static method. | |
497 | (__pthread_exit): Give C++ linkage. | |
498 | (__pthread_join): Ditto. | |
499 | (__pthread_detach): Ditto. | |
500 | (__pthread_self): Remove. | |
501 | ||
502 | 2002-04-24 Thomas Pfaff <tpfaff@gmx.net> | |
503 | ||
c2102631 CF |
504 | * include/pthread.h (__pthread_cleanup_handler): New structure. |
505 | (pthread_cleanup_push): Rewritten. | |
007276b3 RC |
506 | (pthread_cleanup_pop): Ditto. |
507 | (_pthread_cleanup_push): New prototype. | |
c2102631 | 508 | (_pthread_cleanup_pop): Ditto. |
007276b3 RC |
509 | |
510 | 2002-04-24 Thomas Pfaff <tpfaff@gmx.net> | |
511 | ||
512 | * thread.cc (thread_init_wrapper): Check if thread is already joined. | |
513 | (__pthread_join): Set joiner first. | |
514 | (__pthread_detach): Ditto. | |
515 | ||
fec98ec9 RC |
516 | 2002-06-10 Robert Collins <rbtcollins@hotmail.com> |
517 | ||
518 | * cygserver_transport.cc (create_server_transport): Finish the split | |
519 | out of sockets code from transport_layer_base. Thanks to Nicholas | |
520 | Wourms and Conrad Scott for catching this. | |
521 | ||
7ac66bdd CF |
522 | 2002-06-08 Christopher Faylor <cgf@redhat.com> |
523 | ||
524 | * pinfo.cc (pinfo_dummy): Initialize to correct size. | |
525 | ||
a004a5b8 CF |
526 | 2002-06-08 Christopher Faylor <cgf@redhat.com> |
527 | ||
528 | * path.cc: Change MOUNT_AUTO to MOUNT_CYGDRIVE throughout. | |
529 | * shared_info.h (CURR_MOUNT_MAGIC): Update. | |
530 | ||
50484e8e CF |
531 | 2002-06-08 Christopher Faylor <cgf@redhat.com> |
532 | ||
533 | * external.cc (cygwin_internal): Make v1 mount table access invalid. | |
534 | * path.cc (mount_info::init): Remove had_to_create_mount_areas initialization. | |
535 | (mount_info::from_registry): Remove v1 table import. | |
536 | (mount_info::read_v1_mounts): Eliminate. | |
537 | (mount_info::import_v1_mounts): Ditto. | |
538 | * shared_info.h (mount_info): Ditto for both of above. | |
539 | * sys/mount.h (MOUNT_DEVFS): New enum. | |
540 | (MOUNT_PROC): Ditto. | |
541 | ||
2e2dcba3 CF |
542 | 2002-06-08 Christopher Faylor <cgf@redhat.com> |
543 | ||
544 | * include/wchar.h: Define __need_size_t. | |
545 | ||
9cde3cf3 CF |
546 | 2002-06-07 Christopher Faylor <cgf@redhat.com> |
547 | ||
548 | * fhandler_socket.cc (fhandler_socket::fstat): Don't assume that socket | |
549 | is unix-domain socket. | |
550 | ||
551 | 2002-06-07 Christopher Faylor <cgf@redhat.com> | |
552 | ||
553 | * times.cc (hires_ms::prime): Set init flag. | |
554 | ||
555 | 2002-06-07 Conrad Scott <conrad.scott@dsl.pipex.com> | |
556 | ||
557 | * times.cc (hires_ms::prime): Adjust epoch of initime_us from 1601 to | |
558 | 1970. | |
559 | ||
9d0efbb3 CF |
560 | 2002-06-06 Christopher Faylor <cgf@redhat.com> |
561 | ||
562 | * autoload.cc (timeGetDevCaps): Define new autoload function. | |
563 | (timeGetTime): Ditto. | |
564 | (timeBeginPeriod): Ditto. | |
565 | (timeEndPeriod): Ditto. | |
566 | * hires.h (hires_base): New class. Renamed from hires. | |
567 | (hires_us): New class. | |
568 | (hires_ms): New class. | |
569 | * strace.cc (strace::microseconds): Use hires_us class. | |
570 | * times.cc (gettimeofday): Use hires-ms class. | |
571 | (hires_us::prime): Renamed from hires::prime. | |
572 | (hires_us::usecs): Renamed from hires:usecs. | |
573 | (hires_ms::prime): New method. | |
574 | (hires_ms::usecs): New method. | |
575 | (hires_ms::~hires_ms): New destructor. | |
576 | ||
46b941fc CF |
577 | 2002-06-06 Christopher Faylor <cgf@redhat.com> |
578 | ||
579 | * autoload.cc (noload): Correctly save argument count register. | |
580 | ||
c4e6ff48 CV |
581 | 2002-06-05 Conrad Scott <conrad.scott@dsl.pipex.com> |
582 | ||
583 | * fhandler.cc (fhandler_base::fstat): Initialise tv_nsec member of | |
584 | st_atim, st_mtim, and st_ctim fields. | |
585 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Ditto. | |
586 | * fhandler_process.cc (fhandler_process::fstat): Ditto. | |
46b941fc CF |
587 | * glob.c (stat32_to_STAT): Copy across the whole st_atim, st_mtime, and |
588 | st_ctim fields. | |
c4e6ff48 CV |
589 | * syscalls.cc (stat64_to_stat32): Ditto. |
590 | * times.cc (to_timestruc_t): New function. | |
591 | (time_as_timestruc_t): New function. | |
592 | * winsup.h: Add to_timestruc_t and time_as_timestruc_t functions. | |
46b941fc CF |
593 | * include/cygwin/stat.h: Replace time_t with timestruc_t throughout for |
594 | all file times, removing the st_spare1, st_spare2, and st_spare3 fields | |
595 | in the process. Add macros to access tv_sec fields by old names. | |
596 | * include/cygwin/types.h: Typedef timespec_t and timestruc_t as struct | |
597 | timespec. | |
c4e6ff48 | 598 | |
2e8abfc1 CV |
599 | 2002-06-03 Pierre Humblet <pierre.humblet@ieee.org> |
600 | ||
601 | * sec_helper.cc (lookup_name): Suppress. | |
602 | * security.cc (alloc_sd): Remove logsrv argument. | |
603 | Remove two calls to lookup_name. | |
604 | (set_security_attribute): Remove logsrv argument. | |
605 | Remove logsrv argument in call to alloc_sd. | |
606 | (set_nt_attribute): Remove logsrv argument. | |
607 | Remove logsrv argument in call to set_security_attribute. | |
608 | (set_file_attribute): Remove logsrv argument. | |
609 | Remove logsrv argument in call to set_nt_attribute. | |
610 | (set_file_attribute): Remove logsrv argument. | |
611 | Remove logsrv argument in call to set_file_attribute. | |
612 | * syscalls.cc (chown_worker): Remove logserver argument in | |
613 | call to set_file_attribute. | |
614 | (chmod): Ditto. | |
615 | * shm.cc (shmget): Remove logsrv argument in call to alloc_sd. | |
616 | * uinfo.cc (internal_getlogin): Replace calls to | |
617 | lookup_name by call to LookupAccountName. | |
618 | * security.h: Remove logsrv in declarations of set_file_attribute | |
619 | and alloc_sd. Remove declaration of lookup_name. | |
620 | ||
f7a7cc90 CF |
621 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
622 | ||
623 | * child_info.h (CHILD_INFO_MAGIC): Oops. Revert previous change. gcc | |
624 | 3.1 bug? | |
625 | ||
784e340c CF |
626 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
627 | ||
628 | * child_info.h (CHILD_INFO_MAGIC): Update. | |
629 | ||
58fcd93a CF |
630 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
631 | ||
632 | * strace.cc (strace::hello): Set inited, when appropriate. | |
633 | ||
ee964e2f CF |
634 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
635 | ||
636 | * cygwin.din: Eliminate some newlib wrappers. | |
637 | * path.cc (get_devn): Only consider first 99 potential com devices. | |
638 | (get_device_number): Ditto. | |
639 | * times.cc (_times): Eliminate. | |
640 | (_times): Renamed from times(). | |
641 | ||
ea4e6ec8 CF |
642 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
643 | ||
644 | * dir.cc (rmdir): Streamline. Detect attempts to remove directories | |
645 | from "read-only" virtual devices. (Suggested by Pavel Tsekov) | |
46b941fc CF |
646 | * syscalls.cc (unlink): Detect attempts to remove directories from |
647 | "read-only" virtual devices. (From Pavel Tsekov) | |
ea4e6ec8 | 648 | |
2bb6b3e5 CF |
649 | 2002-06-05 Christopher Faylor <cgf@redhat.com> |
650 | ||
651 | * dtable.cc (handle_to_fn): Check error return value from NtQueryObject | |
652 | first before seeing if name buffer is NULL. | |
653 | ||
654 | * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format. | |
655 | * passwd.cc (read_etc_passwd): Ditto. | |
656 | ||
e9259cb2 RC |
657 | 2002-04-18 Thomas Pfaff <tpfaff@gmx.net> |
658 | ||
659 | * thread.h (pthread::joiner): New member. | |
660 | * thread.cc (pthread::pthread): Initialize joiner to NULL | |
661 | (pthread::create): Increment of thread counter moved from | |
662 | __pthread_create to this location. | |
663 | (__pthread_create): Increment thread counter removed. | |
664 | (thread_init_wrapper): Set joiner to self when thread was created | |
665 | detached. | |
666 | (__pthread_exit): delete thread when it is detached and not | |
667 | joined. | |
668 | (__pthread_join): Check for deadlock and delete thread when it has | |
669 | terminated. | |
670 | (__pthread_detach): Set joiner to self when thread state | |
671 | changed to detached. | |
672 | ||
eceee297 CV |
673 | 2002-06-05 Corinna Vinschen <corinna@vinschen.de> |
674 | ||
675 | * grp.cc (read_etc_group): When emulating nonexisting group file on | |
676 | NT systems, read primary group SID from process token. Use that info | |
677 | to create correct group entry. On error or on 9x systems fallback | |
678 | to emulating Administrators group as before. | |
ae1ebb81 | 679 | * passwd.cc (read_etc_passwd): When emulating nonexisting passwd file |
46b941fc | 680 | on NT systems, read user and primary group SID from process token. |
ae1ebb81 CV |
681 | Use that info to create correct passwd entry. On error or on 9x |
682 | systems fallback to emulating user with Administrator user id and | |
683 | Administrators group as before. | |
eceee297 | 684 | |
38f39368 CV |
685 | 2002-06-05 Corinna Vinschen <corinna@vinschen.de> |
686 | ||
687 | * grp.cc (etc_group): Removed. | |
688 | (parse_grp): Make line parameter nonconst. Don't copy data into new | |
689 | allocated memory. Check for CR instead of LF to accomodate new | |
690 | read method. | |
691 | (add_grp_line): Make line parameter nonconst. | |
692 | (read_etc_group): Rearrange using new pwdgrp_read class. | |
693 | * passwd.cc (parse_pwd): Don't copy data into new allocated memory. | |
694 | Check for CR instead of LF to accomodate new read method. | |
695 | (read_etc_passwd): Rearrange using new pwdgrp_read class. | |
696 | * pwdgrp.h (pwdgrp_check::set_last_modified): Use different | |
697 | parameters. | |
698 | (class pwdgrp_read): New class for opening and reading passwd and | |
699 | group files. | |
700 | ||
ce006ffa CF |
701 | 2002-06-04 Christopher Faylor <cgf@redhat.com> |
702 | ||
703 | * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote | |
704 | shares. | |
705 | * path.cc (mount_info::conv_to_win32_path): Set flags to binary when | |
706 | mount entry is not found. | |
707 | (mount_info::set_flags_from_win32_path): Ditto. | |
708 | ||
147d2ab4 CF |
709 | 2002-06-04 Christopher Faylor <cgf@redhat.com> |
710 | ||
711 | * dtable.cc (handle_to_fn): Correct placement and length of name | |
ea4e6ec8 | 712 | buffer. (Suggested by Pavel Tsekov) |
147d2ab4 | 713 | |
e35f391f CF |
714 | 2002-06-04 Christopher Faylor <cgf@redhat.com> |
715 | ||
716 | Remove fcntl.h includes throughout. | |
717 | * fhandler.h: Move fcntl.h include here. | |
718 | (fhandler_base::set_flags): Accept supplied_bin argument. Make | |
719 | non-inlined. | |
720 | * dtable.cc (dtable::init_std_file_from_handle): Just use binmode from | |
721 | pc. | |
722 | (reset_to_open_binmode): Use set_flags. | |
723 | * cygwin.din (open): Avoid newlib wrapper. | |
724 | (read): Ditto. | |
725 | (unlink): Ditto. | |
726 | (write): Ditto. | |
727 | * fhandler.cc (fhandler_base::set_flags): Accept supplied_bin argument. | |
728 | Make binmode decisions here. | |
729 | (fhandler_base::open): Avoid using pc if it is NULL. Eliminate binmode | |
730 | logic. Just call set_flags with binmode argument. | |
731 | (fhandler_base::init): Call set_flags with binmode argument. | |
732 | * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto. | |
733 | * fhandler_console.cc (fhandler_console::open): Ditto. | |
734 | (fhandler_console::init): Force binary on open. | |
735 | * fhandler_disk_file.cc (fhandler_disk_file::open): Don't set binmode | |
736 | here. Let it happen in base class. | |
737 | * fhandler_dsp.cc (fhandler_dev_dsp::open): Force binmode open. Set | |
738 | return value appropriately if unable to open. | |
739 | * fhandler_proc.cc (fhandler_proc::open): Make sure flags are set | |
740 | before open_status. | |
741 | * fhandler_process.cc (fhandler_process::open): Ditto. | |
742 | * fhandler_registry.cc (fhandler_registry::open): Ditto. | |
743 | * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto. | |
744 | * fhandler_raw.cc (fhandler_dev_raw::open): Force O_BINARY by default. | |
745 | * fhandler_serial.cc (fhandler_serial::init): Ditto. | |
746 | * fhandler_tty.cc (fhandler_tty_slave::open): Ditto. | |
747 | (fhandler_pty_master::open): Ditto. | |
748 | * fhandler_virtual.cc (fhandler_virtual::open): Ditto. | |
749 | * fhandler_windows.cc (fhandler_windows::open): Ditto. | |
750 | * fhandler_zero.cc (fhandler_dev_zero::open): Ditto. | |
751 | * net.cc (fdsock): Ditto. | |
752 | * path.cc (path_conv::check): Avoid checking for executable extension | |
753 | when directory. (Suggested by Pavel Tsekov) | |
754 | (set_flags): Set PATH_TEXT explicitly, when appropriate. | |
755 | (mount_info::conv_to_win32_path): Use set_flags() to set path flags. | |
756 | * path.h (PATH_TEXT): New enum. | |
757 | (path_conv::binmode): Return appropriate constant based on binmode. | |
758 | * pipe.cc (make_pipe): Set binmode to O_TEXT xor O_BINARY. | |
759 | * syscalls.cc (setmode_helper): Make debugging message a little | |
760 | clearer. | |
761 | (setmode): Set binmode via set_flags. | |
762 | ||
4e138847 CV |
763 | 2002-06-04 Corinna Vinschen <corinna@vinschen.de> |
764 | ||
765 | * fhandler.h (class fhandler_socket): Add private method | |
766 | fixup_after_fork (bool, HANDLE). | |
767 | * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Move | |
768 | functionality to new private method. Add closing parent socket | |
769 | if not called from dup(). Create method new calling private method | |
770 | with appropriate parameter. | |
771 | (fhandler_socket::fixup_after_exec): Call private method | |
772 | fixup_after_fork with appropriate parameter. | |
773 | (fhandler_socket::dup): Ditto. | |
774 | ||
775 | 2002-06-04 Corinna Vinschen <corinna@vinschen.de> | |
6bfca3cc CV |
776 | |
777 | * fhandler_dsp.cc (fhandler_dev_dsp::open): Set errno to EACCES if | |
778 | requested mode isn't supported. | |
779 | ||
e02f1e9c CF |
780 | 2002-06-03 Christopher Faylor <cgf@redhat.com> |
781 | ||
782 | * fhandler.cc (fhandler_base::open): Don't set binmode if already set. | |
783 | Don't check for file. Files should already be set. Report on binary | |
784 | mode for debugging. | |
785 | (fhandler_base::fhandler_base): Don't set default binmode here. That's | |
786 | for later. | |
787 | * fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set | |
788 | binmode, ever, for console. | |
789 | * fhandler_disk_file.cc (fhandler_disk_file::open): Always set the | |
790 | binary mode to the value derived from mount table. | |
791 | * path.cc (mount_info::conv_to_win32_path): Default to binmode if path | |
792 | does not translate into anything in the mount table. | |
793 | ||
31b98a62 CV |
794 | 2002-06-03 Corinna Vinschen <corinna@vinschen.de> |
795 | ||
796 | * external.cc (cygwin_internal): Add CW_EXTRACT_DOMAIN_AND_USER | |
797 | handling to call extract_nt_dom_user() from applications. | |
798 | * include/sys/cygwin.h (cygwin_getinfo_types): Add | |
799 | CW_EXTRACT_DOMAIN_AND_USER. | |
800 | ||
b3c29731 CV |
801 | 2002-06-03 Corinna Vinschen <corinna@vinschen.de> |
802 | ||
803 | * syscalls.cc (stat64_to_stat32): Transform st_dev correctly. | |
804 | (fstat64): Add evaluating st_ino and st_dev. | |
805 | (stat_worker): Evaluate st_dev as 32 bit value. | |
806 | * include/cygwin/stat.h: Use new dev_t definition throughout. | |
807 | * include/cygwin/types.h: Define __dev16_t and __dev32_t. Define | |
808 | dev_t according to __CYGWIN_USE_BIG_TYPES__ setting. | |
809 | * include/sys/sysmacros.h: Define major, minor and makedev | |
810 | according to __CYGWIN_USE_BIG_TYPES__ setting. | |
811 | ||
656c3192 CV |
812 | 2002-06-03 Pierre Humblet <pierre.humblet@ieee.org> |
813 | ||
814 | * syscalls.cc (setegid32): Verify the correctness of the gid | |
815 | of the group returned by getgrgid32. | |
816 | ||
1eb934b7 CV |
817 | 2002-06-03 Pierre Humblet <pierre.humblet@ieee.org> |
818 | ||
819 | * security.cc (lsa2wchar): Suppressed. | |
820 | (get_lsa_srv_inf): Suppressed. | |
821 | (get_logon_server_and_user_domain): Suppressed. | |
822 | (get_logon_server): Essentially new. | |
823 | (get_user_groups): Add "domain" argument. Only lookup the | |
824 | designated server and use "domain" in LookupAccountName. | |
825 | (is_group_member): Simplify the arguments. | |
826 | (get_user_local_groups): Simplify the arguments. Do only a | |
827 | local lookup. Use "BUILTIN" and local domain in LookupAccountName. | |
828 | (get_user_primary_group). Only lookup the designated server. | |
829 | (get_group_sidlist): Remove logonserver argument. Do not lookup | |
830 | any server for the SYSTEM account. | |
831 | (create_token): Delete logonserver and call to get_logon_server. | |
832 | Adjust arguments of get_group_sidlist, see above. | |
833 | * security.h: Delete declaration of get_logon_server_and_user_domain | |
e35f391f | 834 | and add declaration of get_logon_server. |
1eb934b7 CV |
835 | * uinfo.cc (internal_get_login): Call get_logon_server instead of |
836 | get_logon_server_and_user_domain. | |
837 | ||
37be5a67 CF |
838 | 2002-06-02 Christopher Faylor <cgf@redhat.com> |
839 | ||
e35f391f CF |
840 | * dtable.cc (handle_to_fn): Use largest match for device. Correctly |
841 | (?) deal with remote drive weirdness. | |
37be5a67 | 842 | |
97478fe6 CF |
843 | 2002-06-02 Christopher Faylor <cgf@redhat.com> |
844 | ||
845 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Check | |
846 | specifically for non-existent file, first. | |
847 | (fhandler_disk_file::fstat): Perform fd open on files with funny | |
848 | characters. | |
849 | ||
47413f84 CF |
850 | 2002-06-02 Christopher January <chris@atomice.net> |
851 | ||
852 | * fhandler_process.cc (fhandler_process::open): Set fileid. | |
853 | ||
6b7cd251 CF |
854 | 2002-06-02 Christopher Faylor <cgf@redhat.com> |
855 | ||
856 | Remove unneeded sigproc.h includes throughout. | |
857 | * fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument. | |
858 | * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search | |
859 | for given pid. | |
860 | (fhandler_proc::readdir): Assume that pid exists if it shows up in the | |
861 | winpid list. | |
862 | * fhandler_process.cc (fhandler_process::open): Simplify search for | |
863 | given pid. Call fill_filebuf with pinfo argument. | |
864 | (fhandler_process::fill_filebuf): Pass pinfo here and assume that it | |
865 | exists. | |
866 | * pinfo.h (pinfo::remember): Define differently if sigproc.h is not | |
867 | included. | |
868 | ||
869 | 2002-06-02 Christopher Faylor <cgf@redhat.com> | |
870 | ||
871 | * dll_init.cc (dll_list::detach): Don't run destructor on exit. | |
872 | ||
e065a187 CF |
873 | 2002-06-01 Christopher Faylor <cgf@redhat.com> |
874 | ||
875 | * fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into | |
876 | caller. | |
877 | * syscalls.cc (stat_worker): Calculate dev and ino calculation here, if | |
878 | zero. | |
879 | * fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for | |
880 | debugging. | |
881 | * fhandler_process.cc (fhandler_process::exists): Return 0 on | |
882 | nonexistence. | |
883 | (fhandler_process::fstat): Simplify pid logic. | |
884 | * fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting. | |
885 | ||
60abf1c4 CF |
886 | 2002-06-01 Christopher Faylor <cgf@redhat.com> |
887 | ||
888 | * path.cc (chdir): Don't allow cd'ing to a non-directory virtual path. | |
889 | ||
28af03fa CF |
890 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
891 | ||
892 | * fhandler_disk_file.cc (readdir): Move inode calculation into caller. | |
893 | (fhandler_cygdrive::readdir): Add "." and "..". | |
894 | * dir.cc (readdir): Move inode calculation here so that fhandler | |
895 | readdirs can benefit. | |
896 | ||
8e74c320 CF |
897 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
898 | ||
899 | * fhandler_console.cc (fhandler_console::open): Reinstate setting of | |
900 | flags. | |
901 | ||
30478f15 CF |
902 | * dtable.cc (dtable::init_std_file_from_handle): Default to using |
903 | binmode derived from path_conv, when required. | |
904 | * fhandler.h (fhandler_base::get_w_binary): Default to binmode if | |
905 | nothing else is specified. | |
906 | * fhandler.h (fhandler_base::get_r_binary): Ditto. | |
907 | ||
908 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_handle): Work | |
909 | around g++ warning. | |
910 | ||
911 | * path.cc (path_conv::check): Remove a debugging statement. | |
912 | ||
de86e35b CF |
913 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
914 | ||
915 | * fhandler_console.cc (fhandler_console::open): Always default to | |
916 | binmode. | |
917 | (fhandler_console::write_normal): Don't honor binmode setting. There | |
918 | is already a termios setting for this. | |
919 | (fhandler_console::init): Correct argument order in init call. | |
920 | ||
8461f41e CF |
921 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
922 | ||
923 | * fhandler.cc (fhandler_base::open): Make default open mode == binmode. | |
924 | (fhandler_base::init): Set open flags based on derived binmode argument. | |
925 | ||
bcd0ed9f CF |
926 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
927 | ||
928 | * dll_init.cc (dll_list::init): Eliminate unneeded debugging statement. | |
929 | ||
18c04cc4 CF |
930 | 2002-05-31 Christopher Faylor <cgf@redhat.com> |
931 | ||
932 | * fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more | |
933 | files. | |
934 | * fhandler_process.cc (fhandler_process::readdir): Ditto. | |
935 | * fhandler_registry.cc (fhandler_registry::readdir): Ditto. | |
936 | ||
69be001c CF |
937 | 2002-05-30 Christopher Faylor <cgf@redhat.com> |
938 | ||
939 | * path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES | |
940 | for nonexistent virtual device path. | |
941 | (chdir): Set correct errno when attempt is made to cd to nonexistent | |
942 | virtual device path. | |
943 | ||
5d8c7a56 CF |
944 | 2002-05-30 Christopher Faylor <cgf@redhat.com> |
945 | ||
946 | * fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call | |
947 | fstat_by_name if fd is not opened to allow fstat_by_name to properly | |
948 | set errno. | |
949 | ||
d74eced5 CV |
950 | 2002-05-30 Corinna Vinschen <corinna@vinschen.de> |
951 | ||
952 | * autoload.cc: Replace autoload statments for ZwXXX by NtXXX. | |
953 | Drop ZwQuerySystemInformation since NtQuerySystemInformation was | |
954 | already available. | |
955 | * fhandler_proc.cc (format_proc_uptime): Replace call to | |
956 | ZwQuerySystemInformation by call to NtQuerySystemInformation. | |
957 | (format_proc_stat): Ditto. | |
958 | * fhandler_process.cc (format_process_stat): Replace call to | |
959 | ZwQueryInformationProcess by call to NtQueryInformationProcess. | |
960 | (get_process_state): Ditto. | |
961 | (get_mem_values): Ditto. Replace call to ZwQueryVirtualMemory by | |
962 | call to NtQueryVirtualMemory. | |
963 | * ntdll.h: Cleanup. Drop ZwQuerySystemInformation since | |
964 | NtQuerySystemInformation was already available. Replace declarations | |
965 | of ZwXXX functions by declarations of NtXXX. | |
966 | * pinfo.cc (winpids::enumNT): Replace call to ZwQuerySystemInformation | |
967 | by call to NtQuerySystemInformation. | |
968 | ||
5d8c7a56 CF |
969 | 2002-05-29 Christopher Faylor <cgf@redhat.com> |
970 | ||
971 | * fhandler.cc (binmode): Default to binmode when mode is not known. | |
972 | ||
186637a5 CF |
973 | 2002-05-29 Christopher Faylor <cgf@redhat.com> |
974 | ||
975 | * include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate. | |
976 | * external.cc (fillout_pinfo): Use it. | |
977 | ||
3a571063 CV |
978 | 2002-05-29 Corinna Vinschen <corinna@vinschen.de> |
979 | ||
980 | * external.cc (fillout_pinfo): Use new version define. | |
981 | * include/sys/cygwin.h (external_pinfo): Define | |
982 | EXTERNAL_PINFO_VERSION_16_BIT and EXTERNAL_PINFO_VERSION_32_BIT | |
983 | instead of just EXTERNAL_PINFO_VERSION. | |
984 | ||
9fef0139 CF |
985 | 2002-05-29 Christopher Faylor <cgf@redhat.com> |
986 | ||
987 | * external.cc (fillout_pinfo): Set new version field in external_pinfo | |
988 | structure. | |
989 | * include/sys/cygwin.h (external_pinfo): Replace strace_file with | |
990 | version field. | |
991 | ||
a8d7ae61 CV |
992 | 2002-05-29 Corinna Vinschen <corinna@vinschen.de> |
993 | ||
994 | Change internal uid datatype from __uid16_t to __uid32_t | |
995 | throughout. | |
996 | * cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32, | |
997 | geteuid32, setuid32, seteuid32. | |
998 | * passwd.cc (getpwuid32): New function. | |
999 | (getpwuid_r32): Ditto. | |
1000 | * syscalls.cc (seteuid32): Ditto. | |
1001 | (setuid32): Ditto. | |
1002 | * uinfo.cc (getuid32): Ditto. | |
1003 | (geteuid32): Ditto. | |
d4000bc4 | 1004 | * winsup.h (uid16touid32): New macro, correct casting from __uid16_t |
a8d7ae61 CV |
1005 | to __uid32_t. |
1006 | (gid16togid32): Ditto fir gids. | |
1007 | (getuid32): Declare. | |
1008 | (geteuid32): Ditto. | |
1009 | (getpwuid32): Ditto. | |
1010 | * include/sys/cygwin.h (struct external_pinfo): Add members uid32 and | |
1011 | gid32. | |
1012 | ||
9854c44c CV |
1013 | 2002-05-29 Corinna Vinschen <corinna@vinschen.de> |
1014 | ||
1015 | * include/cygwin/socket.h: Protect some symbols against multiple | |
1016 | definition. | |
1017 | * include/netinet/ip.h: Ditto. | |
1018 | * include/netinet/tcp.h: Ditto. | |
1019 | ||
1020 | 2002-05-29 Wu Yongwei <adah@netstd.com> | |
1021 | ||
1022 | * include/netinet/ip.h: Replace by BSD derived version of the file. | |
1023 | * include/netinet/tcp.h: Ditto. | |
1024 | * include/netinet/udp.h: New file. | |
1025 | * include/cygwin/ip.h: Remove. | |
1026 | ||
cef69559 CF |
1027 | 2002-05-29 Christopher Faylor <cgf@redhat.com> |
1028 | ||
1029 | * dtable.cc (dtable::init_std_file_from_handle): Attempt stronger | |
1030 | detection of invalid handle. | |
1031 | (handle_to_fn): Detect pathological condition where NT resets the | |
1032 | buffer pointer to NULL on an invalid handle. | |
1033 | ||
a761ad82 CF |
1034 | 2002-05-28 Christopher Faylor <cgf@redhat.com> |
1035 | ||
1036 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly | |
1037 | check for whether we should be opening the file to search for #! | |
654783b6 CF |
1038 | characters. Set path_conv structure execability, too, when |
1039 | appropriate. | |
a761ad82 | 1040 | |
7ea70e99 CV |
1041 | 2002-05-28 Corinna Vinschen <corinna@vinschen.de> |
1042 | ||
1043 | * security.cc (set_security_attribute): Call getegid32() instead of | |
1044 | getegid(). | |
1045 | * include/cygwin/grp.h: Declare getegid32(). | |
1046 | ||
57196405 CV |
1047 | 2002-05-28 Corinna Vinschen <corinna@vinschen.de> |
1048 | ||
1049 | Change internal gid datatype from __gid16_t to __gid32_t | |
1050 | throughout. | |
1051 | * cygwin.din: Export new symbols chown32, fchown32, getegid32, | |
1052 | getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32, | |
1053 | setgid32, setegid32, getgrent32. | |
1054 | * grp.cc (grp32togrp16): New static function. | |
1055 | (getgrgid32): New function. | |
1056 | (getgrnam32): Ditto. | |
1057 | (getgrent32): Ditto. | |
1058 | (getgroups32): Change name of internal function from getgroups. | |
1059 | (getgroups32): New function. | |
1060 | (initgroups32): Ditto. | |
1061 | * syscalls.cc (chown32): Ditto. | |
1062 | (lchown32): Ditto. | |
1063 | (fchown32): Ditto. | |
1064 | (setegid32): Ditto. | |
1065 | (setgid32): Ditto. | |
1066 | * uinfo.cc (getgid32): Ditto. | |
1067 | (getegid32): Ditto. | |
1068 | * include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam(). | |
1069 | Declare getgrgid32() and getgrnam32() instead. Declare getgid32(). | |
1070 | ||
0c12979b CF |
1071 | 2002-05-27 Christopher Faylor <cgf@redhat.com> |
1072 | ||
1073 | * autoload.cc (noload): Properly mask low order word for determining | |
1074 | number of bytes to pop. | |
1075 | ||
57e2ae68 CF |
1076 | 2002-05-27 Christopher Faylor <cgf@redhat.com> |
1077 | ||
1078 | * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic | |
1079 | cleanup. | |
1080 | ||
2402700d CF |
1081 | 2002-05-27 Christopher Faylor <cgf@redhat.com> |
1082 | ||
1083 | * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro. | |
1084 | (LoadFuncEx2): Adapted from LoadFuncEx. Provides control of return | |
1085 | value for nonexistent function. | |
1086 | (NtQueryObject): Declare. | |
1087 | (IsDebuggerPresent): Declare via LoadFuncEx2 and always return true if | |
1088 | not available. | |
1089 | * debug.h (being_debugged): Just rely on IsDebuggerPresent return | |
1090 | value. | |
1091 | * dtable.cc (handle_to_fn): New function. | |
1092 | (dtable::init_std_file_from_handle): Attempt to derive std handle's | |
1093 | name via handle_to_fn. | |
1094 | (dtable::build_fhandler_from_name): Fill in what we can in path_conv | |
1095 | structure when given a handle and path doesn't exist. | |
1096 | * fhandler.cc (fhandler_base::open): Don't set the file pointer here. | |
1097 | Use pc->exists () to determine if file exists rather than calling | |
1098 | GetFileAttributes again. | |
1099 | * fhandler.h (fhandler_base::exec_state_isknown): New method. | |
1100 | (fhandler_base::fstat_helper): Add extra arguments to declaration. | |
1101 | (fhandler_base::fstat_by_handle): Declare new method. | |
1102 | (fhandler_base::fstat_by_name): Declare new method. | |
1103 | * fhandler_disk_file (num_entries): Make __stdcall. | |
1104 | (fhandler_base::fstat_by_handle): Define new method. | |
1105 | (fhandler_base::fstat_by_name): Define new method. | |
1106 | (fhandler_base:fstat): Call fstat_by_{handle,name} as appropriate. | |
1107 | (fhandler_disk_file::fstat_helper): Accept extra arguments for filling | |
1108 | out stat structure. Move handle or name specific stuff to new methods | |
1109 | above. | |
1110 | (fhandler_disk_file::open): Use real_path->exists rather than calling | |
1111 | GetFileAttributes again. | |
1112 | * ntdll.h (FILE_NAME_INFORMATION): Define new structure. | |
1113 | (OBJECT_INFORMATION_CLASS): Partially define new enum. | |
1114 | (OBJECT_NAME_INFORMATION): Define new structure. | |
1115 | (NtQueryInformationFile): New declaration. | |
1116 | (NtQueryObject): New declaration. | |
1117 | * path.cc (path_conv::fillin): Define new method. | |
1118 | * path.h (path_conv::fillin): Declare new method. | |
1119 | (path_conv::drive_thpe): Rename from 'get_drive_type'. | |
1120 | (path_conv::volser): Declare new method. | |
1121 | (path_conv::volname): Declare new method. | |
1122 | (path_conv::root_dir): Declare new method. | |
1123 | * syscalls.cc (fstat64): Send real path_conv to fstat as second | |
1124 | argument. | |
1125 | ||
74b2f73e CV |
1126 | 2002-05-24 Pierre Humblet <pierre.humblet@ieee.org> |
1127 | ||
1128 | * security.cc (lsa2str): New function. | |
1129 | (get_priv_list): Call lsa2str instead of sys_wcstombs. | |
1130 | ||
75bf2931 CV |
1131 | 2002-05-22 Pierre Humblet <pierre.humblet@ieee.org> |
1132 | ||
1133 | * syscalls.cc (seteuid): Do not take allow_ntsec into account. | |
1134 | Attempt to use an existing or new token even when the uid | |
1135 | matches orig_uid, but the gid is not in the process token. | |
1136 | Major reorganization after several incremental changes. | |
1137 | (setegid): Do not take allow_ntsec into account. Minor | |
1138 | reorganization after several incremental changes. | |
1139 | ||
918a268c CF |
1140 | 2002-05-26 Christopher Faylor <cgf@redhat.com> |
1141 | ||
1142 | * debug.h (being_debugged): New macro. | |
1143 | * dtable.cc (dtable::extend): Use new macro. | |
1144 | * exceptions.cc (try_to_debug): Ditto. | |
1145 | * strace.cc (strace::hello): Only output debugging info when we think | |
1146 | we're being debugged. | |
1147 | ||
0cfbfc24 CF |
1148 | 2002-05-25 Robert Collins <rbtcollins@hotmail.com> |
1149 | ||
1150 | * winsup.h: Remove duplicate declarations of malloc_lock and | |
1151 | malloc_unlock. | |
1152 | ||
d7b4a300 CF |
1153 | 2002-05-24 Christopher Faylor <cgf@redhat.com> |
1154 | ||
1155 | Remove unneeded sync.h, where appropriate, throughout. | |
1156 | Remove unneeded heap.h, where appropriate, throughout. | |
1157 | Remove unneeded exceptions.h, where appropriate, throughout. | |
1158 | Remove unneeded perprocess.h, where appropriate, throughout. | |
1159 | ||
908f9b65 CV |
1160 | 2002-05-22 Pierre Humblet <pierre.humblet@ieee.org> |
1161 | ||
1162 | * security.cc (create_token): Call __sec_user() instead of | |
1163 | sec_user() to remove dependence on allow_ntsec. Verify that | |
1164 | the returned sd is non-null. | |
1165 | ||
a6247be9 RC |
1166 | 2002-05-25 Robert Collins <rbtcollins@hotmail.com> |
1167 | ||
1168 | * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's. | |
1169 | ||
ff938546 CF |
1170 | 2002-05-24 Christopher Faylor <cgf@redhat.com> |
1171 | ||
1172 | * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path | |
1173 | along to set_name via return_and_clear_normalized_path. | |
1174 | (dtable::build_fhandler): New method with const char * argument. | |
1175 | (dtable::reset_unix_path_name): Eliminate. | |
1176 | (dtable::dup_worker): Use correct build_fhandler method. | |
1177 | * mmap.cc (mmap_record::alloc_fh): Ditto. | |
1178 | * dtable.h (dtable::build_fhandler): New method. | |
1179 | (dtable::reset_unix_path_name): Eliminate. | |
1180 | * fhandler.cc (fhandler_base::set_name): Assume that unix_name has | |
1181 | already been cmalloced. | |
1182 | (fhandler_base::reset_unix_path_name): Eliminate. | |
1183 | (fhandler_base::~fhandler_base): Coercion for cfree. | |
1184 | * fhandler.h (fhandler_base::unix_path_name): Make const char *. | |
1185 | (fhandler_base::win32_path_name): Ditto. | |
1186 | (fhandler_base::reset_unix_path_name): Eliminate. | |
1187 | * fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate | |
1188 | const char *ness of win32_path_name. | |
1189 | * fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name | |
1190 | requirements. | |
1191 | * path.cc (path_conv::return_and_clear_normalized_path): New method. | |
1192 | (path_conv::clear_normalized_path): Eliminate. | |
1193 | (path_conv::~path_conv): Ditto. | |
1194 | (path_conv::check): Accommodate new build_fhandler method. | |
1195 | * path.h (path_conv::~path_conv): Eliminate. | |
1196 | (path_conv::clear_normalized_path): Ditto. | |
1197 | (path_conv::return_and_clear_normalized_path): Declare new method. | |
1198 | ||
b4bb31ad CF |
1199 | 2002-05-23 Christopher Faylor <cgf@redhat.com> |
1200 | ||
1201 | * path.cc (path_conv::check): Make sure any trailing path component is | |
1202 | part of potential normalized posix path. | |
1203 | ||
b2f338e9 CF |
1204 | 2002-05-23 Christopher Faylor <cgf@redhat.com> |
1205 | ||
1206 | * smallprint.c (__small_vsprintf): Implement '%o' after all these | |
1207 | years. | |
1208 | ||
fc240f58 CF |
1209 | 2002-05-22 Christopher Faylor <cgf@redhat.com> |
1210 | ||
1211 | * fhandler.h (fhandler_virtual::exists): Eliminate path argument. | |
1212 | (fhandler_proc::exists): Ditto. | |
1213 | (fhandler_registry::exists): Ditto. | |
1214 | (fhandler_process::exists): Ditto. | |
1215 | * fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name. | |
1216 | * fhandler_process.cc (fhandler_process::exists): Ditto. | |
1217 | (fstat): Ditto. | |
1218 | * fhandler_registry.cc (fhandler_registry::exists): Ditto. | |
1219 | (fhandler_registry::fstat): Ditto. | |
1220 | * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto. | |
1221 | * path.cc (path_conv::check): Ditto. Add debugging. | |
1222 | ||
1223 | 2002-05-22 Christopher Faylor <cgf@redhat.com> | |
1224 | ||
1225 | * syscalls.cc (dup): Always call dup2 for error handling. | |
1226 | ||
1d2b71d6 CV |
1227 | 2002-05-22 Corinna Vinschen <corinna@vinschen.de> |
1228 | ||
1229 | * include/cygwin/types.h: Revert previous patch. | |
1230 | ||
36f86a55 CV |
1231 | 2002-05-22 Corinna Vinschen <corinna@vinschen.de> |
1232 | ||
1233 | * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS | |
1234 | is defined. | |
1235 | ||
2d6ce5c2 CV |
1236 | 2002-05-19 Pierre Humblet <pierre.humblet@ieee.org> |
1237 | ||
fc240f58 | 1238 | * security.cc (open_local_policy): Initialize lsa to |
2d6ce5c2 CV |
1239 | INVALID_HANDLE_VALUE instead of NULL. |
1240 | (get_logon_server_and_user_domain): Test for INVALID_HANDLE_VALUE | |
1241 | instead of NULL. | |
1242 | (create_token): Both of the above. | |
1243 | ||
9ded8bd8 CF |
1244 | 2002-05-18 Christopher Faylor <cgf@redhat.com> |
1245 | ||
1246 | * fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of | |
1247 | nlink consistent for remote files. | |
1248 | ||
2701126a CF |
1249 | 2002-05-18 Christopher Faylor <cgf@redhat.com> |
1250 | ||
1251 | * path.cc (path_conv::check): Always set executable bit for executable | |
1252 | extension. | |
1253 | ||
b05b7d84 CF |
1254 | 2002-05-17 Christopher Faylor <cgf@redhat.com> |
1255 | ||
1256 | * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with | |
1257 | high order part of 64 bit address on OS's which do not support that | |
1258 | kind of operation. Otherwise Windows 95 will become confused. | |
1259 | ||
d6dc9825 CV |
1260 | 2002-05-16 Pierre Humblet <pierre.humblet@ieee.org> |
1261 | ||
1262 | * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno() | |
1263 | by __seterrno_from_win_error(). | |
1264 | * security.cc (open_local_policy): Ditto. | |
1265 | (get_lsa_srv_inf): Ditto. | |
1266 | (get_user_groups): Ditto. | |
1267 | (get_user_primary_group): Ditto. | |
1268 | (create_token): Ditto. | |
1269 | (subauth): Ditto. | |
1270 | ||
35a89cbe CV |
1271 | 2002-05-17 Corinna Vinschen <corinna@vinschen.de> |
1272 | ||
1273 | * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when | |
1274 | opening file for writing timestamp. | |
1275 | * wincap.cc: Remove flag has_specific_access_rights. | |
1276 | * wincap.h: Ditto. | |
1277 | ||
ebbdc703 CV |
1278 | 2002-05-13 Pierre Humblet <pierre.humblet@ieee.org> |
1279 | ||
1280 | * syscalls.cc (seteuid): Set default dacl in process token. | |
1281 | Replace in-line code by call to verify_token(). | |
1282 | (setegid): Reverse change from 2002-01-21. Add call to | |
1283 | RevertToSelf and set primary group in impersonation token. | |
1284 | * security.cc (create_token): Store pgrpsid in token security | |
1285 | descriptor, except if it already appears in my_grps. | |
1286 | Use sec_acl() in place of get_dacl(). | |
1287 | (verify_token): Create from code in seteuid(), with tighter checks. | |
c2102631 | 1288 | (get_dacl): Deleted. |
ebbdc703 CV |
1289 | (get_group_sidlist): Add argument to indicate if pgrpsid is already |
1290 | in the groups. | |
1291 | * security.h: Define verify_token(). | |
1292 | * autoload.cc: Load GetKernelObjectSecurity(). | |
1293 | ||
feb7f1a9 CF |
1294 | 2002-05-13 Mark Bradshaw <bradshaw@staff.crosswalk.com> |
1295 | ||
1296 | * cygwin.din: Add strlcat and strlcpy. | |
1297 | * include/cygwin/version.h: Increment API minor version number. | |
1298 | ||
fc240f58 | 1299 | 2002-05-09 Pierre Humblet <pierre.humblet@ieee.org> |
043bc3e1 CV |
1300 | |
1301 | * shared.cc (__sec_user): Split into sec_acl() and call orig_sid(). | |
1302 | (sec_acl): Create from part of __sec_user(), except creator/owner. | |
1303 | * security.h: Define sec_acl() and MAX_DACL_LEN. | |
1304 | ||
c8b20196 CF |
1305 | 2002-05-12 Christopher Faylor <cgf@redhat.com> |
1306 | ||
1307 | * fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using | |
1308 | O_DIROPEN when OS doesn't support it. Return proper errno in that | |
1309 | case. | |
1310 | ||
b4f8d31f CF |
1311 | 2002-05-12 Christopher Faylor <cgf@redhat.com> |
1312 | ||
56caca1d CF |
1313 | * syscalls.cc (_read): Change error to EBADF if attempt to read from a |
1314 | non-readable fd. | |
b4f8d31f | 1315 | |
29ee580d CF |
1316 | 2002-05-11 Christopher Faylor <cgf@redhat.com> |
1317 | ||
1318 | * fhandler.h (executable_states): For now, make dont_care_if_executable | |
1319 | equivalent to not_executable. | |
1320 | * sys/mount.h: Define MOUNT_NOTEXEC. | |
1321 | * path.h (fs_info): New class. | |
1322 | (path_conv): Move fs-specific fields to new 'fs' structure. | |
1323 | (path_conv::update_fs_info): Move to fs_info and rename to just 'update'. | |
1324 | * path.cc (fs_info::update): Ditto. Return 'true' if successful. | |
1325 | (fillout_mntent): Add ',noexec' to list of reported options. | |
1326 | ||
b84621d2 CF |
1327 | 2002-05-11 Christopher Faylor <cgf@redhat.com> |
1328 | ||
1329 | * fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler | |
1330 | warning. | |
1331 | ||
9ba913a5 CF |
1332 | 2002-05-10 Christopher January <chris@atomice.net> |
1333 | ||
1334 | * autoload.cc: Add dynamic load statements for | |
1335 | 'ZwQueryInformationProcess' and 'ZwQueryVirtualMemory'. | |
1336 | * fhandler.h: Change type of bufalloc and filesize members of | |
1337 | fhandler_virtual from int to size_t. Change type of position member | |
1338 | from __off32_t to __off64_t. Add new fileid member to fhandler_virtual | |
1339 | class. Make seekdir take an __off64_t argument. Make lseek take an | |
1340 | __off64_t argument. Add fill_filebuf method to fhandler_virtual. Add | |
1341 | fill_filebuf method to fhandler_proc. Add fill_filebuf method to | |
1342 | fhandler_registry. Add fill_filebuf method to fhandler_process. Add | |
1343 | saved_pid and saved_p members to fhandler_process. | |
1344 | * fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'. | |
1345 | (proc_fhandlers array): Ditto. | |
1346 | (fhandler_proc::open): Use fill_filebuf to flesh out the file contents. | |
1347 | (fhandler_proc::fill_filebuf): New method. | |
1348 | (fhandler_proc::format_proc_meminfo): Ditto. | |
1349 | (fhandler_proc::format_proc_stat): Ditto. | |
1350 | (fhandler_proc::format_proc_uptime): Ditto. | |
1351 | * fhandler_process.cc (process_listing): Add 'stat' and 'statm'. | |
1352 | (fhandler_process::fstat): Find the _pinfo structure for the process | |
1353 | named in the filename. Return ENOENT if the process is no longer | |
1354 | around. Set the gid and uid fields of the stat structure. | |
1355 | (fhandler_process::open): Store pid and pointer to _pinfo structure in | |
1356 | saved_pid and saved_p respectively. Use fill_filebuf to flesh out file | |
1357 | contents. | |
1358 | (fhandler_proc::fill_filebuf): New method. | |
1359 | (format_process_stat): New function. | |
1360 | (format_process_status): Ditto. | |
1361 | (format_process_statm): Ditto. | |
1362 | (get_process_state): Ditto. | |
1363 | (get_mem_values): Ditto. | |
1364 | * fhandler_registry.cc (fhandler_registry::seekdir): Change argument | |
1365 | type from __off32_t to __off64_t. | |
1366 | (fhandler_registry::fill_filebuf): New method. | |
1367 | * fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type | |
1368 | from __off32_t to __off64_t. | |
1369 | (fhandler_virtual::lseek): Ditto. | |
1370 | (fhandler_virtual::fill_filebuf): New method. | |
1371 | (fhandler_virtual::fhandler_virtual): Initialise fileid to -1. | |
1372 | * wincap.cc: Set flag has_process_io_counters appropriately. | |
1373 | * wincap.h: Add flag has_process_io_counters. | |
1374 | ||
1375 | 2002-05-09 Christopher Faylor <cgf@redhat.com> | |
f561f644 CF |
1376 | |
1377 | * syscalls.cc (_write): Change error to EBADF if attempt to write to a | |
56caca1d | 1378 | non-writeable fd. |
f561f644 | 1379 | |
6327de5f CV |
1380 | 2002-05-08 Corinna Vinschen <corinna@vinschen.de> |
1381 | ||
1382 | * cygheap.h (class cygheap_user): Add member `orig_psid'. | |
1383 | Add method `orig_sid()'. | |
1384 | * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid. | |
1385 | ||
795b46cf CV |
1386 | 2002-04-28 Norbert Schulze <norbert.schulze@web.de> |
1387 | ||
1388 | * localtime.cc (tzsetwall): Use wildabbr if generated timezone name | |
1389 | length < 3. | |
1390 | ||
a9917779 CV |
1391 | 2002-05-05 Pierre Humblet <pierre.humblet@ieee.org> |
1392 | ||
1393 | * spawn.cc (spawn_guts): Move call to set_process_privilege() | |
1394 | to load_registry_hive(). | |
1395 | * registry.cc (load_registry_hive): ditto. | |
1396 | * fork.cc (fork_parent): Call sec_user_nih() only once. | |
1397 | ||
1398 | 2002-05-04 Christopher January <chris@atomice.net> | |
13ee3618 CF |
1399 | |
1400 | * path.h (path_conv::path_conv): Initialise normalized_path to NULL. | |
1401 | ||
8761c1dc CF |
1402 | 2002-05-03 Christopher Faylor <cgf@redhat.com> |
1403 | ||
1404 | * net.cc (getdomainname): Change second argument of getdomainname to | |
1405 | size_t. | |
1406 | ||
1407 | 2002-05-03 Christopher January <chris@atomice.net> | |
1408 | ||
1409 | * fhandler_proc.cc (proc_listing): Add '.' and '..' to directory | |
1410 | listing. | |
1411 | (fhandler_proc::open): Change use of mode to flags. If the file does | |
1412 | not exist already, fail with EROFS if O_CREAT flag is set. Change | |
1413 | EROFS error to EACCES error when writing to a file. Use cmalloc to | |
1414 | allocate memory for filebuf. | |
1415 | (fhandler_proc::close): Use cfree to free filebuf. | |
1416 | (fhandler_proc::get_proc_fhandler): Properly detect attempts to access | |
1417 | unknown subdir. | |
1418 | * fhandler_process.cc (process_listing): Add '.' and '..' to directory | |
1419 | listing. | |
1420 | (fhandler_process::open): Use cmalloc to allocate memory for filebuf. | |
1421 | (fhandler_process::close): Use cfree to free filebuf. | |
1422 | * fhandler_registry.cc (registry_listing): Add . and '..' to directory | |
1423 | listing. | |
1424 | (fhandler_registry::open): Move check for open for writing before | |
1425 | open_key. Use cmalloc to allocate memory for filebuf. | |
1426 | (fhandler_registry::close): Use cfree to free filebuf. | |
1427 | (fhandler_registry::telldir): Use lower 16 bits of __d_position as | |
1428 | position in directory. | |
1429 | (fhandler_registry::seekdir): Ditto. | |
1430 | * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to | |
1431 | EACCES error. | |
1432 | (fhandler_virtual::open): Set the NOHANDLE flag. | |
1433 | (fhandler_virtual::dup): Add call to fhandler_base::dup. Allocate | |
1434 | child's filebuf using cmalloc. Copy filebuf from parent to child. | |
1435 | (fhandler_virtual::close): Use cfree to free filebuf. | |
1436 | (fhandler_virtual::~fhandler_virtual): Ditto. | |
1437 | (from Chris Faylor <cgf@redhat.com>). | |
1438 | (fhandler_registry::readdir): Add support for '.' and '..' files in | |
1439 | subdirectories of /proc/registry. | |
1440 | * path.cc (path_conv::check): Do not return ENOENT if a file is not | |
1441 | found in /proc. | |
1442 | ||
335c87f9 CF |
1443 | 2002-05-02 Christopher Faylor <cgf@redhat.com> |
1444 | ||
1445 | * fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather | |
1446 | than path_conv name. | |
1447 | (fhandler_proc::open): Ditto. | |
1448 | * fhandler_process.cc (fhandler_process::fstat): Use fhandler name | |
1449 | rather than path_conv name. | |
1450 | (fhandler_process::open): Ditto. | |
1451 | * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name | |
1452 | rather than path_conv name. | |
1453 | (fhandler_registry::open): Ditto. | |
1454 | * path.cc (path_conv::check): Don't copy posix path when virtual. | |
1455 | (mount_info::conv_to_win32_path): Don't zero string when isproc. Just | |
1456 | derive normal windows path. | |
1457 | ||
1458 | * path.h (path_conv::clear_normalized_path): Declare new method. | |
1459 | * path.cc (path_conv::clear_normalized_path): Define new method. | |
1460 | * dtable.cc (build_fhandler_from_name): Clear normalized path when | |
1461 | finished to conserve space. | |
1462 | ||
3bb7eb44 CF |
1463 | 2002-05-02 Christopher Faylor <cgf@redhat.com> |
1464 | ||
1465 | * fhandler_proc.cc (fhandler_proc::fstat): Prime with information from | |
1466 | fhandler_base::fstat. Use defines rather than constants for permission | |
1467 | settings. | |
1468 | ||
d055ecb0 CV |
1469 | 2002-04-30 Eric Blake <ebb9@email.byu.edu> |
1470 | ||
1471 | * path.cc (hash_path_name): Improve hash function strength. | |
1472 | ||
37143995 RC |
1473 | 2002-05-02 Robert Collins <rbtcollins@hotmail.com> |
1474 | ||
1475 | * thread.cc (__pthread_cond_dowait): Fix a race on signalling from a | |
1476 | thread woken by the same condition variable it's signalling on. Thanks | |
1477 | to Michael Beach for the report and test case. | |
1478 | ||
291be307 CF |
1479 | 2002-05-02 Christopher Faylor <cgf@redhat.com> |
1480 | ||
1481 | * path.h (pathconv_arg): Add PC_POSIX. | |
1482 | (path_conv): Add normalized_path field. | |
1483 | * path.cc (path_conv::~path_conv): New destructor. | |
1484 | (path_conv::check): Set normalized_path, where appropriate. | |
1485 | * dtable.cc (build_fhandler_from_name): Use normalized path from | |
1486 | path_conv. | |
1487 | * syscalls.cc (chroot): Ditto. | |
1488 | ||
1489 | * cygheap.h: Remove path_prefix_p declaration. | |
1490 | ||
1491 | 2002-02-26 Christopher January <chris@atomice.net> | |
1492 | Christopher Faylor <cgf@redhat.com> (minor fixups) | |
1493 | ||
1494 | * Makefile.in: Add fhandler_proc.o, fhandler_registry.o, | |
1495 | fhandler_process.o and fhandler_virtual.o. | |
1496 | * dtable.cc (dtable::build_fhandler): Add entries for FH_PROC, | |
1497 | FH_REGISTRY and FH_PROCESS. Set unix_name to the normalized posix | |
1498 | path. | |
1499 | * fhandler.h: Add constants for FH_PROC, FH_REGISTRY and FH_PROCESS. | |
1500 | Add class declarations for fhandler_virtual, fhandler_proc, | |
1501 | fhandler_registry and fhandler_virtual. Update fhandler_union | |
1502 | accordingly. | |
1503 | * fhandler_proc.cc: New file. Add implementation for fhandler_proc. | |
1504 | * fhandler_virtual.cc: New file. Add implementation for | |
1505 | fhandler_virtual. | |
1506 | * fhandler_process.cc: New file. Add implementation for | |
1507 | fhandler_process. | |
1508 | * fhandler_registry.cc: New file. Add implementation for | |
1509 | fhandler_registry. | |
8761c1dc CF |
1510 | * path.cc (isproc): New macro. |
1511 | (isvirtual_dev): Ditto. | |
291be307 CF |
1512 | * path.cc (path_conv::check): Add check for virtual devices. |
1513 | * path.cc (mount_info::conv_to_win32_path): Convert paths in /proc to | |
1514 | empty Win32 paths. | |
1515 | * path.cc (chdir): Replace check for FH_CYGDRIVE with more generic | |
1516 | isvirtual_dev macro. Force setting of posix path for virtual | |
1517 | fhandlers. | |
8761c1dc | 1518 | * path.h (path_prefix_p): Declare. |
291be307 CF |
1519 | |
1520 | ||
fee93846 CF |
1521 | Wed May 1 16:06:02 2002 Jason Tishler <jason@tishler.net> |
1522 | ||
1523 | * include/cygwin/types.h: Include <sys/sysmacros.h>. | |
1524 | ||
9b15f5fa CV |
1525 | Wed Apr 17 11:27:04 2002 Jason Tishler <jason@tishler.net> |
1526 | ||
1527 | * security.cc (get_lsa_srv_inf): Prevent extraneous backslashes for | |
1528 | the NT Domain case. | |
1529 | ||
4deace13 CV |
1530 | 2002-04-12 Corinna Vinschen <corinna@vinschen.de> |
1531 | ||
1532 | * net.cc (cygwin_accept): Set socket type for accepted socket. | |
1533 | (socketpair): Set socket type for both sockets. | |
1534 | ||
1535 | 2002-04-12 Egor Duda <deo@logos-m.ru> | |
1536 | ||
291be307 | 1537 | * fhandler.h (class fhandler_socket): New member to store socket type. |
4deace13 CV |
1538 | (fhandler_socket::get_socket_type): Access it. |
1539 | (fhandler_socket::set_socket_type): Ditto. | |
1540 | * net.cc (cygwin_socket): Store socket type. | |
1541 | (cygwin_connect): Disable security checks for connectionless sockets. | |
1542 | (cygwin_accept): Ditto. | |
1543 | ||
dbe67a81 CF |
1544 | 2002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com> |
1545 | ||
1546 | * cygwin.din: Add strptime. | |
1547 | * include/cygwin/version.h: Increment API version number. | |
1548 | ||
464b3e80 CV |
1549 | 2002-04-09 Corinna Vinschen <corinna@vinschen.de> |
1550 | ||
1551 | * fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier. | |
1552 | ||
d78bda7b CV |
1553 | 2002-04-09 Corinna Vinschen <corinna@vinschen.de> |
1554 | ||
1555 | * fhandler.cc (fhandler_base::open): Set read-only bit in | |
1556 | file_attributes when adequate. | |
1557 | ||
8996623b CF |
1558 | 2002-03-28 Christopher Faylor <cgf@redhat.com> |
1559 | ||
1560 | * times.cc (gettimeofday): Fix typo in previous patch. | |
1561 | ||
7d7524e5 CF |
1562 | 2002-03-27 Wu Yongwei <adah@netstd.com> |
1563 | ||
1564 | * times.cc (gettimeofday): Revert to setting timezone info if tz != | |
1565 | NULL. | |
1566 | ||
2f3126f6 CF |
1567 | 2002-03-21 Christopher Faylor <cgf@redhat.com> |
1568 | ||
1569 | * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set | |
1570 | st_[ug]id to value derived from get_file_attributes. | |
1571 | ||
45d2ea8a CF |
1572 | 2002-03-21 Christopher Faylor <cgf@redhat.com> |
1573 | ||
1574 | * spawn.cc (find_exec): Return input if file not found. | |
1575 | ||
99dbafac CV |
1576 | 2002-03-19 Boris Schaeling <boriss@web.de> |
1577 | ||
291be307 | 1578 | * poll.cc (poll): Add support for invalid descriptors. |
99dbafac | 1579 | |
b0359971 RC |
1580 | 2002-03-15 Robert Collins <rbtcollins@hotmail.com> |
1581 | ||
1582 | * fhandler.h (fhandler_termios::lseek): Override lseek. | |
1583 | * fhandler_termios.cc (fhandler_termios::lseek): Implement this. | |
1584 | ||
59a2339f CF |
1585 | 2002-03-15 Christopher Faylor <cgf@redhat.com> |
1586 | ||
1587 | * cygserver.cc: Include stdlib.h for exit declaration. | |
1588 | * threaded_queue.cc: Ditto. | |
1589 | ||
ca175377 CF |
1590 | 2002-03-15 Christopher Faylor <cgf@redhat.com> |
1591 | ||
1592 | * pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a | |
1593 | redirected block should be marked as nonexistent. | |
1594 | (winpids::add): Use PID_ALLPIDS when looking for all pids. | |
1595 | * cygwin.h (PID_ALLPIDS): New enum element. | |
1596 | ||
d78bda7b | 1597 | 2002-03-15 Corinna Vinschen <corinna@vinschen.de> |
2f263187 | 1598 | |
291be307 | 1599 | * glob.c (stat32_to_STAT): New function. |
2f263187 CV |
1600 | (g_lstat): Call user space functions always with 32 bit struct stat |
1601 | as a workaround. | |
1602 | (g_stat): Ditto. | |
1603 | * include/glob.h (struct glob): Don't prototype function pointers | |
1604 | when compiling Cygwin. | |
1605 | ||
4af6d4a9 CF |
1606 | 2002-03-14 Christopher Faylor <cgf@redhat.com> |
1607 | ||
1608 | * pinfo.cc (pinfo::init): Properly handle execed process stub when | |
1609 | PID_NOREDIR is specified. | |
1610 | ||
6ea9c716 CV |
1611 | 2002-03-13 Boris Schaeling <boriss@web.de> |
1612 | ||
e10c087b CF |
1613 | * poll.cc (poll): Remove variable open_fds. Rearrange and add code to |
1614 | fix settings of revents. | |
6ea9c716 | 1615 | |
d78bda7b | 1616 | 2002-03-13 Corinna Vinschen <corinna@vinschen.de> |
bbe09139 CV |
1617 | |
1618 | * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails. | |
1619 | (list::erase): New method with no argument. Erase latest record | |
1620 | added. | |
1621 | (mmap64): Fail if map_map() fails. | |
1622 | ||
d78bda7b | 1623 | 2002-03-12 Corinna Vinschen <corinna@vinschen.de> |
cb4589f4 CV |
1624 | |
1625 | * sysconf.cc (sysconf): Fix condition. | |
1626 | ||
d78bda7b | 1627 | 2002-03-11 Corinna Vinschen <corinna@vinschen.de> |
2817e0dc CV |
1628 | |
1629 | * mmap.cc (msync): Check area given by addr and len for being a | |
1630 | contigeous mmap'd region. | |
1631 | ||
d78bda7b | 1632 | 2002-03-11 Corinna Vinschen <corinna@vinschen.de> |
713fb38b CV |
1633 | |
1634 | * fork.cc (fork_child): Call fixup_mmaps_after_fork() before | |
1635 | closing parent process handle. Call fixup_mmaps_after_fork() | |
1636 | with parent process handle as parameter. | |
1637 | * mmap.cc (mmap_record::access): New method. | |
1638 | (fixup_mmaps_after_fork): Take process handle as parameter. | |
1639 | In case of FILE_MAP_COPY access, copy valid memory regions to child. | |
1640 | * pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly. | |
1641 | ||
d78bda7b | 1642 | 2002-03-07 Corinna Vinschen <corinna@vinschen.de> |
c8c3824d CV |
1643 | |
1644 | * autoload.cc (NetGetDCName): Add symbol. | |
1645 | (NetServerEnum): Remove symbol. | |
1646 | * security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of | |
1647 | NetServerEnum() since it's faster. Don't call it at all if machine | |
1648 | is not a domain member. | |
1649 | ||
9420d2b8 CF |
1650 | 2002-03-06 Christopher Faylor <cgf@redhat.com> |
1651 | ||
1652 | * path.cc (normalize_posix_path): Avoid runs of '.'s > 2. | |
1653 | ||
07a21bce CF |
1654 | 2002-03-05 Christopher Faylor <cgf@redhat.com> |
1655 | ||
1656 | * errno.cc: Change EPERM associated text to "Operation not permitted" | |
1657 | throughout. | |
1658 | ||
eeac69d8 CF |
1659 | 2002-03-05 Christopher Faylor <cgf@redhat.com> |
1660 | ||
1661 | * fhandler_socket.cc (fhandler_socket::close): Respond to signals while | |
1662 | looping, waiting for socket to close. Superstitiously clear last error | |
1663 | when WSAEWOULDBLOCK. | |
1664 | ||
241a7c5a RC |
1665 | 2002-03-05 Robert Collins <rbtcollins@hotmail.com> |
1666 | ||
291be307 | 1667 | * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): |
241a7c5a RC |
1668 | Always init - until static members work correctly. |
1669 | * shm.cc (shmget): Initialize the security descriptor - thanks Corinna! | |
291be307 | 1670 | * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem |
241a7c5a RC |
1671 | control constants. |
1672 | ||
ad2864f4 CV |
1673 | 2002-03-04 Christian Lestrade <christian.lestrade@free.fr> |
1674 | ||
1675 | * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro. | |
1676 | * fhandler_termios.cc: Include <sys/termios.h>. | |
1677 | (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when | |
1678 | not in ICANON mode. | |
1679 | ||
59149930 CV |
1680 | 2002-03-04 Dmitry Timoshkov <dmitry@baikal.ru> |
1681 | ||
1682 | * syscalls.cc (truncate64): Use ftruncate64 directly to not lose | |
1683 | upper 32 bits. | |
1684 | ||
7c3617cc RC |
1685 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
1686 | ||
1687 | * cygserver_shm.cc (delete_shmnode): New function. | |
1688 | (client_request_shm::serve): Use it. | |
1689 | ||
038c71f1 RC |
1690 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
1691 | ||
1692 | * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH. | |
1693 | * shm.cc (shmdt): Implement. | |
1694 | ||
67be0adb RC |
1695 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
1696 | ||
1697 | * cygserver_shm.cc: Run indent. | |
1698 | (deleted_head): New global for storing shm id's pending deletion. | |
1699 | (client_request_shm::serve): Return ENOSYS for invalid request types. | |
1700 | Implement SHM_DEL - delete a shm id. | |
1701 | * cygserver_shm.h (SHM_DEL): New type value. | |
1702 | * shm.cc (delete_inprocess_shmds): New function, does what it's name implies. | |
1703 | (shmctl): Implement shm_rmid control type. | |
1704 | ||
74c3173a RC |
1705 | 2002-03-04 Robert Collins <rbtcollins@hotmail.com> |
1706 | ||
1707 | * Makefile.in (install): Remove install-bin to allow make install to work. | |
1708 | ||
009314a4 RC |
1709 | 2002-03-03 Robert Collins <rbtcollins@hotmail.com> |
1710 | ||
1711 | * shm.cc (shmat): Prevent a compile error. | |
1712 | (shmdt): Set errno as this function is incomplete. | |
1713 | ||
e7729287 CF |
1714 | 2002-02-28 Christopher Faylor <cgf@redhat.com> |
1715 | ||
1716 | * times.cc: Remove if 0'd code. Clean up slightly. | |
1717 | ||
f449bfef RC |
1718 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> |
1719 | ||
1720 | * Merged cygwin_daemon into head minus the new shm and ipc exports. | |
1721 | ||
1722 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> | |
1723 | ||
1724 | * fhandler_tty.cc (fhandler_tty_slave::open): More debugging. | |
1725 | (fhandler_tty_slave::read): Fix printf type for the handle. | |
1726 | * tty.cc (tty::common_init): Add a FIXME for security. | |
1727 | ||
1728 | 2002-01-29 Robert Collins <rbtcollins@hotmail.com> | |
1729 | ||
1730 | * Makefile.in (OBJS): Remove duplicate localtime.o. | |
1731 | ||
1732 | 2002-01-17 Robert Collins <rbtcollins@hotmail.com> | |
1733 | ||
291be307 | 1734 | * cygserver.cc (check_and_dup_handle): Consolidate the two variants for |
f449bfef RC |
1735 | simplicity. |
1736 | Add Some basic debug output. | |
1737 | (client_request_attach_tty::serve): Use the new debug_printf for clarity. | |
1738 | Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen | |
1739 | tty's. | |
1740 | ||
1741 | 2002-01-16 Robert Collins <rbtcollins@hotmail.com> | |
1742 | ||
1743 | * cygserver.cc (transport): Correct scope. | |
1744 | (client_request_attach_tty::serve): Add more debug information. | |
1745 | Fix erroneous use of transport instead of conn. | |
1746 | * cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug. | |
1747 | (transport_layer_pipes::read): Ditto. | |
1748 | (transport_layer_pipes::write): Ditto. | |
1749 | (transport_layer_pipes::impersonate_client): Ditto. | |
1750 | ||
1751 | Mon Oct 8 7:41:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1752 | ||
1753 | * cygserver.cc (server_request::process): Rename client_request_shm_get to | |
1754 | client_request_shm. | |
1755 | * cygserver_process.cc (process_cache::add): Rename to add_task. | |
1756 | Use process_cleanup instead of process_request. | |
1757 | (process_cache::remove_process): New method. | |
1758 | (process::process): Initialize new members. | |
1759 | (process::~process): New member. | |
1760 | (process::cleanup): New method. | |
1761 | (process::add_cleanup_routine): New method. | |
1762 | (process_request::process): Rename to process_cleanup. | |
1763 | Call the process object's cleanup method and then delete it. | |
1764 | (process_process_param::request_loop): Remove the signalling process. | |
1765 | * cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm. | |
1766 | (client_request_shm_get::serve): Handle attach request counting. | |
1767 | * cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm. | |
1768 | (class shm_cleanup): New class. | |
1769 | * shm.cc: Globally rename client_request_shm_get to client_request_shm. | |
1770 | (client_request_shm::client_request_shm): New constructor for attach requests. | |
1771 | (shmat): Use it. | |
291be307 | 1772 | * include/cygwin/cygserver_process.h (class process_request): Rename to |
f449bfef RC |
1773 | process_cleanup. |
1774 | (class cleanup_routine): New class. | |
1775 | (class process): New members and methods to allow calling back when the process | |
1776 | terminates. | |
1777 | ||
1778 | Thu Oct 4 14:12:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1779 | * cygserver.cc (request_loop): Make static. | |
1780 | (main): Use new cache constructor syntax. | |
1781 | Start cache worker threads. | |
1782 | Cleanup the cache at shutdown. | |
1783 | * cygserver_process.cc: Run indent. | |
1784 | (process_cache::process_cache): Add a trigger to use when adding a process. | |
1785 | (process_cache::process): Move process_entry to process. | |
1786 | Insert at the end of the list. | |
1787 | Trigger the request loop when new process's inserted. | |
1788 | (process_cache::process_requests): Do it. | |
1789 | (process_cache::add): New method. | |
1790 | (process_cache::handle_snapshot): New method. | |
1791 | (process::process): Merge in the process_entry fields. | |
1792 | (process::handle): Make a stub function. | |
1793 | (process::exit_code): New method. | |
1794 | (process_request::process): New method. | |
1795 | (process_process_param::request_loop): New method. | |
1796 | * cygserver_shm.cc: New header dependency - threaded_queue.h. | |
1797 | * threaded_queue.cc (threaded_queue::cleanup): Clearer messages. | |
1798 | (queue_process_param::stop): Short spinlock on interruptible threads. | |
1799 | * threaded_queue.h (class threaded_queue): New constructor. | |
1800 | * include/cygwin/cygserver_process.h (process_request): New class. | |
1801 | (process_entry): Remove. | |
1802 | (process): Merge in process_entry. | |
1803 | (process_cache): Inherit from threaded_queue. | |
1804 | ||
1805 | Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1806 | ||
1807 | * cygserver.cc (class server_process_param): Use new constructor syntax. | |
1808 | * cygserver_process.cc (process_cache::~process_cache): New function. | |
1809 | * threaded_queue.cc: Define condition debug_printf. | |
1810 | Run indent. | |
1811 | (threaded_queue::cleanup): Move queue_process_param guts to a method. | |
1812 | (threaded_queue::process_requests): Ditto. | |
1813 | (queue_process_param::queue_process_param): New method. | |
1814 | (queue_process_param::~queue_process_param): Ditto. | |
1815 | (queue_process_param::start): Ditto. | |
1816 | (queue_process_param::stop): Ditto. | |
291be307 | 1817 | * threaded_queue.h (class queue_process_param): Add support for |
f449bfef RC |
1818 | interruptible request loops. |
1819 | * cygwin/include/cygwin/cygserver_process.h (class process_cache): Add | |
1820 | destructor. | |
1821 | ||
1822 | Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1823 | ||
1824 | * cygserver_client.cc: New flag allow_daemon to disable the daemon completely. | |
1825 | (cygserver_request): Check it. | |
1826 | (cygserver_init): Ditto. | |
1827 | * environ.cc (parse_thing): Add (no)daemon option. | |
1828 | ||
1829 | Tue Oct 2 23:00:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1830 | ||
1831 | * shm.cc: Update to handle include changes from HEAD. | |
1832 | ||
1833 | Tue Oct 2 16:06:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1834 | ||
291be307 | 1835 | * Makefile.in: Remove cygserver_shm.o from cygwin1.dll. |
f449bfef RC |
1836 | Rename cygserver_shm_outside.o to cygserver_shm.o. |
1837 | * cygserver.cc (server_request::process): Use the new client_request | |
1838 | constructor. | |
1839 | * cygserver_client.cc: Remove the #ifdef's stubs for the server method | |
1840 | within cygwin. | |
1841 | (client_request_attach_tty::client_request_attach_tty): Use the new | |
1842 | client_request constructor. | |
1843 | (client_request_shutdown::client_request_shutdown): Ditto. | |
1844 | (client_request::client_request): Ditto. | |
291be307 | 1845 | * cygserver_shm.cc (client_request_shm_get::serve): Remove the |
f449bfef RC |
1846 | #ifdef'd stub for in-cygwin builds. |
1847 | (client_request_shm_get::client_request_shm_get): Use the new | |
1848 | client_request constructor, and remove the in-cygwin variants. | |
1849 | * cygserver_shm.h (class client_request_shm_get): #ifndef test the | |
1850 | serve method - it's only used in cygserver. | |
1851 | * shm.cc (client_request_shm_get::client_request_shm_get): New function. | |
1852 | * include/cygwin/cygserver.h (request_header): New constructor. | |
291be307 | 1853 | (class client_request): Use it. |
f449bfef RC |
1854 | New constructor accepting the header size. |
1855 | #ifndef test the server method - it's only used within cygserver. | |
1856 | (client_request_get_version): #ifdef test the server method. | |
1857 | (client_request_shutdown): Ditto. | |
1858 | (client_request_attach_tty): Ditto. | |
1859 | ||
1860 | Tue Oct 2 9:57:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1861 | ||
1862 | * Makefile.in: add threaded_queue.o to cygserver.exe. | |
1863 | * cygserver.cc: Include threaded_queue.h | |
1864 | (class server_request): Inherit from queue_request. | |
1865 | (class server_process_param): Inherit from queue_process_param. | |
1866 | (class server_request_queue): Inherit from threaded_queue. | |
1867 | (request_loop): Adjust for new types. | |
291be307 | 1868 | (server_request_queue::process_requests): Remove guts to |
f449bfef RC |
1869 | threaded_queue::process_requests. |
1870 | (server_request::server_request): Adjust for new types. | |
1871 | (worker_function): Delete. | |
1872 | (server_request_queue::create_workers): Delete. | |
1873 | (server_request_queue::cleanup): Delete. | |
1874 | (server_request_queue::add): Move guts to threaded_queue::add. | |
1875 | * threaded_queue.cc: New file. | |
1876 | * threaded_queue.h: New file. | |
1877 | ||
1878 | Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1879 | ||
1880 | * cygserver.cc (client_request::serve): New function. | |
1881 | * cygserver_process.cc: Inlude <pthread.h> for pthread_once. | |
1882 | (process_cache::process_cache): Initialise a crtiical section for write access. | |
291be307 | 1883 | (process_cache::process): Use the critical section. Also add missing entries to |
f449bfef RC |
1884 | the cache. |
1885 | (do_process_init): New function to initalise class process static variables. | |
291be307 | 1886 | (process::process): Ensure that the process access critical section is |
f449bfef RC |
1887 | initialised. |
1888 | (process::handle): Close the handle of old process's when they have terminated | |
1889 | and we are returning the handle for a process with the same pid. | |
1890 | * cygserver_shm.cc: Run indent. | |
1891 | Include cygserver_process.h to allow process cache functionality. | |
1892 | (client_request_shm_get::serve): New parameter for process cache support. | |
1893 | Use the process cache, not OpenProcess to get a handle to the originating process. | |
1894 | Fix a handle leak with token_handle. | |
291be307 | 1895 | * cygserver_shm.h (class client_request_shm_get): Update ::serve for process |
f449bfef RC |
1896 | cache support. |
1897 | * cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG. | |
291be307 | 1898 | * include/cygwin/cygserver.h: Do not implement client_request::serve in the |
f449bfef | 1899 | header. |
291be307 CF |
1900 | * include/cygwin/cygserver_process.h (class process_cache): Add a write access |
1901 | critical section to prevent races when requests from a multithreaded | |
f449bfef RC |
1902 | application arrive. |
1903 | ||
1904 | Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1905 | ||
1906 | * Makefile.in: Add cygserver_process.o to cygserver.exe. | |
1907 | * cygserver.cc: Include signal.h and cygwin_version.h. | |
1908 | Define debug_printf as a macro. | |
1909 | Define DEBUG to a value. | |
1910 | (client_request_attach_tty::serve): Add beginning of process cache support. | |
1911 | Change from #ifdef DEBUG to work with new DEBUG style. | |
1912 | (client_request_get_version::serve): Add beginning of process cache support. | |
1913 | (class server_request): New prototype for support of process cache. | |
1914 | (class queue_process_param): New class to allow request loop threading. | |
1915 | (class server_request_queue): Add beginning of process cache support. | |
1916 | Allow request loop threading. | |
1917 | (request_loop): Thread function for request loops. | |
1918 | (server_request_queue::process_requests): Initiator for threaded request loops. | |
1919 | (client_request_shutdown::serve): Add beginning of process cache support. | |
1920 | (server_request::server_request): Ditto. | |
291be307 | 1921 | (server_request::process): Use debug_printf. Add beginning of process cache |
f449bfef RC |
1922 | support. |
1923 | (server_request_queue::cleanup): Kill off any request loop threads. | |
1924 | (server_request_queue::add): Add beginning of process cache support. | |
1925 | (handle_signal): Trigger a shutdown. | |
1926 | (main): Print out some useful info at startup - version, date time. | |
1927 | Add process cache support. | |
1928 | Spawn a separate thread for the transport request loop, thus allowing concurrent | |
1929 | support for multiple transports. | |
291be307 | 1930 | * cygserver_client.cc (client_request_get_version::serve): Add process cache |
f449bfef RC |
1931 | support. |
1932 | (client_request_attach_tty::serve): Add process cache support. | |
1933 | (client_request_shutdown::serve): Add process cache support. | |
1934 | * cygsserver_process.cc: New file with the process cache support. | |
1935 | * cygserver_shm.cc: Redefine debug_printf to allow conditional output. | |
1936 | * cygwin.din: Export shmdt(). | |
1937 | * shm.cc: Run indent. | |
1938 | Update FIXME's. | |
1939 | (shmdt): New function. | |
1940 | * include/cygwin/cygserver.h (class client_request): Add process cache support. | |
1941 | (class client_request_get_version): Ditto. | |
1942 | (class client_request_shutdown): Ditto. | |
1943 | (class client_request_attach_tty): Ditto. | |
1944 | * include/cygwin/cygserver_process.h: New header for process cache support. | |
1945 | ||
1946 | Sun Sep 30 8:52:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1947 | ||
1948 | * include/cygwin/cygserver_transport.h: Add copyright header. | |
1949 | * include/cygwin/cygserver_transport_pipes.h: Ditto. | |
1950 | * include/cygwin/cygserver_transport_sockets.h: Ditto. | |
1951 | ||
1952 | Sat Sep 29 20:40:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1953 | ||
1954 | * Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES. | |
1955 | Add cygserver_transport_sockets_outside.o to cygserver.exe. | |
1956 | * cygserver.cc: Include new include files. | |
1957 | * cygserver_client.cc: Ditto. | |
1958 | * cygserver_shm.h: No need to include <sys/socket.h> now. | |
1959 | * cygerver_transport.cc: Include new include files. | |
1960 | (transport_layer_base::transport_layer_base): Strip back to a stub. | |
1961 | (transport_layer_base::listen): Ditto. | |
1962 | (transport_layer_base::accept): Ditto. | |
1963 | (transport_layer_base::close): Ditto. | |
1964 | (transport_layer_base::read): Ditto. | |
1965 | (transport_layer_base::write): Ditto. | |
1966 | (transport_layer_base::connect): Ditto. | |
291be307 | 1967 | * cygserver_transport_pipes.cc: Include new header |
f449bfef RC |
1968 | "cygwin/cygserver_transport_pipes.h". |
1969 | * cygserver_transport_sockets.cc: New file. | |
1970 | * dcrt0.cc: No need to include <sys/socket.h> now. | |
1971 | * fhandler_tty.cc: Ditto. | |
1972 | * tty.cc: Ditto. | |
1973 | * include/cygwin/cygserver_transport.h: Strip the base class to a stub. | |
1974 | Remove the cygserver_transport_pipes class. | |
1975 | * include/cygwin/cygserver_transport_pipes.h: New file. | |
1976 | * include/cygwin/cygserver_transport_sockets.h: New file. | |
1977 | ||
1978 | Tue Sep 25 16:22:00 2001 Robert Collins <rbtcollins@hotmail.com> | |
1979 | ||
1980 | * autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'. | |
1981 | * Makefile.in: Add new object files, and build instructions for cygserver.exe. | |
1982 | * cygwin.din: Export ftok, shmat, shmctl and shmget. | |
1983 | * dcrt0.cc: Additional includes for cygserver support. | |
1984 | (dll_crt0_1): Initialise the cygserver client. | |
1985 | * fhandler.h (fhandler_tty): New method cygserver_attach_tty. | |
1986 | * fhandler_tty.cc: Additional includes for cygserver support. | |
1987 | (fhandler_tty_slave::open): Attempt to use the cygserver when obtaining | |
1988 | handles from the parent process. On failure or 9x use the current method. | |
1989 | (fhandler_tty_slave::cygserver_attach_tty): New function. | |
1990 | * fork.cc (fork_child): Fixup shm memory mapped areas. | |
1991 | * pinfo.h: Declare fixup_shms_after_fork(). | |
1992 | * security.h: Declare alloc_sd(). | |
1993 | * tty.cc: Additonal includes to support cygserver. | |
1994 | (tty::common_init): Don't allow others to open us if the cygserver is running. | |
1995 | * winsup.h: Declare cygserver_running. | |
1996 | * cygserver.cc: New file. | |
1997 | * cygserver_client.cc: New file. | |
1998 | * cygserver_shm.cc: New file. | |
1999 | * cygserver_shm.h: New file. | |
2000 | * cygserver_transport.cc: New file. | |
2001 | * cygserver_transport_pipes.cc: New file. | |
2002 | * ipc.cc: New file. | |
2003 | * shm.cc: New file. | |
2004 | * include/cygwin/cygserver.h: New file. | |
2005 | * include/cygwin/cygserver_transport.h: New file. | |
2006 | * include/sys/ipc.h: New file. | |
2007 | * include/sys/shm.h: New file. | |
2008 | ||
062401c9 RC |
2009 | 2002-02-28 Robert Collins <rbtcollins@hotmail.com> |
2010 | ||
2011 | * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1. | |
2012 | (__sem_wait): Ditto. | |
2013 | (__sem_trywait): Ditto. | |
2014 | ||
d1f50ae5 CF |
2015 | 2002-02-27 Christopher Faylor <cgf@redhat.com> |
2016 | ||
2017 | * include/cygwin/version.h: Bump DLL minor number. | |
2018 | ||
acb56175 CV |
2019 | 2002-02-23 Corinna Vinschen <corinna@vinschen.de> |
2020 | ||
2021 | * cygwin.din (fstat64): New symbol. | |
2022 | (ftruncate64): Ditto. | |
2023 | (lseek64): Ditto. | |
2024 | (lstat64): Ditto. | |
2025 | (mmap64): Ditto. | |
2026 | (seekdir64): Ditto. | |
2027 | (stat64): Ditto. | |
2028 | (telldir64): Ditto. | |
2029 | (truncate64): Ditto. | |
2030 | * dir.cc (telldir64): New function. | |
2031 | (telldir): Call telldir64(). | |
2032 | (seekdir64): New function. | |
2033 | (seekdir): Call seekdir64(). | |
2034 | * fhandler.h: Redefine all methods using __off32_t to use __off64_t. | |
2035 | * fhandler.cc: Use __off64_t and struct __stat64 throughout. | |
2036 | * fhandler_clipboard.cc: Ditto. | |
2037 | * fhandler_disk_file.cc: Ditto. | |
2038 | * fhandler_dsp.cc: Ditto. | |
2039 | * fhandler_floppy.cc: Ditto. | |
2040 | * fhandler_mem.cc: Ditto. | |
2041 | * fhandler_random.cc: Ditto. | |
2042 | * fhandler_socket.cc: Ditto. | |
2043 | * fhandler_tape.cc: Ditto. | |
2044 | * fhandler_zero.cc: Ditto. | |
2045 | * pipe.cc: Ditto. | |
2046 | * glob.c: Ditto, call lstat64 and stat64 in Cygwin. | |
2047 | * mmap.cc: Use __off64_t throughout. | |
2048 | (mmap64): New function. | |
2049 | * sec_acl.cc (acl_worker): Use struct __stat64, call stat64 and lstat64. | |
2050 | * syscalls.cc (lseek64): New function. | |
2051 | (stat64_to_stat32): Ditto. | |
2052 | (fstat64): Ditto. | |
2053 | (stat64): Ditto. | |
2054 | (lstat64): Ditto. | |
2055 | (ftruncate64): Ditto. | |
2056 | (truncate64): Ditto. | |
2057 | (_fstat): Call fstat64. | |
2058 | (_stat): Call stat64. | |
2059 | (cygwin_lstat): Rename to avoid declaration problem. Call lstat64. | |
2060 | (stat_worker): Use struct __stat64. | |
2061 | (access): Ditto. | |
2062 | (ftruncate): Call ftruncate64. | |
2063 | (truncate): Call truncate64. | |
2064 | * wincap.cc: Set flag has_64bit_file_access appropriately. | |
2065 | * wincap.h: Add flag has_64bit_file_access. | |
2066 | * winsup.h (ILLEGAL_SEEK): Define as __off64_t. | |
2067 | (stat_dev): Declare using struct __stat64. | |
2068 | (stat_worker): Ditto. | |
2069 | * include/cygwin/stat.h (struct __stat32): Define if compiling Cygwin. | |
2070 | (struct __stat64): Ditto. | |
2071 | (struct stat): Revert definition with explicitly sized datatypes. | |
2072 | Eliminate sized field names. | |
2073 | * include/cygwin/types.h (blksize_t): New type. | |
2074 | (__blkcnt32_t): Ditto. | |
2075 | (__blkcnt64_t): Ditto. | |
2076 | (blkcnt_t): Ditto. | |
2077 | ||
083abe54 CF |
2078 | 2002-02-22 Christopher Faylor <cgf@redhat.com> |
2079 | ||
2080 | * sync.h (new_muto): Just accept an argument which denotes the name of | |
2081 | the muto. Use this argument to construct static storage. | |
2082 | * cygheap.cc (cygheap_init): Reflect above change. | |
2083 | * exceptions.cc (events_init): Ditto. | |
2084 | * malloc.cc (malloc_init): Ditto. | |
2085 | * path.cc (cwdstuff::init): Ditto. | |
2086 | * cygheap.h (cwdstuff): Change name of lock element to make it less | |
2087 | generic. | |
2088 | * path.cc (cwdstuff::get_hash): Ditto. | |
2089 | (cwdstuff::get_initial): Ditto. | |
2090 | (cwdstuff::set): Ditto. | |
2091 | (cwdstuff::get): Ditto. | |
2092 | * sigproc.cc (proc_subproc): Ditto. | |
2093 | ||
2094 | * debug.cc (lock_debug): Change to method. Use method rather than | |
2095 | macro throughout. | |
2096 | ||
2097 | * tty.h (tty_min::kill_pgrp): Declare new method. | |
2098 | * fhandler_termios.cc (tty_min::kill_pgrp): New method. | |
2099 | (fhandler_termios::line_edit): Use new method for killing process. | |
2100 | * dcrt0.cc (do_exit): Ditto. | |
2101 | ||
2102 | * dtable.cc (dtable::get_debugger_info): New method for inheriting | |
2103 | dtable info from a debugger. | |
2104 | * tty.cc (tty_init): Attempt to grab file handle info from parent | |
2105 | debugger, if appropriate. | |
2106 | ||
2107 | # dtable.cc (dtable::stdio_init): Make this a method. | |
2108 | (dtable::init_std_file_from_handle): Don't set fd unless it's not open. | |
2109 | (dtable::build_fhandler_from_name): Move name setting to | |
2110 | dtable::build_fhandler. | |
2111 | (dtable::build_fhandler): Add win32 name parameter. | |
2112 | * dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init. | |
2113 | * dtable.h (dtable): Reflect build_fhandler parameter change. | |
2114 | * mmap.cc (mmap_record::alloc_fh): Don't set name parameter in | |
2115 | build_fhandler. | |
2116 | * net.cc (fdsock): Remove set_name call since it is now handled by | |
2117 | build_fhandler. | |
2118 | ||
2119 | * sigproc.cc (proc_subproc): Release muto as early as possible. | |
2120 | ||
a6790c5f CV |
2121 | 2001-02-22 Corinna Vinschen <corinna@vinschen.de> |
2122 | ||
2123 | * smallprint.c (rn): Allow long long values. | |
2124 | (__small_vsprintf): Add 'D', 'U' and 'X' formats for long long | |
2125 | parameters. | |
2126 | ||
aa6df8d7 CF |
2127 | 2002-02-19 Christopher Faylor <cgf@redhat.com> |
2128 | ||
2129 | * fhandler.cc (fhandler_base::puts_readahead): Remove default parameter | |
2130 | setting. Newer gcc's complain about this. | |
2131 | (fhandler_base::set_readahead_valid): Ditto. | |
2132 | * fhandler_dsp.cc (Audio::open): Ditto. | |
2133 | (fhandler_dev_dsp::open): Ditto. | |
2134 | ||
cecb74ae CF |
2135 | 2002-02-19 Christopher Faylor <cgf@redhat.com> |
2136 | ||
2137 | * fork.cc (fork_parent): Use sec_user_nih to control process/thread | |
2138 | inheritance/permission. | |
2139 | * spawn.cc (spawn_guts): Ditto. | |
2140 | * security.cc (create_token): Initialize token so that it is not tested | |
2141 | for bogus value later. Use sec_user to control process/thread | |
2142 | creation. | |
2143 | * security.h (__sec_user): Rename declaration from sec_user. | |
2144 | (sec_user_nih): Declare here as inline function wrapper for __sec_user. | |
2145 | (sec_user): Ditto. | |
2146 | * sigproc.cc (czombies): Allocate a character array for zombies to | |
2147 | avoid constructor overhead | |
2148 | (extremely hackish, I know). | |
2149 | (cpchildren): Ditto. | |
2150 | (pchildren): New define. | |
2151 | (zombies): Ditto. | |
2152 | (getsem): Use sec_user_nih to control semaphore inheritance/permission. | |
2153 | ||
2bd22312 CF |
2154 | 2002-02-16 Christopher Faylor <cgf@redhat.com> |
2155 | ||
2156 | * times.cc (hires::prime): Restore thread priority on failure | |
2157 | condition. | |
2158 | ||
2159 | * uinfo.cc (uinfo_init): Use more robust method for determining if | |
2160 | process was invoked from a non-cygwin process. | |
2161 | ||
2162 | * sync.h (muto::init): Eliminate "inheritance" parameter. | |
2163 | (new_muto): Reflect removal of parameter. | |
2164 | * sync.cc (muto::init): Ditto. | |
2165 | * cygheap.cc (cygheap_init): Ditto. | |
2166 | * debug.cc (threadname_init): Ditto. | |
2167 | * exceptions.cc (events_init): Ditto. | |
2168 | * malloc.cc (malloc_init): Ditto. | |
2169 | * path.cc (cwdstuff::init): Ditto. | |
2170 | * sigproc.cc (sigproc_init): Ditto. | |
2171 | ||
4c761646 CF |
2172 | * grp.cc (group_lock): Use different method for locking with static |
2173 | member. | |
2bd22312 | 2174 | (read_etc_group): REALLY ensure that read lock mutex is released. |
4c761646 CF |
2175 | * passwd.cc (passwd_lock): Use different method for locking with static |
2176 | member. | |
2177 | (read_etc_passwd): REALLY ensure that read lock mutex is released. | |
2bd22312 CF |
2178 | |
2179 | * shared.cc (sec_user): Correct reversed inheritance test. | |
2180 | ||
60b68f0d CF |
2181 | 2002-02-15 Christopher Faylor <cgf@redhat.com> |
2182 | ||
2183 | * hires.h (hires::usecs): Rename from utime. Accept an argument. | |
2184 | * strace.cc (strace::microseconds): Use hires class for calculating | |
2185 | times. | |
2186 | * sync.h (new_muto): Use NO_COPY explicitly in declaration. | |
2187 | * times.cc (gettimeofday): Reflect change in usecs argument. | |
2188 | (hires::usecs): Ditto. Changed name from utime. | |
2189 | * winsup.h (NO_COPY): Add nocommon attribute to force setting aside | |
2190 | space for variable. | |
2191 | * regcomp.c (REQUIRE): Add a void cast to bypass a warning. | |
2192 | ||
dce87b21 CF |
2193 | 2002-02-15 Christopher Faylor <cgf@redhat.com> |
2194 | ||
2195 | * hires.h: New file. | |
2196 | * times.cc (gettimeofday): Use hires class for calculating current time. | |
2197 | (hires::prime): New method. | |
2198 | (hires::utime): Ditto. | |
2199 | ||
3d456520 CF |
2200 | 2002-02-14 Christopher Faylor <cgf@redhat.com> |
2201 | ||
2202 | * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE. | |
2203 | * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE. | |
2204 | ||
907dc7d0 CF |
2205 | 2002-02-14 Christopher Faylor <cgf@redhat.com> |
2206 | ||
2207 | * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to | |
2208 | asm. | |
2209 | * external.cc (cygwin_internal): Change CW_STRACE_ON to | |
2210 | CW_STRACE_TOGGLE. | |
2211 | * strace.cc (strace::hello): Toggle strace on and off. | |
2212 | * sync.cc (muto::init): Renamed from constructor. | |
2213 | * sync.h (muto::new): Delete. | |
2214 | (muto::delete): Ditto. | |
2215 | (new_muto): Simplify. Use muto.init for nearly everything. | |
2216 | * uinfo.cc (uinfo_init): Avoid closing a NULL handle. | |
2217 | * include/sys/cygwin.h (cygwin_getinfo_types): Rename CW_STRACE_OFF to | |
2218 | CW_STRACE_TOGGLE. Delete CW_STRACE_OFF. | |
2219 | * include/sys/strace.h (strace): Add "inited" field. | |
2220 | ||
4753a17b CV |
2221 | 2001-02-12 Corinna Vinschen <corinna@vinschen.de> |
2222 | ||
2223 | * include/cygwin/acl.h: Fix definition of aclent_t. | |
2224 | ||
909acaf6 CF |
2225 | 2002-02-10 Christopher Faylor <cgf@redhat.com> |
2226 | ||
2227 | * Makefile.in (DLL_OFILES): Consolidate object files. | |
2228 | ||
de4e0d30 CV |
2229 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> |
2230 | ||
b31c68c4 CV |
2231 | * child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc, |
2232 | fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, | |
2233 | fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, | |
2234 | pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, | |
2235 | security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright. | |
2236 | ||
2237 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> | |
2238 | ||
2239 | * child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h, | |
de4e0d30 CV |
2240 | fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc, |
2241 | fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, | |
2242 | fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, | |
2243 | pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, | |
b31c68c4 | 2244 | security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h: |
de4e0d30 CV |
2245 | Change usage of uid_t to __uid16_t, gid_t to __gid16_t and |
2246 | off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and | |
2247 | INVALID_SEEK instead casting -1 to the appropriate type. | |
2248 | * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK. | |
2249 | * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t | |
2250 | types. Don't declare acl functions when compiling Cygwin. | |
2251 | * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with | |
2252 | correct types for internal usage. | |
2253 | ||
39b553b8 CV |
2254 | 2002-02-10 Corinna Vinschen <corinna@vinschen.de> |
2255 | ||
2256 | Patch suggested by Pierre A. Humblet <Pierre.Humblet@ieee.org>: | |
2257 | * uinfo.cc (internal_getlogin): Try evaluating user by SID even if | |
2258 | ntsec is off. | |
2259 | (uinfo_init): Set primary group even if ntsec is off. | |
2260 | ||
52296b85 CV |
2261 | 2002-02-09 Corinna Vinschen <corinna@vinschen.de> |
2262 | ||
2263 | * include/cygwin/grp.h: New file. | |
2264 | * include/cygwin/stat.h: Ditto. | |
2265 | * include/cygwin/types.h: Add definitions for __off32_t, | |
2266 | __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t, | |
2267 | __gid32_t and gid_t. | |
2268 | * include/sys/cygwin.h: Use correct uid and gid types. | |
2269 | ||
ff86860b CV |
2270 | 2002-02-09 Corinna Vinschen <corinna@vinschen.de> |
2271 | ||
2272 | * dtable.cc (dtable::dup2): Revert previous patch. | |
2273 | * fhandler.h: Ditto. | |
2274 | (fhandler_socket::recv): Define new method. | |
2275 | (fhandler_socket::send): Ditto. | |
2276 | * fhandler_socket.cc (fhandler_socket::recv): New method. | |
2277 | (fhandler_socket::send): Ditto. | |
2278 | (fhandler_socket::read): Call fhandler_socket::recv() now. | |
2279 | (fhandler_socket::write): Call fhandler_socket::send() now. | |
2280 | * net.cc (class wsock_event): Move definition to wsock_event.h. | |
2281 | (fdsock): Revert previous patch. | |
2282 | (cygwin_recv): Move implementation to fhandler_socket::recv(). | |
2283 | (cygwin_send): Move implementation to fhandler_socket::send(). | |
2284 | * wsock_event.h: New file. | |
2285 | ||
d0672acc CV |
2286 | 2002-02-06 Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de> |
2287 | ||
2288 | * net.cc (get_2k_ifconf): Create interface entries for tokenring cards. | |
2289 | ||
fae28904 CV |
2290 | 2002-02-08 Corinna Vinschen <corinna@vinschen.de> |
2291 | ||
2292 | * dtable.cc (dtable::dup2): Store fd for fhandler_socket. | |
2293 | * fhandler.h (fhandler_base::set_fd): New virtual method. | |
2294 | (fhandler_base::get_fd): Ditto. | |
2295 | (fhandler_socket::set_fd): Ditto. | |
2296 | (fhandler_socket::get_fd): Ditto. | |
2297 | * fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead | |
2298 | of native Winsock recv. | |
2299 | (fhandler_socket::write): Call cygwin_send instead of native Winsock | |
2300 | send. | |
2301 | * net.cc (fdsock): Store fd in fhandler_socket. | |
2302 | ||
1f64102f CV |
2303 | 2002-02-07 Corinna Vinschen <corinna@vinschen.de> |
2304 | ||
2305 | * net.cc (cygwin_getsockname): Fix handling of NULL sun_path. | |
2306 | ||
562d9745 CV |
2307 | 2002-01-29 Corinna Vinschen <corinna@vinschen.de> |
2308 | ||
2309 | * net.cc (getdomainname): Fix registry key for 9x systems, too. | |
2310 | ||
94ee02fa CV |
2311 | 2002-01-29 Corinna Vinschen <corinna@vinschen.de> |
2312 | ||
2313 | * net.cc (getdomainname): Fix registry key for NT systems. | |
2314 | ||
494a66d9 CF |
2315 | 2002-01-28 Christopher Faylor <cgf@redhat.com> |
2316 | ||
2317 | * external.cc (cygwin_internal): Initialize various internal settings | |
2318 | if required to allow use of some things from user loaded DLL. | |
2319 | (CW_STRACE_ON): Add new feature. | |
2320 | (CW_CYGWIN_PID_TO_WINPID): Ditto. | |
2321 | * pinfo.cc (set_myself): Call "strace.hello" to initiate possible | |
2322 | strace session. | |
2323 | (pinfo::init): Guard against dereferencing uninitialized myself. | |
2324 | * sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal" | |
2325 | received. | |
2326 | * strace.cc (strace::hello): New method. | |
2327 | * wincap.cc (wincapc::init): Avoid initializing if already initialized. | |
2328 | * wincap.h (wincapc::wincapc): New method. | |
2329 | * include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of | |
2330 | {g,u}id_t if required. | |
2331 | * strace.h (strace::hello): Declare new method. | |
2332 | ||
6616e6cf CF |
2333 | 2002-01-28 Earnie Boyd <earnie@users.sf.net> |
2334 | ||
2335 | * include/sys/strace.h (_STRACE_ON): Define. | |
2336 | (_STRACE_OFF): Ditto. | |
2337 | ||
dfb4c347 CF |
2338 | 2002-01-24 Christopher Faylor <cgf@redhat.com> |
2339 | ||
2340 | * speclib: Ensure that temporary def file is removed. | |
2341 | ||
3c07fbeb CF |
2342 | 2002-01-23 Christopher Faylor <cgf@redhat.com> |
2343 | ||
2344 | * speclib: Use rm -f to remove temp file just to quiet any potential | |
2345 | warnings. | |
2346 | ||
f6fc31e1 CV |
2347 | 2002-01-23 Corinna Vinschen <corinna@vinschen.de> |
2348 | ||
2349 | * security.cc (create_token): Use sec_user() to create | |
be6d8567 CV |
2350 | SECURITY_ATTRIBUTES structure for primary token. Use |
2351 | MAXIMUM_ALLOWED access rights instead of TOKEN_ALL_ACCESS. | |
f6fc31e1 | 2352 | |
adbd01af CV |
2353 | 2002-01-23 Corinna Vinschen <corinna@vinschen.de> |
2354 | ||
2355 | * path.cc (symlink): Fix check for already existing file. | |
2356 | ||
aed69a5b CF |
2357 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
2358 | ||
2359 | * cygmagic: Suppress error output when figuring out if sum takes an | |
2360 | option. | |
2361 | ||
f3647dd7 CF |
2362 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
2363 | ||
2364 | * cygmagic: Attempt to figure out if sum takes an option. | |
2365 | ||
51076b73 CF |
2366 | 2002-01-21 DJ Delorie <dj@redhat.com> |
2367 | ||
2368 | * Makefile.in (libpthread.a): Pass the assembler also. | |
291be307 | 2369 | (libm.a): Ditto. |
51076b73 CF |
2370 | (libc.a): Ditto. |
2371 | * speclib: Specify the assembler to dlltool. | |
2372 | ||
0ac2abea CF |
2373 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
2374 | ||
2375 | * include/cygwin/version.h: Bump DLL minor number. | |
2376 | ||
ac11ec88 CV |
2377 | 2002-01-21 Corinna Vinschen <corinna@vinschen.de> |
2378 | ||
28982aa8 | 2379 | * grp.cc (getgrgid): Don't return default gid entry when ntsec is on. |
ac11ec88 CV |
2380 | * syscalls.cc (setegid): Don't set primary group in process token. |
2381 | ||
8ef47135 CF |
2382 | 2002-01-21 Christopher Faylor <cgf@redhat.com> |
2383 | ||
2384 | * speclib: Don't use /dev/null as DLL name. Just default to what's | |
2385 | already in .def file. | |
2386 | ||
2387 | 2002-01-21 Christopher Faylor <cgf@redhat.com> | |
2388 | ||
2389 | * exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code | |
2390 | which caused SIGCHLD to be ignored. | |
2391 | ||
07cc1f1f CF |
2392 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
2393 | ||
2394 | * include/cygwin/version.h: Bump DLL minor number. | |
2395 | ||
385437d4 CF |
2396 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
2397 | ||
2398 | * syscalls.cc (regfree): Make dll_export. | |
2399 | ||
d7c16d8d CF |
2400 | 2002-01-20 Christopher Faylor <cgf@redhat.com> |
2401 | ||
2402 | * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid | |
2403 | when detecting if we should actually handle CTRL-C. | |
2404 | ||
216109a8 CF |
2405 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
2406 | ||
2407 | * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a | |
2408 | is only available in libstdc++-v3. | |
2409 | ||
9e73b339 CF |
2410 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
2411 | ||
2412 | * exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent | |
2413 | doesn't want it. | |
2414 | (sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough | |
2415 | information. | |
2416 | ||
5946622e CF |
2417 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
2418 | ||
2419 | * include/cygwin/version.h: Bump DLL minor number. | |
2420 | ||
994fe87b CF |
2421 | 2002-01-19 Christopher Faylor <cgf@redhat.com> |
2422 | ||
2423 | * Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link. | |
2424 | * sigproc.cc (proc_exists): Change existence criteria. | |
2425 | * sync.h (new_muto): Add volatile to definition to avoid gcc | |
2426 | optimization problems. | |
2427 | ||
df3af773 CV |
2428 | 2002-01-19 Corinna Vinschen <corinna@vinschen.de> |
2429 | ||
2430 | * include/cygwin/version.h: Bump API minor version to 51. | |
2431 | ||
7d6be0d6 CV |
2432 | 2002-01-19 Mark Bradshaw <bradshaw@staff.crosswalk.com> |
2433 | ||
291be307 CF |
2434 | * cygwin.din: Add recvmsg and sendmsg. |
2435 | * net.cc: Add cygwin_recvmsg and cygwin_sendmsg. | |
2436 | * /usr/include/sys/socket.h: Add recvmsg and sendmsg. | |
7d6be0d6 | 2437 | |
2d3dab2e CV |
2438 | 2002-01-19 Corinna Vinschen <corinna@vinschen.de> |
2439 | ||
2440 | * security.cc (create_token): Close processes token handle as soon | |
2441 | as it's not used anymore. | |
2442 | ||
104c3be6 CV |
2443 | 2002-01-17 Corinna Vinschen <corinna@vinschen.de> |
2444 | ||
2445 | * Makefile.in: Add fnmatch.o to DLL_OFILES. | |
2446 | * cygwin.din: Add fnmatch export symbol. | |
2447 | * fnmatch.c: New file. | |
2448 | * include/fnmatch.h: Ditto. | |
2449 | * include/cygwin/version.h: Bump API minor version to 50. | |
2450 | ||
9a7e1562 CV |
2451 | 2002-01-15 Corinna Vinschen <corinna@vinschen.de> |
2452 | ||
2453 | * path.cc (fchdir): Call chdir with full windows path. | |
2454 | ||
7eddac1b CV |
2455 | 2002-01-14 Corinna Vinschen <corinna@vinschen.de> |
2456 | ||
2457 | * dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1" | |
2458 | for file attributes throughout. | |
2459 | * fhandler.cc: Ditto. | |
2460 | * fhandler_disk_file.cc: Ditto. | |
2461 | * path.cc: Ditto. | |
2462 | * path.h: Ditto. | |
2463 | * syscalls.cc: Ditto. | |
2464 | * times.cc (utimes): Use path_conv::isdir() instead of explicit | |
2465 | GetFileAttributes() call. | |
2466 | ||
5daa0835 CF |
2467 | 2002-01-13 Christopher Faylor <cgf@redhat.com> |
2468 | ||
2469 | * dcrt0.cc (multiple_cygwin_problem): Clarify logic and make | |
2470 | CYGWIN_MISMATCH_OK more powerful. | |
2471 | ||
06486d9e CF |
2472 | 2002-01-10 Christopher Faylor <cgf@redhat.com> |
2473 | ||
2474 | * exceptions.cc (sig_handle): Accept a second argument indicating | |
2475 | whether the signal came from this process or not. | |
2476 | * sigproc.h: Reflect sig_handle arg change. | |
2477 | * signal.cc (kill_pgrp): Add sigframe info. | |
2478 | (abort): New function. Eliminates newlib function of same name. | |
2479 | * sigproc.cc (wait_sig): Pass "signal from this process" value as arg | |
2480 | 2. | |
2481 | ||
bb5225c2 CV |
2482 | 2002-01-10 Corinna Vinschen <corinna@vinschen.de> |
2483 | ||
2484 | * syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid | |
2485 | file parameter. | |
2486 | ||
c0a8e8d0 | 2487 | 2002-01-09 Christopher Faylor <cgf@redhat.com> |
291be307 | 2488 | Robert Collins <rbtcollins@hotmail.com> |
c0a8e8d0 CF |
2489 | |
2490 | * exceptions.cc (early_stuff_init): Rename from misnamed | |
2491 | set_console_handler. | |
2492 | (ctrl_c_handler): Attempt to work around potential signal duplication | |
2493 | during process startup. | |
2494 | (sig_handle): Ignore SIGINT when we're just an "exec stub". | |
2495 | * spawn.cc (spawn_guts): Store pid of spawned process in global for use | |
2496 | by ctrl_c_handler. | |
2497 | * dcrt0.cc (dll_crt0_1): Call renamed initialization function. | |
2498 | * winsup.h: Reflect function name change. | |
2499 | ||
fe37dd79 CV |
2500 | 2002-01-08 Corinna Vinschen <corinna@vinschen.de> |
2501 | ||
2502 | * net.cc (cygwin_accept): Set sun_path for newly connected socket. | |
2503 | ||
cbf7a9eb CF |
2504 | 2002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de> |
2505 | ||
2506 | * Makefile.in: Add uninstall target. | |
2507 | ||
a2e12d0c CF |
2508 | 2002-01-07 Christopher Faylor <cgf@redhat.com> |
2509 | ||
2510 | * sigproc.cc (getsem): Clean up debugging output. | |
2511 | ||
4a08cbfe CF |
2512 | 2002-01-07 Christopher Faylor <cgf@redhat.com> |
2513 | ||
2514 | * sigproc.cc (getsem): Set errno when unable to create own semaphore. | |
2515 | Reorganize to make clearer that error should only come from initial | |
2516 | creation of process semaphore. | |
2517 | ||
10dedaaa CF |
2518 | 2002-01-06 Christopher Faylor <cgf@redhat.com> |
2519 | ||
2520 | * dtable.cc (dtable::init_std_file_from_handle): Add some defensive | |
2521 | code to invalid handle case. | |
2522 | ||
d6154fb7 CV |
2523 | 2002-01-06 Corinna Vinschen <corinna@vinschen.de> |
2524 | ||
2525 | * ioctl.cc (ioctl): Make third argument optional. | |
2526 | * include/sys/ioctl.h: Ditto in declaration. | |
2527 | * dtable.cc (dtable::init_std_file_from_handle): Revert previous | |
2528 | bogus patch. | |
2529 | * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB | |
2530 | message. | |
2531 | ||
9125cbd7 | 2532 | 2002-01-05 Christopher Faylor <cgf@redhat.com> |
fcb76c5d | 2533 | |
9125cbd7 CF |
2534 | * dir.cc (opendir): Guarantee release of alloced fhandler structure on |
2535 | error. | |
fcb76c5d | 2536 | |
9125cbd7 CF |
2537 | 2002-01-05 Corinna Vinschen <corinna@vinschen.de> |
2538 | ||
2539 | * exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN. | |
2540 | ||
2541 | 2002-01-05 Corinna Vinschen <corinna@vinschen.de> | |
2edba236 CV |
2542 | |
2543 | * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL | |
2544 | handle as errorneous. | |
2545 | ||
acf05df7 CF |
2546 | 2002-01-04 Christopher Faylor <cgf@redhat.com> |
2547 | ||
2548 | * cygmagic: Change logic for equality test. | |
2549 | ||
7acba971 CF |
2550 | 2002-01-04 Christopher Faylor <cgf@redhat.com> |
2551 | ||
2552 | * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT. | |
2553 | ||
9125cbd7 | 2554 | 2002-01-04 Corinna Vinschen <corinna@vinschen.de> |
dc63cea5 CV |
2555 | |
2556 | * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL | |
2557 | throughout. | |
2558 | (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types | |
2559 | in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL | |
2560 | and PF_INET protocols. Return error otherwise. Implement datagram | |
2561 | socketpairs. | |
2562 | ||
3b789217 CF |
2563 | 2002-01-01 Christopher Faylor <cgf@redhat.com> |
2564 | ||
291be307 | 2565 | * speclib: Remove temp files automatically. |
3b789217 | 2566 | |
2fe27909 | 2567 | 2002-01-01 Corinna Vinschen <corinna@vinschen.de> |
2fe27909 CV |
2568 | * fhandler.h (fhandler_socket::sun_path): New private member. |
2569 | (fhandler_socket::set_sun_path): New method. | |
2570 | (fhandler_socket::get_sun_path): Ditto. | |
2571 | * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize | |
2572 | sun_path to NULL. | |
2573 | (fhandler_socket::~fhandler_socket): Free sun_path if needed. | |
2574 | (fhandler_socket::set_sun_path): New method. | |
2575 | * net.cc (cygwin_bind): Set sun_path to path of local socket file. | |
2576 | (cygwin_getsockname): Add code to return correct sockaddr for unix | |
2577 | domain sockets. |