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