📄 changelog-1998
字号:
stuff. * mkvers.sh: New file. Creates version.cc. * cygwin.din: Export setdtablesize. * dcrt0.cc: Remove obsolete version variables. (build_argv): Use issep() macro rather than isspace since isspace includes whitespace that the shell does not consider a command separator. (check_sanity_and_sync): Use new cygwin version defines and structures for compatibility checking. (dll_crt0_1): Ditto. (__api_fatal): Renamed from api_fatal. Now always called from macro which tacks program name to beginning of fmt. Increase size of buffer. * environ.cc (regopt): Use new reg_key class constructor functionality. * net.cc (getdomainname): Ditto. * path.cc (read_mounts): Ditto. (mount_info::from_registry): Ditto. (mount_info::to_registry): Ditto. (hash_path_name): No need for this to be a "C" function. * external.cc (cygwin32_internal): Export version info strings. * external.h: Add CW_GETVERSIONINFO. * fhandler.cc (fhandler_base::write): Eliminate use of MIN macro. * init.cc (set_dllname): Obsolete function. Handled in version.cc. (dll_entry): Remove reference to set_dllname. * libccrt0.cc (this_proc): Renamed from cygwin_statu. (cygwin_crt0_common): Record api version in this_proc. * mmap.cc (recreate_mmaps_after_fork): No need for this to be a "C" function. * syscalls.cc (close_all_files): Ditto. * pinfo.cc (lock_pinfo_for_update): Eliminate a compiler warning. * registry.cc: Eliminate reg_session class. Augment reg_key to handle functionality of reg_session. * registry.h: Ditto. * shared.cc (shared_name): No need for this to be a "C" function. Use new cygwin version structure. (shared_info::initialize): Use new reg_key class constructor functionality. * smallprint.c (__small_vsprintf): Accept %P as a format specifier. Signifies the program name. * spawn.cc (spawn_guts): Quote *all* of the stuff the dcrt0.c considers special. * tty.cc (tty::inuse_event_exists): Remove debugging printf. It results in too much output to strace log. * uinfo.cc: Add a needed include. * uname.cc (uname): Use new cygwin version structure to fill in utsname fields. * winsup.h: Regroup into sections. Add new version structure. * include/utmp.h: Move login/logout function declarations here. * include/cygwin32/version.h: Define new CYGWIN version/info stuff here.Fri Oct 16 00:13:35 1998 Geoffrey Noer <noer@cygnus.com> * Makefile.in: enable building mingw subdir by defaultThu Oct 15 12:01:08 1998 Christopher Faylor <cgf@cygnus.com> * spawn.cc (spawn_guts): Set all security attributes for CreateProcess so that sexec will work properly.Thu Oct 15 08:49:12 1998 Christopher Faylor <cgf@cygnus.com> * hinfo.cc (hinfo::dup2): Avoid a null pointer dereference in a debugging printf.Wed Oct 14 18:06:51 1998 Geoffrey Noer <noer@cygnus.com> patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * fhandler_console.cc (fhandler_console::dup): reset default_color since the console fhandler forgets its default colorizing when it's `dup'ed. (fhandler_console::fhandler_console): remove unnecessary erasing in constructor of fhandler_console.Mon Oct 12 22:20:59 1998 Christopher Faylor <cgf@cygnus.com> * fcntl.cc (fcntl): According to the "Single UNIX Specification", F_DUPFD should *not* close its argument. Revert to previous behavior. * hinfo.cc (dup2): Guard against closing target fd too early. * pinfo.cc: Always initialize myself to a dummy value so that myself != NULL checks are avoided. * include/sys/strace.h (strace): Remove NULL check for myself. * dcrt0.cc (api_fatal): Ditto. * exceptions.cc (handle_exceptions): Ditto. * signal.cc (sigprocmask): Ditto. (_raise): Ditto. * strace.cc (get_strace_mutex): Ditto.Mon Oct 12 15:19:47 1998 DJ Delorie <dj@cygnus.com> * utils/ps.cc (main): use const char *pnameFri Oct 9 12:32:23 1998 Christopher Faylor <cgf@cygnus.com> * syscalls.cc (getw): Simplify.Thu Oct 8 23:09:34 1998 Geoffrey Noer <noer@cygnus.com> * times.cc: add missing syscall_printfs to time functions, slight reformatting.Thu Oct 8 21:56:37 1998 DJ Delorie <dj@cygnus.com> * hinfo.cc (cygwin32_attach_handle_to_fd): allow to pass -1 for dup() simulation; return allocated fd. * pinfo.cc (lock_pinfo_for_update): if the mutex is broken, fail instead of looping. If you do loop, don't use 100% CPU.Thu Oct 8 18:33:02 1998 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc: Add another per-thread object for strace. (quoted): Fix misconception of method used to quote quotes. (globify): Optionally output arguments. (build_argv): Ditto. (dll_crt0_1): Fix typo in line reassignment. * debug.cc (class locker): Avoid calling lock multiple times. * exceptions.cc (call_handler): Set strace recursion flag to zero when invoking a signal handler. * fcntl.cc (_fcntl): F_DUPFD should close its argument. * fork.cc (fork): Move determination of parent process to a safer place. * sigproc.cc (get_sig_dispatch_mutex): Rename. Use macro interface to provide the name of the caller for strace output. (release_sig_dispatch_mutex): Ditto. * sigproc.h: Define *_dispatch_mutex wrappers. * strace.cc (strace_printf): Use new per-thread object to guard against recursion. * winsup.h: Define per_thread_strace_protect. Redo per_thread base class for a little more clarity.Wed Oct 7 22:30:43 1998 Geoffrey Noer <noer@cygnus.com> * fhandler_tty.h: up NTTYs from 16 to 128Wed Oct 7 09:15:55 1998 Christopher Faylor <cgf@cygnus.com> * fhandler_console.cc (console_read): Distinguish between 0 byte return from CTRL-C and EOF condition.Tue Oct 6 22:31:44 1998 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (build_argv): Rewrite. Now: 1) allocates argv on the fly, 2) inserts '@' files as they are found, 3) uses sh-style quoting using either " or ' which may be embedded in an argument. (insert_file): Don't scan command line. Accept already parsed arguments from build_argv. (quoted): New function for parsing quoted strings. (globify): Don't scan argv list. Accept element from build_argv which will be tacked to end of argv as it is being built. Extend quoting options to allow tilde, braces, and quotes. (dcrt0_dll_1): Simplify argv processing. Just call build_argv, which handles everything.Tue Oct 6 11:04:43 1998 Christopher Faylor <cgf@cygnus.com> Change Create[A-Z]* calls throughout to use sec_none_nih to avoid subprocesses accidentally inheriting handles. * grp.cc: Hold group structures in group_buf rather than an image of the /etc/group file. (parse_grp): New function to parse a group line into a struct group. (add_grp_line): Use parse_grp to add line from /etc/group into internal cache. (read_etc_group): Avoid redundant feof call. Set up default group. (getgrgid): Just return appropriate entry from group_buf rather than reparsing internal representation. (getgrnam): Ditto. (getgrent): Ditto. * hinfo.cc (hinfo::select_*): Set errno value when attempt is made to use an unopened fd. * passwd.cc: Hold passwd structures in passwd_buf rather than an image of the /etc/passwd file. (parse_pw): New function to parse a passwd line into a struct passwd. (add_pw_line): Use parse_pw to add line from /etc/passwd into internal cache. (read_etc_passwd): Avoid redundant feof call. (search_for): Just scan passwd_buf for matching entries. (getpwent): Just return appropriate entry from passwd_buf rather than reparsing internal representation.Mon Oct 5 18:06:31 1998 Geoffrey Noer <noer@cygnus.com> patch from Corinna Vinschen <corinna.vinschen@cityweb.de>: * sysdef/kernel32.def: add missing GetDiskFreeSpaceEx linesSat Oct 3 23:52:23 1998 Christopher Faylor <cgf@cygnus.com> * dcrt0.cc (si): Initialize so that NO_COPY will work. * debug.cc (class locker): Fix previous change. Critical sections are still required, so protect them if operating in main thread to avoid signal problems. Make any previously static use of locker global since that appears to be the only foolproof way of marking the variable NO_COPY. Rename these variables to something that is not likely to be collided with. * exceptions.cc (call_handler): Signal arrival of a dispatched signal here and wait a long time for the mutex before giving up. Should increase performance slightly. * sigproc.cc (maintid): New external symbol. * sigproc.cc (maintid): Make this global since it is used in other places now. (sig_dispatch_pending): Don't wait for wait_sig to complete if there are no pending signals. Avoids a race and should be faster. (wait_sig): Don't set signal_arrived event here. Do it in call_handler. * strace.cc (strace_printf): Remove previous recursion check since it is not signal safe. * syscalls.cc (_read): Remove duplicate CreateEvent typo.Fri Oct 2 09:54:42 1998 DJ Delorie <dj@cygnus.com> * strace.cc (strace_printf): protect against recursionThu Oct 1 17:08:47 1998 Geoffrey Noer <noer@cygnus.com> * utils/ps.cc (main): add more detailed usage printfsThu Oct 1 11:05:16 1998 Christopher Faylor <cgf@cygnus.com> * Makefile.in: Fix typo in debug.o dependency. * debug.cc (class locker): Give up on using critical sections since they are not safe to use in the main thread due to signals.Wed Sep 30 22:34:42 1998 Christopher Faylor <cgf@cygnus.com> * fork.cc (fork): Close parent's parent_alive handle if there is one or suffer a handle leak. * syscalls.cc (_read): Make all events no access and non-inheritable or suffer potential handle leak. * windows.cc (gethwnd): Ditto.Wed Sep 30 17:22:29 1998 Geoffrey Noer <noer@cygnus.com> * include/io.h: add missing setmode protoTue Sep 29 23:33:11 1998 Christopher Faylor <cgf@cygnus.com> * fhandler_tty.cc (fhandler_pty_master::close): Make sure both sides of both pipes associated with a tty master are closed or suffer handle leaks.Tue Sep 29 16:55:00 1998 Geoffrey Noer <noer@cygnus.com> * path.cc (mount_info::init): remove default mounts for raw devices. * utils/mount.cc (reset_mounts): ditto (main, usage): new -f flag disables warning messages about missing mount point directories. Two new flags, disabled for now: -c will create missing mount point directory, -g will select adding the mount point to the global registry location. * include/sys/mount.h: add MOUNT_GLOBAL define, for future use.Tue Sep 29 14:20:30 1998 Christopher Faylor <cgf@cygnus.com> * exceptions.cc (exception): Use %p to denote some hex values. * winsup.h (read_info): Add jmp_buf to structure. Required for syscalls.cc change below.Mon Sep 28 19:36:41 1998 Syd Polk <spolk@cygnus.com> * include/{tchar.h, direct.h}: Added so that tcl8.1a2 can be compiled with cygwin.Mon Sep 28 19:36:41 1998 Christopher Faylor <cgf@cygnus.com> * syscalls.cc (thread_reset): Yet another method for handling interruptible reads. (_read): Use thread_reset to reset reads after a signal.Sun Sep 27 21:11:46 1998 Christopher Faylor <cgf@cygnus.com> * cygwin.din: New alias for __cygwin32_stack_trace. * debug.cc (find_handle): Avoid leaving function without unlocking. (newh): Ditto. * exceptions.cc (__cygwin32_stack_trace): Rename to just `stack'. Shortens stack trace output. (exception): Use %p to distinguish register values. * fhandler_console.cc (fhandler_console::init): Remove debugging sig_protect. * init.cc (dll_entry): Move definition to avoid a compiler warning. * path.cc (mount_info::conv_to_win32_path): Detect case of root directory when setting win32 relative path. (mount): Remove obsolete label. * syscalls.cc (thread_sync): New function for exiting the read helper thread. (_read): Use new method for exiting the read helper thread.Sun Sep 27 11:25:06 1998 Christopher Faylor <cgf@cygnus.com> patch from sos@prospect.com.ru (Sergey Okhapkin): * delqueue.cc (delqueue_list::process_queue): Clear queue entry if file cannot be deleted for a reason other than sharing violation.Fri Sep 25 08:52:50 1998 Christopher Faylor <cgf@cygnus.com> * debug.cc: locker variables should all be static. * syscalls.cc (_read): Call ForceCloseHandle on thread handle since it is protected.Thu Sep 24 18:59:25 1998 Geoffrey Noer <noer@cygnus.com> * path.cc (mount): don't verify that path is an existing directory. Instead * utils/mount.cc: verify that path is an existing directory and print warning if it's not. Still do the mount.Thu Sep 24 11:45:04 1998 Christopher Faylor <cgf@cygnus.com> * debug.cc: locker class variables must be NO_COPY since they contain data that should not be precisely duplicated after a fork. This hopefully fixes a "SIGSEGV" problem. * select.cc (peek_pipe): Pipes apparently should set both "read" and "exception" flags on EOF.Wed Sep 23 18:26:31 1998 DJ Delorie <dj@cygnus.com> * doc/doctool.c (main): typo checking for --helpWed Sep 23 17:46:06 1998 Christopher Faylor <cgf@cygnus.com> * path.cc (symlink_check_one): Try much harder to ensure that CloseHandle is called on the file which was opened to check for a symlink. Avoid obsolete check for NULL buf.Wed Sep 23 17:11:50 1998 Christopher Faylor <cgf@cygnus.com> * syscalls.cc (_read): Close thread handle or suffer a leak. * dir.cc (opendir): Simplify logic. (readdir): Ditto. Clos
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -