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