📄 changelog-1998
字号:
"funny". Use statics instead. Move fork/spawn checking into dll_crt0. (dll_crt0): Do fork spawn checking here. alloc_stack() will call dll_crt0_1 if forked from a non-main thread. * fork.cc (stack_base): New function determines base (and other values) of this thread's stack. (fork): Use new PROC_FORK1 method for forking. Provides more data to forkee. Use stack_base to set stack values. * winsup.h (child_info_fork): Changes for PROC_FORK1.Wed Dec 16 16:15:29 1998 Geoffrey Noer <noer@cygnus.com> * include/shellapi.h: fix typo in DragQueryPoint proto.Mon Dec 14 12:37:43 1998 Geoffrey Noer <noer@cygnus.com> * net.cc: minor respacing (get_ifconf): new local function, combines get_winnt_ifconf and get_win95_ifconf. (get_win95_ifconf): delete (get_winnt_ifconf): delete (fhandler_socket::ioctl): adjust ifconf calls in light of above, check returned value for safety. * include/cygwin/version.h: bump CYGWIN_VERSION_API_MINOR to 4 in honor of newly supported socket ioctls. patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * include/asm/socket.h: Added defines for ioctl() calls SIOCGIFADDR, SIOCGIFBRDADDR and SIOCGIFNETMASK. * net.cc (get_winnt_ifconf): Check the registry entries instead of just calling get_win95_ifconf(). Added what argument to support the new ioctl() calls. (get_win95_ifconf): Check the Windows 9x registry entries as described by Tim Newsham. (fhandler_socket::ioctl): Support the ioctl() commands SIOCGIFADDR, SIOCGIFBRDADDR and SIOCGIFNETMASK. (get_if_flags): Check for a down interface.Wed Dec 9 18:11:31 1998 Geoffrey Noer <noer@cygnus.com> * fhandler.cc (fhandler_disk_file::open): check for shell scripts regardless of Win32 OS type.Sun Dec 6 19:38:11 1998 Christopher Faylor <cgf@cygnus.com> patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * fhandler_console.cc (fhandler_console::tcgetattr): Fix typo. ISIG should be ored with c_lflag.Tue Dec 1 16:28:56 1998 Geoffrey Noer <noer@cygnus.com> * include/utmp.h: delete, moved to newlib/libc/sys/cygwin/sys.Thu Dec 3 15:41:51 1998 Geoffrey Noer <noer@cygnus.com> Released 20.1 update.Thu Dec 3 22:24:18 1998 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (set_process_mask): Add `sync' parameter to control whether signals should be synched on exit. (handle_sigsuspend): Provide second argument to set_process_mask - don't sync. (call_handler): Ditto for asm handler. * signal.cc (sigprocmask): Ensure that signals are synchronized by calling set_process_mask with sync == 1. * sigproc.cc (__release_signal_mutex): Third argument is not strictly a BOOL, so change it. * sigproc.h: Reflect above parameter changes.Thu Dec 3 15:30:44 1998 Christopher Faylor <cgf@cygnus.com> * select.cc (peek_console): Work around NT bug that caused strange behavior with ReadFile after this function was invoked.Tue Dec 1 14:43:35 1998 Christopher Faylor <cgf@cygnus.com> * sigproc.cc (sigproc_init): Set maintid and signal_mutex early to avoid races in wait_sig initialization. (__get_signal_mutex): Improve debug output. (__release_signal_mutex): Ditto. * spawn.cc (spawn_guts): Allocate more space for string when building up from #! and absolute path is not known. Otherwise weird stuff like infinite recursion or unknown file errors occur.Tue Dec 1 08:34:18 1998 Christopher Faylor <cgf@cygnus.com> * mkvers.sh: Accommodate lack of timezone in date output so that year shows up correctly.Mon Nov 30 14:30:51 1998 Jeff Johnston <jjohnstn@cygnus.com> * times.cc (times): Altered function so that on non-Windows-NT systems it does not use the GetProcessTimes() API which is not supported.Mon Nov 30 00:38:54 1998 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc: Fix incorrect use of struct on exception_list typedef. * debug.cc (thread_stub): Ditto. * dll_init.cc: Ditto. * include/Windows32/Structures.h: Correct typo where typedef SYSTEM_POWER_STATUS was being used as a struct.Sun Nov 29 22:03:17 1998 Christopher Faylor <cgf@cygnus.com> patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * fhandler_console.cc (fhandler_console::ioctl): Added ioctl commands TCGETA, TCSETA, TCSETAW, TCSETAF.Fri Nov 27 22:30:58 1998 Christopher Faylor <cgf@cygnus.com> * fhandler.h: Set aside NOEINTR bit. When this is set cygwin will not allow the read on this device to be interrupted by a signal. * pipe (_pipe): Set NOEINTR bit for read end of pipes created using this method. The vague rationale for this is that these pipes are supposed to be more like Windows pipes than UNIX pipes. * syscalls.cc (_pipe): Honor NOEINTR flag. * getopt.c: Clean up some gcc warnings. * libcerr.c: Ditto.Fri Nov 27 21:56:03 1998 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (SIG_NONMASKABLE): Update for new signal mask method. (handle_sigsuspend): Release of signal mutex must be synchronous -- the signal must be delivered before the function returns. Otherwise, there will be races in the caller code. * sigproc.cc (sigproc_terminate): Minor cleanup.Thu Nov 26 20:26:17 1998 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (call_handler): Attempt to work around potential race when setting signal_arrived. This particularly affects sigsuspend. (handle_sigsuspend): Reset signal_arrived prior to grabbing the mutex. This should reduce the probability of a race. * sigproc.cc (sig_send): Don't reset signal_arrived in the SIGSUSPEND case since this could introduce a race.Thu Nov 26 12:19:16 1998 Christopher Faylor <cgf@cygnus.com> patch from sos@prospect.com.ru (Sergey Okhapkin): * select.cc (MAKEready): Don't wait for signal prior to testing for read. That introduces an unnecessary delay.Wed Nov 25 23:03:47 1998 Christopher Faylor <cgf@cygnus.com> * winsup.h: Make `isdirsep' an alias for SLASH_P. Implement isabspath convenience macro. Change sigprotect to a macro since it appears to be impossible to send __FILE__ type macros to a constructor. Change use of sig_protect throughout. * dcrt0.cc (dll_crt0_1): Use new path macro. * dlfcn.cc (get_full_path_of_dll): Ditto. * path.cc (path_conv::path_conv): Ditto. (normalize_posix_path): Ditto. (slashify): Ditto. (backslashify): Ditto. * syscalls.cc (num_entries): Ditto. * lock.cc: Redefine lock methods to pass debug info to {get,release}_signal_mutex. * environ.cc (environ_init): Correct strncmp test for TERM=, otherwise it's impossible to set TERM. * exceptions.cc: Eliminate lock_cs and unlock_cs macros. Use {get,release}_signal_mutex throughout. (signal_init): Don't initialize signal_mutex here. (set_process_mask): Remove vestiges of old mutex code. (handle_sigsuspend): Ditto. (call_handler): Move signal_arrived SetEvent back here. It was being triggered too often before. Detect when the signal thread is exiting. (sig_handle): Remove inappropriate SetEvent(signal_arrived). (events_terminate): Move close of signal_mutex elsewhere. * glob.cc: Increase "MAXPATHLEN" size for arguments that are not necessarily pathnames. * pinfo.cc (lpfu): Lower timeout for reporting possible problem with INFINITE wait. * sigproc.cc (wake_wait_subproc): Make this a macro with no arguments so that its use in the code is a little clearer. (proc_terminate): Eliminate signal blocking here since this should already be handled by the caller. (sigproc_init): It makes sense to initialize signal_mutex here, so do so. (__allow_sig_dispatch): Rename. Take debugging arguments. Pass arguments on to release_signal_mutex. (__block_sig_dispatch): Rename. Take debugging arguments. Pass arguments on to get_signal_mutex. Detect signal thread exiting confition. (__get_signal_mutex): Take debugging arguments. Maintain a stack of nested mutex calls for later display in __release_signal_mutex. Detect signal thread exit condition. Don't bother with locking if signal thread is executing or if just an exec stub. (__release_signal_mutex): Don't bother with locking if signal thread is executing or if just an exec stub. * sigproc.h: Reflect renamed functions above. Provide wrappers to pass in diagnostic information. * spawn.cc (spawn_guts): More fixes to deal with nested #! and to properly report posix argv[0] when invoked as a script.Wed Nov 25 12:41:12 1998 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Reinstate libwinspool.a/winspool.drv creation.Tue Nov 24 18:48:56 1998 Geoffrey Noer <noer@cygnus.com> * Makefile.in: add CFLAGS_COMMON and CFLAGS_CONFIG to CFLAGS and CXXFLAGS in FLAGS_TO_PASS. * include/sys/select.h: new file with select proto. Avoid potential conflict with Winsock inclusion by Cygwin internals. * include/sys/socket.h: remove select proto. * winsup.h: define __INSIDE_CYGWIN__. Include windows.h after Unix include files. * include/mywinsock.h: delete file * include/Windows32/Sockets.h: add ndef __INSIDE_CYGWIN__s around portions that conflict with Unix definitions. This yields what used to be mywinsock.h which is a blend of Unix sockets and Winsock needed by Cygwin internals. * exceptions.cc: define Win32_Winsock to include Windows32/Sockets.h. No longer define __INSIDE_CYGWIN__. * hinfo.cc: ditto * net.cc: ditto * select.cc: ditto * include/exceptions.h: change wrapper define to _EXCEPTIONS_H. * include/sys/resource.h: move includes outside __cplusplus check. * include/sys/wait.h: ditto.Sun Nov 22 23:33:19 1998 Geoffrey Noer <noer@cygnus.com> * sigproc.cc (__release_signal_mutex): revert Nov 3d change.Sun Nov 22 17:04:44 1998 Christopher Faylor <cgf@cygnus.com> patch from sos@prospect.com.ru (Sergey Okhapkin): * regexp/Makefile.in: Add additional bits necessary to allow correct installation of include file.Fri Nov 20 17:04:48 1998 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Set "Warn about writable strings" option in CFLAGS. * fhandler_tty.h: Fix for writable strings detection. * grp.cc (add_grp_line): Ditto. * mkvers.sh: Ditto. * path.h: Ditto. * registry.cc: (reg_key::reg_key): Ditto. * smallprint.c (__small_vsprintf): Ditto. * tty.cc (tty::get_event): Ditto. * winsup.h: Give up on read_ready_thread. Move sig_protect here since it needs to use information set up after the sigproc.h include. * dcrt0.cc: Ditto. * debug.cc (WFSO): New function. Used to ensure that function shows up on stack trace. (WFMO): Ditto. * debug.h: Define the above. * exceptions.cc (ctrl_c_handler): Record last signal for signal handler. * select.cc (MAKEready): New macro for constructing fhandler_*::ready_for_read function. (fhandler_*::ready_for_read): Use macro to construct this method throughout. * sigproc.cc (sig_send): Work around race on process termination where the event being waited for may disappear. (sigproc_terminate): #ifdef code here that attempted to deal with the above condition in sig_send. * sigproc.h: Move sig_protect to winsup.h. * spawn.cc (perhaps_suffix): Don't return pointer into an automatic variable. (find_exec): Always point known_suffix to something. * syscalls.cc (read_handler): Refine debug output. (read_ready_thread): Delete. (_read): Eliminate use of read_ready_thread. Call ready_for_read directly as appropriate.Thu Nov 19 15:26:40 1998 Geoffrey Noer <noer@cygnus.com> * Makefile.in: remove -Wunused since that's already in -Wall * dlfcn.cc (check_path_access): rename winenv arg to mywinenv * path.cc (symlink): change save_errno var to saved_errno * spawn.cc (find_exec): rename winenv arg to mywinenv (spawn_guts): rename sigprotect handle to starting_here * winsup.h: remove trailing comma from process_state flags enum * utils/aclocal.m4: regenerate * utils/configure: regenerateThu Nov 19 11:16:38 1998 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Use correct libpthread.a target when thread-safe is enabled.Thu Nov 19 10:49:27 1998 Christopher Faylor <cgf@cygnus.com> * path.cc (path_conv): Correct error reporting.Wed Nov 18 20:07:50 1998 Geoffrey Noer <noer@cygnus.com> * utils/Makefile.in: remove termcap file install ruleWed Nov 18 18:14:18 1998 Geoffrey Noer <noer@cygnus.com> More minor cleanup: * environ.cc (winenv): don't define len twice. * fork.cc (sync_with_parent): should NOT use rc since this is a macro and that could have interfered with rc in the calling function. Renamed to psync_rc. * fhandler_serial.cc (fhandler_serial::open): change access to myaccess since it shadows global decl. * hinfo.cc: ditto throughout * path.cc: ditto throughout (path_conv::path_conv): change error to err.Wed Nov 18 16:17:58 1998 Geoffrey Noer <noer@cygnus.com> * profil.c: include stdio.h (print_prof): comment out unused func (profile_ctl): should return an intWed Nov 18 16:17:58 1998 Geoffrey Noer <noer@cygnus.com> * utils/ps.cc: include sys/cygwin.h, make pname buf MAXPATH in size. patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * utils/ps.cc (main): converting windows paths to posix paths in output.Wed Nov 18 15:34:46 1998 Geoffrey Noer <noer@cygnus.com> * include/wchar.h: include stddef.h.Wed Nov 18 17:39:15 1998 Christopher Faylor <cgf@cygnus.com>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -