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