]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
* configure.in (noconfigdirs): Don't disable libgcj on
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
13ee3618
CF
12002-05-24 Christopher January <chris@atomice.net>
2
3 * path.h (path_conv::path_conv): Initialise normalized_path to NULL.
4
8761c1dc
CF
52002-05-03 Christopher Faylor <cgf@redhat.com>
6
7 * net.cc (getdomainname): Change second argument of getdomainname to
8 size_t.
9
102002-05-03 Christopher January <chris@atomice.net>
11
12 * fhandler_proc.cc (proc_listing): Add '.' and '..' to directory
13 listing.
14 (fhandler_proc::open): Change use of mode to flags. If the file does
15 not exist already, fail with EROFS if O_CREAT flag is set. Change
16 EROFS error to EACCES error when writing to a file. Use cmalloc to
17 allocate memory for filebuf.
18 (fhandler_proc::close): Use cfree to free filebuf.
19 (fhandler_proc::get_proc_fhandler): Properly detect attempts to access
20 unknown subdir.
21 * fhandler_process.cc (process_listing): Add '.' and '..' to directory
22 listing.
23 (fhandler_process::open): Use cmalloc to allocate memory for filebuf.
24 (fhandler_process::close): Use cfree to free filebuf.
25 * fhandler_registry.cc (registry_listing): Add . and '..' to directory
26 listing.
27 (fhandler_registry::open): Move check for open for writing before
28 open_key. Use cmalloc to allocate memory for filebuf.
29 (fhandler_registry::close): Use cfree to free filebuf.
30 (fhandler_registry::telldir): Use lower 16 bits of __d_position as
31 position in directory.
32 (fhandler_registry::seekdir): Ditto.
33 * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to
34 EACCES error.
35 (fhandler_virtual::open): Set the NOHANDLE flag.
36 (fhandler_virtual::dup): Add call to fhandler_base::dup. Allocate
37 child's filebuf using cmalloc. Copy filebuf from parent to child.
38 (fhandler_virtual::close): Use cfree to free filebuf.
39 (fhandler_virtual::~fhandler_virtual): Ditto.
40 (from Chris Faylor <cgf@redhat.com>).
41 (fhandler_registry::readdir): Add support for '.' and '..' files in
42 subdirectories of /proc/registry.
43 * path.cc (path_conv::check): Do not return ENOENT if a file is not
44 found in /proc.
45
335c87f9
CF
462002-05-02 Christopher Faylor <cgf@redhat.com>
47
48 * fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather
49 than path_conv name.
50 (fhandler_proc::open): Ditto.
51 * fhandler_process.cc (fhandler_process::fstat): Use fhandler name
52 rather than path_conv name.
53 (fhandler_process::open): Ditto.
54 * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name
55 rather than path_conv name.
56 (fhandler_registry::open): Ditto.
57 * path.cc (path_conv::check): Don't copy posix path when virtual.
58 (mount_info::conv_to_win32_path): Don't zero string when isproc. Just
59 derive normal windows path.
60
61 * path.h (path_conv::clear_normalized_path): Declare new method.
62 * path.cc (path_conv::clear_normalized_path): Define new method.
63 * dtable.cc (build_fhandler_from_name): Clear normalized path when
64 finished to conserve space.
65
3bb7eb44
CF
662002-05-02 Christopher Faylor <cgf@redhat.com>
67
68 * fhandler_proc.cc (fhandler_proc::fstat): Prime with information from
69 fhandler_base::fstat. Use defines rather than constants for permission
70 settings.
71
d055ecb0
CV
722002-04-30 Eric Blake <ebb9@email.byu.edu>
73
74 * path.cc (hash_path_name): Improve hash function strength.
75
37143995
RC
762002-05-02 Robert Collins <rbtcollins@hotmail.com>
77
78 * thread.cc (__pthread_cond_dowait): Fix a race on signalling from a
79 thread woken by the same condition variable it's signalling on. Thanks
80 to Michael Beach for the report and test case.
81
291be307
CF
822002-05-02 Christopher Faylor <cgf@redhat.com>
83
84 * path.h (pathconv_arg): Add PC_POSIX.
85 (path_conv): Add normalized_path field.
86 * path.cc (path_conv::~path_conv): New destructor.
87 (path_conv::check): Set normalized_path, where appropriate.
88 * dtable.cc (build_fhandler_from_name): Use normalized path from
89 path_conv.
90 * syscalls.cc (chroot): Ditto.
91
92 * cygheap.h: Remove path_prefix_p declaration.
93
942002-02-26 Christopher January <chris@atomice.net>
95 Christopher Faylor <cgf@redhat.com> (minor fixups)
96
97 * Makefile.in: Add fhandler_proc.o, fhandler_registry.o,
98 fhandler_process.o and fhandler_virtual.o.
99 * dtable.cc (dtable::build_fhandler): Add entries for FH_PROC,
100 FH_REGISTRY and FH_PROCESS. Set unix_name to the normalized posix
101 path.
102 * fhandler.h: Add constants for FH_PROC, FH_REGISTRY and FH_PROCESS.
103 Add class declarations for fhandler_virtual, fhandler_proc,
104 fhandler_registry and fhandler_virtual. Update fhandler_union
105 accordingly.
106 * fhandler_proc.cc: New file. Add implementation for fhandler_proc.
107 * fhandler_virtual.cc: New file. Add implementation for
108 fhandler_virtual.
109 * fhandler_process.cc: New file. Add implementation for
110 fhandler_process.
111 * fhandler_registry.cc: New file. Add implementation for
112 fhandler_registry.
8761c1dc
CF
113 * path.cc (isproc): New macro.
114 (isvirtual_dev): Ditto.
291be307
CF
115 * path.cc (path_conv::check): Add check for virtual devices.
116 * path.cc (mount_info::conv_to_win32_path): Convert paths in /proc to
117 empty Win32 paths.
118 * path.cc (chdir): Replace check for FH_CYGDRIVE with more generic
119 isvirtual_dev macro. Force setting of posix path for virtual
120 fhandlers.
8761c1dc 121 * path.h (path_prefix_p): Declare.
291be307
CF
122
123
fee93846
CF
124Wed May 1 16:06:02 2002 Jason Tishler <jason@tishler.net>
125
126 * include/cygwin/types.h: Include <sys/sysmacros.h>.
127
9b15f5fa
CV
128Wed Apr 17 11:27:04 2002 Jason Tishler <jason@tishler.net>
129
130 * security.cc (get_lsa_srv_inf): Prevent extraneous backslashes for
131 the NT Domain case.
132
4deace13
CV
1332002-04-12 Corinna Vinschen <corinna@vinschen.de>
134
135 * net.cc (cygwin_accept): Set socket type for accepted socket.
136 (socketpair): Set socket type for both sockets.
137
1382002-04-12 Egor Duda <deo@logos-m.ru>
139
291be307 140 * fhandler.h (class fhandler_socket): New member to store socket type.
4deace13
CV
141 (fhandler_socket::get_socket_type): Access it.
142 (fhandler_socket::set_socket_type): Ditto.
143 * net.cc (cygwin_socket): Store socket type.
144 (cygwin_connect): Disable security checks for connectionless sockets.
145 (cygwin_accept): Ditto.
146
dbe67a81
CF
1472002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
148
149 * cygwin.din: Add strptime.
150 * include/cygwin/version.h: Increment API version number.
151
464b3e80
CV
1522002-04-09 Corinna Vinschen <corinna@vinschen.de>
153
154 * fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
155
d78bda7b
CV
1562002-04-09 Corinna Vinschen <corinna@vinschen.de>
157
158 * fhandler.cc (fhandler_base::open): Set read-only bit in
159 file_attributes when adequate.
160
8996623b
CF
1612002-03-28 Christopher Faylor <cgf@redhat.com>
162
163 * times.cc (gettimeofday): Fix typo in previous patch.
164
7d7524e5
CF
1652002-03-27 Wu Yongwei <adah@netstd.com>
166
167 * times.cc (gettimeofday): Revert to setting timezone info if tz !=
168 NULL.
169
2f3126f6
CF
1702002-03-21 Christopher Faylor <cgf@redhat.com>
171
172 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
173 st_[ug]id to value derived from get_file_attributes.
174
45d2ea8a
CF
1752002-03-21 Christopher Faylor <cgf@redhat.com>
176
177 * spawn.cc (find_exec): Return input if file not found.
178
99dbafac
CV
1792002-03-19 Boris Schaeling <boriss@web.de>
180
291be307 181 * poll.cc (poll): Add support for invalid descriptors.
99dbafac 182
b0359971
RC
1832002-03-15 Robert Collins <rbtcollins@hotmail.com>
184
185 * fhandler.h (fhandler_termios::lseek): Override lseek.
186 * fhandler_termios.cc (fhandler_termios::lseek): Implement this.
187
59a2339f
CF
1882002-03-15 Christopher Faylor <cgf@redhat.com>
189
190 * cygserver.cc: Include stdlib.h for exit declaration.
191 * threaded_queue.cc: Ditto.
192
ca175377
CF
1932002-03-15 Christopher Faylor <cgf@redhat.com>
194
195 * pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a
196 redirected block should be marked as nonexistent.
197 (winpids::add): Use PID_ALLPIDS when looking for all pids.
198 * cygwin.h (PID_ALLPIDS): New enum element.
199
d78bda7b 2002002-03-15 Corinna Vinschen <corinna@vinschen.de>
2f263187 201
291be307 202 * glob.c (stat32_to_STAT): New function.
2f263187
CV
203 (g_lstat): Call user space functions always with 32 bit struct stat
204 as a workaround.
205 (g_stat): Ditto.
206 * include/glob.h (struct glob): Don't prototype function pointers
207 when compiling Cygwin.
208
4af6d4a9
CF
2092002-03-14 Christopher Faylor <cgf@redhat.com>
210
211 * pinfo.cc (pinfo::init): Properly handle execed process stub when
212 PID_NOREDIR is specified.
213
6ea9c716
CV
2142002-03-13 Boris Schaeling <boriss@web.de>
215
e10c087b
CF
216 * poll.cc (poll): Remove variable open_fds. Rearrange and add code to
217 fix settings of revents.
6ea9c716 218
d78bda7b 2192002-03-13 Corinna Vinschen <corinna@vinschen.de>
bbe09139
CV
220
221 * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails.
222 (list::erase): New method with no argument. Erase latest record
223 added.
224 (mmap64): Fail if map_map() fails.
225
d78bda7b 2262002-03-12 Corinna Vinschen <corinna@vinschen.de>
cb4589f4
CV
227
228 * sysconf.cc (sysconf): Fix condition.
229
d78bda7b 2302002-03-11 Corinna Vinschen <corinna@vinschen.de>
2817e0dc
CV
231
232 * mmap.cc (msync): Check area given by addr and len for being a
233 contigeous mmap'd region.
234
d78bda7b 2352002-03-11 Corinna Vinschen <corinna@vinschen.de>
713fb38b
CV
236
237 * fork.cc (fork_child): Call fixup_mmaps_after_fork() before
238 closing parent process handle. Call fixup_mmaps_after_fork()
239 with parent process handle as parameter.
240 * mmap.cc (mmap_record::access): New method.
241 (fixup_mmaps_after_fork): Take process handle as parameter.
242 In case of FILE_MAP_COPY access, copy valid memory regions to child.
243 * pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly.
244
d78bda7b 2452002-03-07 Corinna Vinschen <corinna@vinschen.de>
c8c3824d
CV
246
247 * autoload.cc (NetGetDCName): Add symbol.
248 (NetServerEnum): Remove symbol.
249 * security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of
250 NetServerEnum() since it's faster. Don't call it at all if machine
251 is not a domain member.
252
9420d2b8
CF
2532002-03-06 Christopher Faylor <cgf@redhat.com>
254
255 * path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
256
07a21bce
CF
2572002-03-05 Christopher Faylor <cgf@redhat.com>
258
259 * errno.cc: Change EPERM associated text to "Operation not permitted"
260 throughout.
261
eeac69d8
CF
2622002-03-05 Christopher Faylor <cgf@redhat.com>
263
264 * fhandler_socket.cc (fhandler_socket::close): Respond to signals while
265 looping, waiting for socket to close. Superstitiously clear last error
266 when WSAEWOULDBLOCK.
267
241a7c5a
RC
2682002-03-05 Robert Collins <rbtcollins@hotmail.com>
269
291be307 270 * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
241a7c5a
RC
271 Always init - until static members work correctly.
272 * shm.cc (shmget): Initialize the security descriptor - thanks Corinna!
291be307 273 * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem
241a7c5a
RC
274 control constants.
275
ad2864f4
CV
2762002-03-04 Christian Lestrade <christian.lestrade@free.fr>
277
278 * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro.
279 * fhandler_termios.cc: Include <sys/termios.h>.
280 (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when
281 not in ICANON mode.
282
59149930
CV
2832002-03-04 Dmitry Timoshkov <dmitry@baikal.ru>
284
285 * syscalls.cc (truncate64): Use ftruncate64 directly to not lose
286 upper 32 bits.
287
7c3617cc
RC
2882002-03-04 Robert Collins <rbtcollins@hotmail.com>
289
290 * cygserver_shm.cc (delete_shmnode): New function.
291 (client_request_shm::serve): Use it.
292
038c71f1
RC
2932002-03-04 Robert Collins <rbtcollins@hotmail.com>
294
295 * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH.
296 * shm.cc (shmdt): Implement.
297
67be0adb
RC
2982002-03-04 Robert Collins <rbtcollins@hotmail.com>
299
300 * cygserver_shm.cc: Run indent.
301 (deleted_head): New global for storing shm id's pending deletion.
302 (client_request_shm::serve): Return ENOSYS for invalid request types.
303 Implement SHM_DEL - delete a shm id.
304 * cygserver_shm.h (SHM_DEL): New type value.
305 * shm.cc (delete_inprocess_shmds): New function, does what it's name implies.
306 (shmctl): Implement shm_rmid control type.
307
74c3173a
RC
3082002-03-04 Robert Collins <rbtcollins@hotmail.com>
309
310 * Makefile.in (install): Remove install-bin to allow make install to work.
311
009314a4
RC
3122002-03-03 Robert Collins <rbtcollins@hotmail.com>
313
314 * shm.cc (shmat): Prevent a compile error.
315 (shmdt): Set errno as this function is incomplete.
316
e7729287
CF
3172002-02-28 Christopher Faylor <cgf@redhat.com>
318
319 * times.cc: Remove if 0'd code. Clean up slightly.
320
f449bfef
RC
3212002-02-28 Robert Collins <rbtcollins@hotmail.com>
322
323 * Merged cygwin_daemon into head minus the new shm and ipc exports.
324
3252002-02-28 Robert Collins <rbtcollins@hotmail.com>
326
327 * fhandler_tty.cc (fhandler_tty_slave::open): More debugging.
328 (fhandler_tty_slave::read): Fix printf type for the handle.
329 * tty.cc (tty::common_init): Add a FIXME for security.
330
3312002-01-29 Robert Collins <rbtcollins@hotmail.com>
332
333 * Makefile.in (OBJS): Remove duplicate localtime.o.
334
3352002-01-17 Robert Collins <rbtcollins@hotmail.com>
336
291be307 337 * cygserver.cc (check_and_dup_handle): Consolidate the two variants for
f449bfef
RC
338 simplicity.
339 Add Some basic debug output.
340 (client_request_attach_tty::serve): Use the new debug_printf for clarity.
341 Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen
342 tty's.
343
3442002-01-16 Robert Collins <rbtcollins@hotmail.com>
345
346 * cygserver.cc (transport): Correct scope.
347 (client_request_attach_tty::serve): Add more debug information.
348 Fix erroneous use of transport instead of conn.
349 * cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug.
350 (transport_layer_pipes::read): Ditto.
351 (transport_layer_pipes::write): Ditto.
352 (transport_layer_pipes::impersonate_client): Ditto.
353
354Mon Oct 8 7:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
355
356 * cygserver.cc (server_request::process): Rename client_request_shm_get to
357 client_request_shm.
358 * cygserver_process.cc (process_cache::add): Rename to add_task.
359 Use process_cleanup instead of process_request.
360 (process_cache::remove_process): New method.
361 (process::process): Initialize new members.
362 (process::~process): New member.
363 (process::cleanup): New method.
364 (process::add_cleanup_routine): New method.
365 (process_request::process): Rename to process_cleanup.
366 Call the process object's cleanup method and then delete it.
367 (process_process_param::request_loop): Remove the signalling process.
368 * cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm.
369 (client_request_shm_get::serve): Handle attach request counting.
370 * cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm.
371 (class shm_cleanup): New class.
372 * shm.cc: Globally rename client_request_shm_get to client_request_shm.
373 (client_request_shm::client_request_shm): New constructor for attach requests.
374 (shmat): Use it.
291be307 375 * include/cygwin/cygserver_process.h (class process_request): Rename to
f449bfef
RC
376 process_cleanup.
377 (class cleanup_routine): New class.
378 (class process): New members and methods to allow calling back when the process
379 terminates.
380
381Thu Oct 4 14:12:00 2001 Robert Collins <rbtcollins@hotmail.com>
382 * cygserver.cc (request_loop): Make static.
383 (main): Use new cache constructor syntax.
384 Start cache worker threads.
385 Cleanup the cache at shutdown.
386 * cygserver_process.cc: Run indent.
387 (process_cache::process_cache): Add a trigger to use when adding a process.
388 (process_cache::process): Move process_entry to process.
389 Insert at the end of the list.
390 Trigger the request loop when new process's inserted.
391 (process_cache::process_requests): Do it.
392 (process_cache::add): New method.
393 (process_cache::handle_snapshot): New method.
394 (process::process): Merge in the process_entry fields.
395 (process::handle): Make a stub function.
396 (process::exit_code): New method.
397 (process_request::process): New method.
398 (process_process_param::request_loop): New method.
399 * cygserver_shm.cc: New header dependency - threaded_queue.h.
400 * threaded_queue.cc (threaded_queue::cleanup): Clearer messages.
401 (queue_process_param::stop): Short spinlock on interruptible threads.
402 * threaded_queue.h (class threaded_queue): New constructor.
403 * include/cygwin/cygserver_process.h (process_request): New class.
404 (process_entry): Remove.
405 (process): Merge in process_entry.
406 (process_cache): Inherit from threaded_queue.
407
408Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
409
410 * cygserver.cc (class server_process_param): Use new constructor syntax.
411 * cygserver_process.cc (process_cache::~process_cache): New function.
412 * threaded_queue.cc: Define condition debug_printf.
413 Run indent.
414 (threaded_queue::cleanup): Move queue_process_param guts to a method.
415 (threaded_queue::process_requests): Ditto.
416 (queue_process_param::queue_process_param): New method.
417 (queue_process_param::~queue_process_param): Ditto.
418 (queue_process_param::start): Ditto.
419 (queue_process_param::stop): Ditto.
291be307 420 * threaded_queue.h (class queue_process_param): Add support for
f449bfef
RC
421 interruptible request loops.
422 * cygwin/include/cygwin/cygserver_process.h (class process_cache): Add
423 destructor.
424
425Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
426
427 * cygserver_client.cc: New flag allow_daemon to disable the daemon completely.
428 (cygserver_request): Check it.
429 (cygserver_init): Ditto.
430 * environ.cc (parse_thing): Add (no)daemon option.
431
432Tue Oct 2 23:00:00 2001 Robert Collins <rbtcollins@hotmail.com>
433
434 * shm.cc: Update to handle include changes from HEAD.
435
436Tue Oct 2 16:06:00 2001 Robert Collins <rbtcollins@hotmail.com>
437
291be307 438 * Makefile.in: Remove cygserver_shm.o from cygwin1.dll.
f449bfef
RC
439 Rename cygserver_shm_outside.o to cygserver_shm.o.
440 * cygserver.cc (server_request::process): Use the new client_request
441 constructor.
442 * cygserver_client.cc: Remove the #ifdef's stubs for the server method
443 within cygwin.
444 (client_request_attach_tty::client_request_attach_tty): Use the new
445 client_request constructor.
446 (client_request_shutdown::client_request_shutdown): Ditto.
447 (client_request::client_request): Ditto.
291be307 448 * cygserver_shm.cc (client_request_shm_get::serve): Remove the
f449bfef
RC
449 #ifdef'd stub for in-cygwin builds.
450 (client_request_shm_get::client_request_shm_get): Use the new
451 client_request constructor, and remove the in-cygwin variants.
452 * cygserver_shm.h (class client_request_shm_get): #ifndef test the
453 serve method - it's only used in cygserver.
454 * shm.cc (client_request_shm_get::client_request_shm_get): New function.
455 * include/cygwin/cygserver.h (request_header): New constructor.
291be307 456 (class client_request): Use it.
f449bfef
RC
457 New constructor accepting the header size.
458 #ifndef test the server method - it's only used within cygserver.
459 (client_request_get_version): #ifdef test the server method.
460 (client_request_shutdown): Ditto.
461 (client_request_attach_tty): Ditto.
462
463Tue Oct 2 9:57:00 2001 Robert Collins <rbtcollins@hotmail.com>
464
465 * Makefile.in: add threaded_queue.o to cygserver.exe.
466 * cygserver.cc: Include threaded_queue.h
467 (class server_request): Inherit from queue_request.
468 (class server_process_param): Inherit from queue_process_param.
469 (class server_request_queue): Inherit from threaded_queue.
470 (request_loop): Adjust for new types.
291be307 471 (server_request_queue::process_requests): Remove guts to
f449bfef
RC
472 threaded_queue::process_requests.
473 (server_request::server_request): Adjust for new types.
474 (worker_function): Delete.
475 (server_request_queue::create_workers): Delete.
476 (server_request_queue::cleanup): Delete.
477 (server_request_queue::add): Move guts to threaded_queue::add.
478 * threaded_queue.cc: New file.
479 * threaded_queue.h: New file.
480
481Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com>
482
483 * cygserver.cc (client_request::serve): New function.
484 * cygserver_process.cc: Inlude <pthread.h> for pthread_once.
485 (process_cache::process_cache): Initialise a crtiical section for write access.
291be307 486 (process_cache::process): Use the critical section. Also add missing entries to
f449bfef
RC
487 the cache.
488 (do_process_init): New function to initalise class process static variables.
291be307 489 (process::process): Ensure that the process access critical section is
f449bfef
RC
490 initialised.
491 (process::handle): Close the handle of old process's when they have terminated
492 and we are returning the handle for a process with the same pid.
493 * cygserver_shm.cc: Run indent.
494 Include cygserver_process.h to allow process cache functionality.
495 (client_request_shm_get::serve): New parameter for process cache support.
496 Use the process cache, not OpenProcess to get a handle to the originating process.
497 Fix a handle leak with token_handle.
291be307 498 * cygserver_shm.h (class client_request_shm_get): Update ::serve for process
f449bfef
RC
499 cache support.
500 * cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG.
291be307 501 * include/cygwin/cygserver.h: Do not implement client_request::serve in the
f449bfef 502 header.
291be307
CF
503 * include/cygwin/cygserver_process.h (class process_cache): Add a write access
504 critical section to prevent races when requests from a multithreaded
f449bfef
RC
505 application arrive.
506
507Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
508
509 * Makefile.in: Add cygserver_process.o to cygserver.exe.
510 * cygserver.cc: Include signal.h and cygwin_version.h.
511 Define debug_printf as a macro.
512 Define DEBUG to a value.
513 (client_request_attach_tty::serve): Add beginning of process cache support.
514 Change from #ifdef DEBUG to work with new DEBUG style.
515 (client_request_get_version::serve): Add beginning of process cache support.
516 (class server_request): New prototype for support of process cache.
517 (class queue_process_param): New class to allow request loop threading.
518 (class server_request_queue): Add beginning of process cache support.
519 Allow request loop threading.
520 (request_loop): Thread function for request loops.
521 (server_request_queue::process_requests): Initiator for threaded request loops.
522 (client_request_shutdown::serve): Add beginning of process cache support.
523 (server_request::server_request): Ditto.
291be307 524 (server_request::process): Use debug_printf. Add beginning of process cache
f449bfef
RC
525 support.
526 (server_request_queue::cleanup): Kill off any request loop threads.
527 (server_request_queue::add): Add beginning of process cache support.
528 (handle_signal): Trigger a shutdown.
529 (main): Print out some useful info at startup - version, date time.
530 Add process cache support.
531 Spawn a separate thread for the transport request loop, thus allowing concurrent
532 support for multiple transports.
291be307 533 * cygserver_client.cc (client_request_get_version::serve): Add process cache
f449bfef
RC
534 support.
535 (client_request_attach_tty::serve): Add process cache support.
536 (client_request_shutdown::serve): Add process cache support.
537 * cygsserver_process.cc: New file with the process cache support.
538 * cygserver_shm.cc: Redefine debug_printf to allow conditional output.
539 * cygwin.din: Export shmdt().
540 * shm.cc: Run indent.
541 Update FIXME's.
542 (shmdt): New function.
543 * include/cygwin/cygserver.h (class client_request): Add process cache support.
544 (class client_request_get_version): Ditto.
545 (class client_request_shutdown): Ditto.
546 (class client_request_attach_tty): Ditto.
547 * include/cygwin/cygserver_process.h: New header for process cache support.
548
549Sun Sep 30 8:52:00 2001 Robert Collins <rbtcollins@hotmail.com>
550
551 * include/cygwin/cygserver_transport.h: Add copyright header.
552 * include/cygwin/cygserver_transport_pipes.h: Ditto.
553 * include/cygwin/cygserver_transport_sockets.h: Ditto.
554
555Sat Sep 29 20:40:00 2001 Robert Collins <rbtcollins@hotmail.com>
556
557 * Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES.
558 Add cygserver_transport_sockets_outside.o to cygserver.exe.
559 * cygserver.cc: Include new include files.
560 * cygserver_client.cc: Ditto.
561 * cygserver_shm.h: No need to include <sys/socket.h> now.
562 * cygerver_transport.cc: Include new include files.
563 (transport_layer_base::transport_layer_base): Strip back to a stub.
564 (transport_layer_base::listen): Ditto.
565 (transport_layer_base::accept): Ditto.
566 (transport_layer_base::close): Ditto.
567 (transport_layer_base::read): Ditto.
568 (transport_layer_base::write): Ditto.
569 (transport_layer_base::connect): Ditto.
291be307 570 * cygserver_transport_pipes.cc: Include new header
f449bfef
RC
571 "cygwin/cygserver_transport_pipes.h".
572 * cygserver_transport_sockets.cc: New file.
573 * dcrt0.cc: No need to include <sys/socket.h> now.
574 * fhandler_tty.cc: Ditto.
575 * tty.cc: Ditto.
576 * include/cygwin/cygserver_transport.h: Strip the base class to a stub.
577 Remove the cygserver_transport_pipes class.
578 * include/cygwin/cygserver_transport_pipes.h: New file.
579 * include/cygwin/cygserver_transport_sockets.h: New file.
580
581Tue Sep 25 16:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
582
583 * autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'.
584 * Makefile.in: Add new object files, and build instructions for cygserver.exe.
585 * cygwin.din: Export ftok, shmat, shmctl and shmget.
586 * dcrt0.cc: Additional includes for cygserver support.
587 (dll_crt0_1): Initialise the cygserver client.
588 * fhandler.h (fhandler_tty): New method cygserver_attach_tty.
589 * fhandler_tty.cc: Additional includes for cygserver support.
590 (fhandler_tty_slave::open): Attempt to use the cygserver when obtaining
591 handles from the parent process. On failure or 9x use the current method.
592 (fhandler_tty_slave::cygserver_attach_tty): New function.
593 * fork.cc (fork_child): Fixup shm memory mapped areas.
594 * pinfo.h: Declare fixup_shms_after_fork().
595 * security.h: Declare alloc_sd().
596 * tty.cc: Additonal includes to support cygserver.
597 (tty::common_init): Don't allow others to open us if the cygserver is running.
598 * winsup.h: Declare cygserver_running.
599 * cygserver.cc: New file.
600 * cygserver_client.cc: New file.
601 * cygserver_shm.cc: New file.
602 * cygserver_shm.h: New file.
603 * cygserver_transport.cc: New file.
604 * cygserver_transport_pipes.cc: New file.
605 * ipc.cc: New file.
606 * shm.cc: New file.
607 * include/cygwin/cygserver.h: New file.
608 * include/cygwin/cygserver_transport.h: New file.
609 * include/sys/ipc.h: New file.
610 * include/sys/shm.h: New file.
611
062401c9
RC
6122002-02-28 Robert Collins <rbtcollins@hotmail.com>
613
614 * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1.
615 (__sem_wait): Ditto.
616 (__sem_trywait): Ditto.
617
d1f50ae5
CF
6182002-02-27 Christopher Faylor <cgf@redhat.com>
619
620 * include/cygwin/version.h: Bump DLL minor number.
621
acb56175
CV
6222002-02-23 Corinna Vinschen <corinna@vinschen.de>
623
624 * cygwin.din (fstat64): New symbol.
625 (ftruncate64): Ditto.
626 (lseek64): Ditto.
627 (lstat64): Ditto.
628 (mmap64): Ditto.
629 (seekdir64): Ditto.
630 (stat64): Ditto.
631 (telldir64): Ditto.
632 (truncate64): Ditto.
633 * dir.cc (telldir64): New function.
634 (telldir): Call telldir64().
635 (seekdir64): New function.
636 (seekdir): Call seekdir64().
637 * fhandler.h: Redefine all methods using __off32_t to use __off64_t.
638 * fhandler.cc: Use __off64_t and struct __stat64 throughout.
639 * fhandler_clipboard.cc: Ditto.
640 * fhandler_disk_file.cc: Ditto.
641 * fhandler_dsp.cc: Ditto.
642 * fhandler_floppy.cc: Ditto.
643 * fhandler_mem.cc: Ditto.
644 * fhandler_random.cc: Ditto.
645 * fhandler_socket.cc: Ditto.
646 * fhandler_tape.cc: Ditto.
647 * fhandler_zero.cc: Ditto.
648 * pipe.cc: Ditto.
649 * glob.c: Ditto, call lstat64 and stat64 in Cygwin.
650 * mmap.cc: Use __off64_t throughout.
651 (mmap64): New function.
652 * sec_acl.cc (acl_worker): Use struct __stat64, call stat64 and lstat64.
653 * syscalls.cc (lseek64): New function.
654 (stat64_to_stat32): Ditto.
655 (fstat64): Ditto.
656 (stat64): Ditto.
657 (lstat64): Ditto.
658 (ftruncate64): Ditto.
659 (truncate64): Ditto.
660 (_fstat): Call fstat64.
661 (_stat): Call stat64.
662 (cygwin_lstat): Rename to avoid declaration problem. Call lstat64.
663 (stat_worker): Use struct __stat64.
664 (access): Ditto.
665 (ftruncate): Call ftruncate64.
666 (truncate): Call truncate64.
667 * wincap.cc: Set flag has_64bit_file_access appropriately.
668 * wincap.h: Add flag has_64bit_file_access.
669 * winsup.h (ILLEGAL_SEEK): Define as __off64_t.
670 (stat_dev): Declare using struct __stat64.
671 (stat_worker): Ditto.
672 * include/cygwin/stat.h (struct __stat32): Define if compiling Cygwin.
673 (struct __stat64): Ditto.
674 (struct stat): Revert definition with explicitly sized datatypes.
675 Eliminate sized field names.
676 * include/cygwin/types.h (blksize_t): New type.
677 (__blkcnt32_t): Ditto.
678 (__blkcnt64_t): Ditto.
679 (blkcnt_t): Ditto.
680
083abe54
CF
6812002-02-22 Christopher Faylor <cgf@redhat.com>
682
683 * sync.h (new_muto): Just accept an argument which denotes the name of
684 the muto. Use this argument to construct static storage.
685 * cygheap.cc (cygheap_init): Reflect above change.
686 * exceptions.cc (events_init): Ditto.
687 * malloc.cc (malloc_init): Ditto.
688 * path.cc (cwdstuff::init): Ditto.
689 * cygheap.h (cwdstuff): Change name of lock element to make it less
690 generic.
691 * path.cc (cwdstuff::get_hash): Ditto.
692 (cwdstuff::get_initial): Ditto.
693 (cwdstuff::set): Ditto.
694 (cwdstuff::get): Ditto.
695 * sigproc.cc (proc_subproc): Ditto.
696
697 * debug.cc (lock_debug): Change to method. Use method rather than
698 macro throughout.
699
700 * tty.h (tty_min::kill_pgrp): Declare new method.
701 * fhandler_termios.cc (tty_min::kill_pgrp): New method.
702 (fhandler_termios::line_edit): Use new method for killing process.
703 * dcrt0.cc (do_exit): Ditto.
704
705 * dtable.cc (dtable::get_debugger_info): New method for inheriting
706 dtable info from a debugger.
707 * tty.cc (tty_init): Attempt to grab file handle info from parent
708 debugger, if appropriate.
709
710 # dtable.cc (dtable::stdio_init): Make this a method.
711 (dtable::init_std_file_from_handle): Don't set fd unless it's not open.
712 (dtable::build_fhandler_from_name): Move name setting to
713 dtable::build_fhandler.
714 (dtable::build_fhandler): Add win32 name parameter.
715 * dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init.
716 * dtable.h (dtable): Reflect build_fhandler parameter change.
717 * mmap.cc (mmap_record::alloc_fh): Don't set name parameter in
718 build_fhandler.
719 * net.cc (fdsock): Remove set_name call since it is now handled by
720 build_fhandler.
721
722 * sigproc.cc (proc_subproc): Release muto as early as possible.
723
a6790c5f
CV
7242001-02-22 Corinna Vinschen <corinna@vinschen.de>
725
726 * smallprint.c (rn): Allow long long values.
727 (__small_vsprintf): Add 'D', 'U' and 'X' formats for long long
728 parameters.
729
aa6df8d7
CF
7302002-02-19 Christopher Faylor <cgf@redhat.com>
731
732 * fhandler.cc (fhandler_base::puts_readahead): Remove default parameter
733 setting. Newer gcc's complain about this.
734 (fhandler_base::set_readahead_valid): Ditto.
735 * fhandler_dsp.cc (Audio::open): Ditto.
736 (fhandler_dev_dsp::open): Ditto.
737
cecb74ae
CF
7382002-02-19 Christopher Faylor <cgf@redhat.com>
739
740 * fork.cc (fork_parent): Use sec_user_nih to control process/thread
741 inheritance/permission.
742 * spawn.cc (spawn_guts): Ditto.
743 * security.cc (create_token): Initialize token so that it is not tested
744 for bogus value later. Use sec_user to control process/thread
745 creation.
746 * security.h (__sec_user): Rename declaration from sec_user.
747 (sec_user_nih): Declare here as inline function wrapper for __sec_user.
748 (sec_user): Ditto.
749 * sigproc.cc (czombies): Allocate a character array for zombies to
750 avoid constructor overhead
751 (extremely hackish, I know).
752 (cpchildren): Ditto.
753 (pchildren): New define.
754 (zombies): Ditto.
755 (getsem): Use sec_user_nih to control semaphore inheritance/permission.
756
2bd22312
CF
7572002-02-16 Christopher Faylor <cgf@redhat.com>
758
759 * times.cc (hires::prime): Restore thread priority on failure
760 condition.
761
762 * uinfo.cc (uinfo_init): Use more robust method for determining if
763 process was invoked from a non-cygwin process.
764
765 * sync.h (muto::init): Eliminate "inheritance" parameter.
766 (new_muto): Reflect removal of parameter.
767 * sync.cc (muto::init): Ditto.
768 * cygheap.cc (cygheap_init): Ditto.
769 * debug.cc (threadname_init): Ditto.
770 * exceptions.cc (events_init): Ditto.
771 * malloc.cc (malloc_init): Ditto.
772 * path.cc (cwdstuff::init): Ditto.
773 * sigproc.cc (sigproc_init): Ditto.
774
4c761646
CF
775 * grp.cc (group_lock): Use different method for locking with static
776 member.
2bd22312 777 (read_etc_group): REALLY ensure that read lock mutex is released.
4c761646
CF
778 * passwd.cc (passwd_lock): Use different method for locking with static
779 member.
780 (read_etc_passwd): REALLY ensure that read lock mutex is released.
2bd22312
CF
781
782 * shared.cc (sec_user): Correct reversed inheritance test.
783
60b68f0d
CF
7842002-02-15 Christopher Faylor <cgf@redhat.com>
785
786 * hires.h (hires::usecs): Rename from utime. Accept an argument.
787 * strace.cc (strace::microseconds): Use hires class for calculating
788 times.
789 * sync.h (new_muto): Use NO_COPY explicitly in declaration.
790 * times.cc (gettimeofday): Reflect change in usecs argument.
791 (hires::usecs): Ditto. Changed name from utime.
792 * winsup.h (NO_COPY): Add nocommon attribute to force setting aside
793 space for variable.
794 * regcomp.c (REQUIRE): Add a void cast to bypass a warning.
795
dce87b21
CF
7962002-02-15 Christopher Faylor <cgf@redhat.com>
797
798 * hires.h: New file.
799 * times.cc (gettimeofday): Use hires class for calculating current time.
800 (hires::prime): New method.
801 (hires::utime): Ditto.
802
3d456520
CF
8032002-02-14 Christopher Faylor <cgf@redhat.com>
804
805 * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
806 * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
807
907dc7d0
CF
8082002-02-14 Christopher Faylor <cgf@redhat.com>
809
810 * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to
811 asm.
812 * external.cc (cygwin_internal): Change CW_STRACE_ON to
813 CW_STRACE_TOGGLE.
814 * strace.cc (strace::hello): Toggle strace on and off.
815 * sync.cc (muto::init): Renamed from constructor.
816 * sync.h (muto::new): Delete.
817 (muto::delete): Ditto.
818 (new_muto): Simplify. Use muto.init for nearly everything.
819 * uinfo.cc (uinfo_init): Avoid closing a NULL handle.
820 * include/sys/cygwin.h (cygwin_getinfo_types): Rename CW_STRACE_OFF to
821 CW_STRACE_TOGGLE. Delete CW_STRACE_OFF.
822 * include/sys/strace.h (strace): Add "inited" field.
823
4753a17b
CV
8242001-02-12 Corinna Vinschen <corinna@vinschen.de>
825
826 * include/cygwin/acl.h: Fix definition of aclent_t.
827
909acaf6
CF
8282002-02-10 Christopher Faylor <cgf@redhat.com>
829
830 * Makefile.in (DLL_OFILES): Consolidate object files.
831
de4e0d30
CV
8322002-02-10 Corinna Vinschen <corinna@vinschen.de>
833
b31c68c4
CV
834 * child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc,
835 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
836 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
837 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
838 security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright.
839
8402002-02-10 Corinna Vinschen <corinna@vinschen.de>
841
842 * child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h,
de4e0d30
CV
843 fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc,
844 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
845 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
846 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
b31c68c4 847 security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h:
de4e0d30
CV
848 Change usage of uid_t to __uid16_t, gid_t to __gid16_t and
849 off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and
850 INVALID_SEEK instead casting -1 to the appropriate type.
851 * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK.
852 * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t
853 types. Don't declare acl functions when compiling Cygwin.
854 * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with
855 correct types for internal usage.
856
39b553b8
CV
8572002-02-10 Corinna Vinschen <corinna@vinschen.de>
858
859 Patch suggested by Pierre A. Humblet <Pierre.Humblet@ieee.org>:
860 * uinfo.cc (internal_getlogin): Try evaluating user by SID even if
861 ntsec is off.
862 (uinfo_init): Set primary group even if ntsec is off.
863
52296b85
CV
8642002-02-09 Corinna Vinschen <corinna@vinschen.de>
865
866 * include/cygwin/grp.h: New file.
867 * include/cygwin/stat.h: Ditto.
868 * include/cygwin/types.h: Add definitions for __off32_t,
869 __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t,
870 __gid32_t and gid_t.
871 * include/sys/cygwin.h: Use correct uid and gid types.
872
ff86860b
CV
8732002-02-09 Corinna Vinschen <corinna@vinschen.de>
874
875 * dtable.cc (dtable::dup2): Revert previous patch.
876 * fhandler.h: Ditto.
877 (fhandler_socket::recv): Define new method.
878 (fhandler_socket::send): Ditto.
879 * fhandler_socket.cc (fhandler_socket::recv): New method.
880 (fhandler_socket::send): Ditto.
881 (fhandler_socket::read): Call fhandler_socket::recv() now.
882 (fhandler_socket::write): Call fhandler_socket::send() now.
883 * net.cc (class wsock_event): Move definition to wsock_event.h.
884 (fdsock): Revert previous patch.
885 (cygwin_recv): Move implementation to fhandler_socket::recv().
886 (cygwin_send): Move implementation to fhandler_socket::send().
887 * wsock_event.h: New file.
888
d0672acc
CV
8892002-02-06 Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de>
890
891 * net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
892
fae28904
CV
8932002-02-08 Corinna Vinschen <corinna@vinschen.de>
894
895 * dtable.cc (dtable::dup2): Store fd for fhandler_socket.
896 * fhandler.h (fhandler_base::set_fd): New virtual method.
897 (fhandler_base::get_fd): Ditto.
898 (fhandler_socket::set_fd): Ditto.
899 (fhandler_socket::get_fd): Ditto.
900 * fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead
901 of native Winsock recv.
902 (fhandler_socket::write): Call cygwin_send instead of native Winsock
903 send.
904 * net.cc (fdsock): Store fd in fhandler_socket.
905
1f64102f
CV
9062002-02-07 Corinna Vinschen <corinna@vinschen.de>
907
908 * net.cc (cygwin_getsockname): Fix handling of NULL sun_path.
909
562d9745
CV
9102002-01-29 Corinna Vinschen <corinna@vinschen.de>
911
912 * net.cc (getdomainname): Fix registry key for 9x systems, too.
913
94ee02fa
CV
9142002-01-29 Corinna Vinschen <corinna@vinschen.de>
915
916 * net.cc (getdomainname): Fix registry key for NT systems.
917
494a66d9
CF
9182002-01-28 Christopher Faylor <cgf@redhat.com>
919
920 * external.cc (cygwin_internal): Initialize various internal settings
921 if required to allow use of some things from user loaded DLL.
922 (CW_STRACE_ON): Add new feature.
923 (CW_CYGWIN_PID_TO_WINPID): Ditto.
924 * pinfo.cc (set_myself): Call "strace.hello" to initiate possible
925 strace session.
926 (pinfo::init): Guard against dereferencing uninitialized myself.
927 * sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal"
928 received.
929 * strace.cc (strace::hello): New method.
930 * wincap.cc (wincapc::init): Avoid initializing if already initialized.
931 * wincap.h (wincapc::wincapc): New method.
932 * include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of
933 {g,u}id_t if required.
934 * strace.h (strace::hello): Declare new method.
935
6616e6cf
CF
9362002-01-28 Earnie Boyd <earnie@users.sf.net>
937
938 * include/sys/strace.h (_STRACE_ON): Define.
939 (_STRACE_OFF): Ditto.
940
dfb4c347
CF
9412002-01-24 Christopher Faylor <cgf@redhat.com>
942
943 * speclib: Ensure that temporary def file is removed.
944
3c07fbeb
CF
9452002-01-23 Christopher Faylor <cgf@redhat.com>
946
947 * speclib: Use rm -f to remove temp file just to quiet any potential
948 warnings.
949
f6fc31e1
CV
9502002-01-23 Corinna Vinschen <corinna@vinschen.de>
951
952 * security.cc (create_token): Use sec_user() to create
be6d8567
CV
953 SECURITY_ATTRIBUTES structure for primary token. Use
954 MAXIMUM_ALLOWED access rights instead of TOKEN_ALL_ACCESS.
f6fc31e1 955
adbd01af
CV
9562002-01-23 Corinna Vinschen <corinna@vinschen.de>
957
958 * path.cc (symlink): Fix check for already existing file.
959
aed69a5b
CF
9602002-01-21 Christopher Faylor <cgf@redhat.com>
961
962 * cygmagic: Suppress error output when figuring out if sum takes an
963 option.
964
f3647dd7
CF
9652002-01-21 Christopher Faylor <cgf@redhat.com>
966
967 * cygmagic: Attempt to figure out if sum takes an option.
968
51076b73
CF
9692002-01-21 DJ Delorie <dj@redhat.com>
970
971 * Makefile.in (libpthread.a): Pass the assembler also.
291be307 972 (libm.a): Ditto.
51076b73
CF
973 (libc.a): Ditto.
974 * speclib: Specify the assembler to dlltool.
975
0ac2abea
CF
9762002-01-21 Christopher Faylor <cgf@redhat.com>
977
978 * include/cygwin/version.h: Bump DLL minor number.
979
ac11ec88
CV
9802002-01-21 Corinna Vinschen <corinna@vinschen.de>
981
28982aa8 982 * grp.cc (getgrgid): Don't return default gid entry when ntsec is on.
ac11ec88
CV
983 * syscalls.cc (setegid): Don't set primary group in process token.
984
8ef47135
CF
9852002-01-21 Christopher Faylor <cgf@redhat.com>
986
987 * speclib: Don't use /dev/null as DLL name. Just default to what's
988 already in .def file.
989
9902002-01-21 Christopher Faylor <cgf@redhat.com>
991
992 * exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code
993 which caused SIGCHLD to be ignored.
994
07cc1f1f
CF
9952002-01-20 Christopher Faylor <cgf@redhat.com>
996
997 * include/cygwin/version.h: Bump DLL minor number.
998
385437d4
CF
9992002-01-20 Christopher Faylor <cgf@redhat.com>
1000
1001 * syscalls.cc (regfree): Make dll_export.
1002
d7c16d8d
CF
10032002-01-20 Christopher Faylor <cgf@redhat.com>
1004
1005 * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid
1006 when detecting if we should actually handle CTRL-C.
1007
216109a8
CF
10082002-01-19 Christopher Faylor <cgf@redhat.com>
1009
1010 * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a
1011 is only available in libstdc++-v3.
1012
9e73b339
CF
10132002-01-19 Christopher Faylor <cgf@redhat.com>
1014
1015 * exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent
1016 doesn't want it.
1017 (sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough
1018 information.
1019
5946622e
CF
10202002-01-19 Christopher Faylor <cgf@redhat.com>
1021
1022 * include/cygwin/version.h: Bump DLL minor number.
1023
994fe87b
CF
10242002-01-19 Christopher Faylor <cgf@redhat.com>
1025
1026 * Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link.
1027 * sigproc.cc (proc_exists): Change existence criteria.
1028 * sync.h (new_muto): Add volatile to definition to avoid gcc
1029 optimization problems.
1030
df3af773
CV
10312002-01-19 Corinna Vinschen <corinna@vinschen.de>
1032
1033 * include/cygwin/version.h: Bump API minor version to 51.
1034
7d6be0d6
CV
10352002-01-19 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1036
291be307
CF
1037 * cygwin.din: Add recvmsg and sendmsg.
1038 * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
1039 * /usr/include/sys/socket.h: Add recvmsg and sendmsg.
7d6be0d6 1040
2d3dab2e
CV
10412002-01-19 Corinna Vinschen <corinna@vinschen.de>
1042
1043 * security.cc (create_token): Close processes token handle as soon
1044 as it's not used anymore.
1045
104c3be6
CV
10462002-01-17 Corinna Vinschen <corinna@vinschen.de>
1047
1048 * Makefile.in: Add fnmatch.o to DLL_OFILES.
1049 * cygwin.din: Add fnmatch export symbol.
1050 * fnmatch.c: New file.
1051 * include/fnmatch.h: Ditto.
1052 * include/cygwin/version.h: Bump API minor version to 50.
1053
9a7e1562
CV
10542002-01-15 Corinna Vinschen <corinna@vinschen.de>
1055
1056 * path.cc (fchdir): Call chdir with full windows path.
1057
7eddac1b
CV
10582002-01-14 Corinna Vinschen <corinna@vinschen.de>
1059
1060 * dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1"
1061 for file attributes throughout.
1062 * fhandler.cc: Ditto.
1063 * fhandler_disk_file.cc: Ditto.
1064 * path.cc: Ditto.
1065 * path.h: Ditto.
1066 * syscalls.cc: Ditto.
1067 * times.cc (utimes): Use path_conv::isdir() instead of explicit
1068 GetFileAttributes() call.
1069
5daa0835
CF
10702002-01-13 Christopher Faylor <cgf@redhat.com>
1071
1072 * dcrt0.cc (multiple_cygwin_problem): Clarify logic and make
1073 CYGWIN_MISMATCH_OK more powerful.
1074
06486d9e
CF
10752002-01-10 Christopher Faylor <cgf@redhat.com>
1076
1077 * exceptions.cc (sig_handle): Accept a second argument indicating
1078 whether the signal came from this process or not.
1079 * sigproc.h: Reflect sig_handle arg change.
1080 * signal.cc (kill_pgrp): Add sigframe info.
1081 (abort): New function. Eliminates newlib function of same name.
1082 * sigproc.cc (wait_sig): Pass "signal from this process" value as arg
1083 2.
1084
bb5225c2
CV
10852002-01-10 Corinna Vinschen <corinna@vinschen.de>
1086
1087 * syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid
1088 file parameter.
1089
c0a8e8d0 10902002-01-09 Christopher Faylor <cgf@redhat.com>
291be307 1091 Robert Collins <rbtcollins@hotmail.com>
c0a8e8d0
CF
1092
1093 * exceptions.cc (early_stuff_init): Rename from misnamed
1094 set_console_handler.
1095 (ctrl_c_handler): Attempt to work around potential signal duplication
1096 during process startup.
1097 (sig_handle): Ignore SIGINT when we're just an "exec stub".
1098 * spawn.cc (spawn_guts): Store pid of spawned process in global for use
1099 by ctrl_c_handler.
1100 * dcrt0.cc (dll_crt0_1): Call renamed initialization function.
1101 * winsup.h: Reflect function name change.
1102
fe37dd79
CV
11032002-01-08 Corinna Vinschen <corinna@vinschen.de>
1104
1105 * net.cc (cygwin_accept): Set sun_path for newly connected socket.
1106
cbf7a9eb
CF
11072002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1108
1109 * Makefile.in: Add uninstall target.
1110
a2e12d0c
CF
11112002-01-07 Christopher Faylor <cgf@redhat.com>
1112
1113 * sigproc.cc (getsem): Clean up debugging output.
1114
4a08cbfe
CF
11152002-01-07 Christopher Faylor <cgf@redhat.com>
1116
1117 * sigproc.cc (getsem): Set errno when unable to create own semaphore.
1118 Reorganize to make clearer that error should only come from initial
1119 creation of process semaphore.
1120
10dedaaa
CF
11212002-01-06 Christopher Faylor <cgf@redhat.com>
1122
1123 * dtable.cc (dtable::init_std_file_from_handle): Add some defensive
1124 code to invalid handle case.
1125
d6154fb7
CV
11262002-01-06 Corinna Vinschen <corinna@vinschen.de>
1127
1128 * ioctl.cc (ioctl): Make third argument optional.
1129 * include/sys/ioctl.h: Ditto in declaration.
1130 * dtable.cc (dtable::init_std_file_from_handle): Revert previous
1131 bogus patch.
1132 * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB
1133 message.
1134
9125cbd7 11352002-01-05 Christopher Faylor <cgf@redhat.com>
fcb76c5d 1136
9125cbd7
CF
1137 * dir.cc (opendir): Guarantee release of alloced fhandler structure on
1138 error.
fcb76c5d 1139
9125cbd7
CF
11402002-01-05 Corinna Vinschen <corinna@vinschen.de>
1141
1142 * exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN.
1143
11442002-01-05 Corinna Vinschen <corinna@vinschen.de>
2edba236
CV
1145
1146 * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL
1147 handle as errorneous.
1148
acf05df7
CF
11492002-01-04 Christopher Faylor <cgf@redhat.com>
1150
1151 * cygmagic: Change logic for equality test.
1152
7acba971
CF
11532002-01-04 Christopher Faylor <cgf@redhat.com>
1154
1155 * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
1156
9125cbd7 11572002-01-04 Corinna Vinschen <corinna@vinschen.de>
dc63cea5
CV
1158
1159 * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL
1160 throughout.
1161 (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types
1162 in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL
1163 and PF_INET protocols. Return error otherwise. Implement datagram
1164 socketpairs.
1165
3b789217
CF
11662002-01-01 Christopher Faylor <cgf@redhat.com>
1167
291be307 1168 * speclib: Remove temp files automatically.
3b789217 1169
2fe27909 11702002-01-01 Corinna Vinschen <corinna@vinschen.de>
2fe27909
CV
1171 * fhandler.h (fhandler_socket::sun_path): New private member.
1172 (fhandler_socket::set_sun_path): New method.
1173 (fhandler_socket::get_sun_path): Ditto.
1174 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize
1175 sun_path to NULL.
1176 (fhandler_socket::~fhandler_socket): Free sun_path if needed.
1177 (fhandler_socket::set_sun_path): New method.
1178 * net.cc (cygwin_bind): Set sun_path to path of local socket file.
1179 (cygwin_getsockname): Add code to return correct sockaddr for unix
1180 domain sockets.
This page took 0.163574 seconds and 5 git commands to generate.