📄 changelog-1999
字号:
* select.cc (set_bits): Test that {read,write,except}_selected are active before setting a bit. (peek_pipe): Short circuit tests if we're not checking for readable or "except"able handles. (thread_socket): Use read check for exitsock as old method relied on undocumented, unreliable behavior. (start_thread_socket): Perform more setup on exitsock to improve thread exit signalling. (socket_cleanup): Connect to the exitsock to force thread_socket thread exit. * winsup.h (hinfo): Add preliminary vfork stuff. * include/winsock.h: Add shutdown() how types. * include/sys/socket.h: Add socketpair declaration.1999-09-22 DJ Delorie <dj@cygnus.com> * syscalls.cc (chown): never return ENOSYS - just pretend it works.Wed Sep 22 00:47:56 1999 Christopher Faylor <cgf@cygnus.com> * select.cc (MAKEready): Need to initialize 'fd' or open tests in peek fail.Mon Sep 20 17:07:37 1999 Christopher Faylor <cgf@cygnus.com> * smallprint.c (__small_vsprintf): Fix '%+' handling.Thu Sep 16 21:48:13 1999 Christopher Faylor <cgf@cygnus.com> * utils/cygcheck.cc (dump_sysinfo): Deal with a new compiler error. * utils/strace.cc (make_command_line): Change to a void * argument, as is required for SetConsoleCtrlHandler.Thu Sep 16 20:47:12 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (__api_fatal): Rearrange slightly. * fhandler.h (set_ctty): Change to void. * fhandler_termios.cc (fhandler_termios::set_ctty): Ditto. * select.cc (thread_pipe): Change to a void * argument, as is required for thread functions. (thread_socket): Ditto. (thread_serial): Ditto. * include/winbase.h: Mark ExitProcess as noexit.Thu Sep 16 18:32:12 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (ctrl_c_handler): Make WINAPI, as required by SetConsoleCtrlHandler.Thu Sep 16 17:48:05 1999 Christopher Faylor <cgf@cygnus.com> * debug.cc (thread_stub): Make WINAPI, as required by CreateThread. * fhandler_tty.cc (process_input): Ditto. (process_output): Ditto. (process_ioctl): Ditto. * select.cc (thread_pipe): Ditto. (thread_serial): Ditto. (thread_socket): Ditto. * sigproc.cc (wait_proc): Ditto. (wait_sig): Ditto. * window.cc (winMain): Ditto.Wed Sep 15 20:58:37 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (call_handler): Let fatal signals through regardless of signal_mutex. * fhandler.h (fhandler_base): Make bg_check virtual. (fhandler_termios::bg_check): Eliminate the second argument. * fhandler_console.cc (fhandler_console::ioctl): Check for background operation. * fhandler_termios.cc (fhandler_termios::bg_check): Eliminate the second argument. A negative arg 1 means the same thing. * ioctl.cc (ioctl): Add debugging output. * syscalls.cc (_write): Eliminate second argument to bg_check. * termios.cc (tcsendbreak): Check for background operation. (tcdrain): Ditto. (tcflush): Ditto. (tcflow): Ditto. (tcsetattr): Reorganize on similar lines to above routine.Wed Sep 15 15:25:04 1999 Christopher Faylor <cgf@cygnus.com> * select.cc (peek_pipe): Only set read_ready if bg_check returns <= 0. (peek_console): Ditto. Correct PeekConsole conditional so that the for loop breaks eventually.Wed Sep 15 00:21:40 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (set_console_handler): Allocate security stuff here since it is needed earlier in the process now. Allocate a shared event for use in synchronizing CTRL-C events that happen while the process is still initializing. (ctrl_c_handler): Use the above event to synchronize with the cygwin startup process, waiting for the signal thread to come alive before trying to send a signal. (signals_init): Don't call set_console_handler() here, since it is now handled much earlier in cygwin initialization. * shared.cc (shared_init): Move out security setup. * sigproc.cc (wait_sig): Activate the console_handler_thread_waiter so that any waiting thread which is handling ctrl-c's will wake up and send a signal, if appropriate.Tue Sep 14 23:49:39 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (ctrl_c_handler): Handle ctrl-c events ourself, using the "UNIX way". * fhandler_console (tty_list::get_tty): New function. * shared.h: Add some additional things to tty_min class for handling ctrl-c.1999-09-14 DJ Delorie <dj@cygnus.com> * dir.cc (rmdir): return ENOTDIR for regular files on 9xTue Sep 14 00:01:59 1999 Christopher Faylor <cgf@cygnus.com> * debug.h (ForceCloseHandle2): New macro. * fhandler.cc (set_inheritance): Accept name of handle as optional third argument. Use this in ForceCloseHandle2/ProtecHandle2. * fhandler.h: Implement bg_check() method. * fhandler_console.cc (get_tty_stuff): Initialize more tty stuff. (fhandler_console::read): Check for background read. * fhandler_termios.cc (fhandler_termios::bg_check): New function. Performs appropriate action given background read or write. * fhandler_tty.cc (fhandler_tty_slave::write): Replace background check code with new method. (fhandler_tty_slave::read): Ditto. (fhandler_tty_common::set_close_on_exec): Pass output_mutex name to set_inheritance. * select.cc: Throughout check that the fd is still open before polling. (peek_pipe): Check for background read. (peek_console): Ditto. * shared.h: Move ntty from tty into tty_min. * syscalls.cc (read_handler): Check for background read. (_write): Check for background write.Sat Sep 11 16:24:21 1999 Christopher Faylor <cgf@cygnus.com> * path.cc (iscygdrive_device): New macro. (mount_info::conv_to_win32_path): Only attempt "cygdrive" translation when passed /cygdrive/something. (mount_info::write_cygdrive_info_to_registry): Store in-memory copy of cygdrive prefix automatically. (mount_info::read_cygdrive_info_from_registry): Reorganize for new write_cygdrive_info_to_registry functionality. (mount): Ditto.Fri Sep 10 15:44:11 1999 Christopher Faylor <cgf@cygnus.com> * syscalls.cc (pathconf): Make first arg 'const'.1999-09-10 DJ Delorie <dj@cygnus.com> * exec.cc (_execve): check for an empty environmentWed Sep 8 10:24:12 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (dll_crt0_1): Generalize test for initial zeroes in exec/fork block. * fhandler.cc (fhandler_disk_file::open): Don't attempt #! detection on non-disk files. * fhandler.h: Use generic status bit set/clear macros. Use bitmask for fhandler_termios state. * fhandler_console.cc: Rename "tty_stuff" to more descriptive "shared_console_info". (fhandler_console::read): Reset console state before a read if appropriate. (fhandler_console::open): Improve check for setting console state. (fhandler_console::fixup_after_fork): Ditto. (set_console_state_for_spawn): New function. * fhandler_termios.cc (fhandler_termios::tcinit): Use new method for determining if initialized. * fhandler_tty.cc (fhandler_tty::init_console): Avoid sending handle to init or it will be closed. * fork.cc (per_thread::set): Make this method non-inline, temporarily. * select.cc (peek_console): Call set_input_state to ensure that the console is in the correct state. * shared.h (child_info): Make zero element an array for future tweaking. (tty_min): Change initialized element to a bit field. Define bit field macros for manipulating it. * sigproc.cc (wait_sig): Wake up every half second in a (vain?) attempt to work around Windows 98 hanging problem. (wait_subproc): Ditto. * spawn.cc (spawn_guts): Use new "set_console_state_for_spawn" prior to starting a process. * winsup.h: Define generic macros for manipulating a method's status field. (per_thread): Move inline method to fork.Mon Sep 6 13:36:34 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_tty.cc (fhandler_tty_master::init_console): Remove retrieval of stderr handle since it is not required for correct init operation. * hinfo.cc (hinfo_init): Reorganize to accommodate potential closing of console handles by fhandler_console::init. (init_std_file_from_handle): Set standard handle as appropriate. (hinfo::de_linearize_fd_arry): Ditto. * fhandler_console.cc (fhandler_console::init): Conditionally close handle only if it is valid.Sun Sep 5 22:43:21 1999 Christopher Faylor <cgf@cygnus.com> * utils/cygcheck.cc: Make sure that GetDiskFreeSpaceExA is defined as a __stdcall function or the stack will suffer. For now, don't sort mount output as more work copying the individual mntent elements is required.Sat Sep 4 19:01:00 1999 Christopher Faylor <cgf@cygnus.com> * include/glob.h: Ensure that glob*() functions can be properly accessed by programs using the DLL.Sat Sep 4 18:49:04 1999 Christopher Faylor <cgf@cygnus.com> * heap.cc (heap_init): Tweak debugging output. * sigproc.cc (sig_send): Catch obvious impossible values from GetLastError.Sat Sep 4 18:43:49 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_tty.cc (fhandler_tty_slave::open): Protect against signal dispatch. (fhandler_tty_slave::write): Only wait a fixed amount of time to receive a an output_done_event. (fhandler_tty_slave::tcflush): Protect against signal dispatch.Sat Sep 4 18:30:42 1999 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (handle_sig): Temporarily remove OutputDebugString. It seemed to be causing sporadic hangs. (call_handler): Save and restore di and si. (sigreturn): Ditto.Fri Sep 3 23:07:44 1999 Christopher Faylor <cgf@cygnus.com> * fhandler_termios.cc (fhandler_termios::line_edit): Properly deal with sending characters to slave when !iscanon.Fri Sep 3 18:15:00 1999 Corinna Vinschen <corinna@vinschen.de> * fhandler_raw.cc (fhandler_dev_raw::fstat): Add S_ISCHR to mode bits. * fhandler_tape.cc (fhandler_dev_tape::fstat): Erase setting of S_ISCHR since it's set in fhandler_dev_raw::fstat now.Thu Sep 2 22:11:03 1999 Christopher Faylor <cgf@cygnus.com> * path.cc (mount_info::conv_to_win32_path): Fix problem with calculating relative path at root.Wed Sep 1 23:24:43 1999 Christopher Faylor <cgf@cygnus.com> * fhandler.cc (fhandler_base::fhandler_base): Don't use default binmode for console.Wed Sep 1 20:51:05 1999 Christopher Faylor <cgf@cygnus.com> * smallprint.c (__small_vsprintf): Allow field width argument with 'l' modifier. Consolidate processing of field width. * uname.cc (uname): Eliminate space in "release" field.Tue Aug 24 10:46:24 1999 Kazuhiro Fujieda <fujieda@jaist.ac.jp> * fhandler_console.cc (write_normal): Write '\n' corresponding to DWN if the cursor is out of the window.Wed Aug 25 22:16:46 1999 Christopher Faylor <cgf@cygnus.com> * smallprint.c (rn): Deal with positive as well as negative signs. (__small_vprintf): Handle '+', 'l', and '%' format types.Wed Aug 25 00:38:49 1999 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (dll_crt0_1): Zero heap information in user_data to work around mutant startup code.Tue Aug 24 00:03:22 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (sig_send): One more end-of-process race detection.Mon Aug 23 21:37:07 1999 Christopher Faylor <cgf@cygnus.com> Throughout, remove malloc.h. * debug.cc: Initialize handle list so that it will not be copied on fork. * exceptions.cc (_sigreturn): Zero windows error on exit. It's meaningless after a signal dispatch. * fhandler_console.cc (fhandler_console::de_linearize): Improve error messages. * shared.h: Increment fork magic number. * sigproc.cc (sigproc_terminate): Close all handles prior to calling proc_terminate if running in signal thread. (sig_send): Eliminate bogus ResetEvent on a semaphore. Add code for potentially dealing with problems when this code is interrupted via a signal dispatch. * times.cc (timezone): Use __small_sprintf. * uname.cc (uname): Ditto. Also use strcpy instead of sprintf where appropriate.1999-08-23 DJ Delorie <dj@envy.delorie.com> * localtime.c: export timezone, daylight, tzname as _* * times.cc: don't export timezone, daylight, tzname (timezone): return TZ if set. (cygwin_tzset): not needed.Thu Aug 19 13:46:47 1999 Christopher Faylor <cgf@cygnus.com> * fork.cc (fork): Remove pinfo lock. It is in allocate_pid, now. * spawn.cc (_spawnve): Ditto. * pinfo.cc (pinfo_init): Ditto. (lock_pinfo_for_update): Impreove debug output. (pinfo_list::allocate_pid): Lock pinfo mutex here.1999-08-19 DJ Delorie <dj@cygnus.com> * Makefile.in (tooldir): If we're building natively, drop the $(target_alias) on include and lib's install (i.e. /usr/include instead of /usr/include/i686-cygwin).Thu Aug 19 01:11:25 1999 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (sig_send): Avoid a race with proc thread when executing due to a signal.Wed Aug 18 16:37:59 1999 Kazuhiro Fujieda <fujieda@jaist.ac.jp> * fhandler_console (fhandler_console::fillin_info): Avoid setting scroll_region.Bottom when it is not known.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -