?? changelog-1996
字號:
* pinfo.cc (pinfo::clearout): Reset strace_mask_ptr. * shared.cc (open_shared_file_map): Add debugging message.Fri Jul 5 15:36:48 1996 Doug Evans <dje@canuck.cygnus.com> * exceptions.cc (sig_func_ptr): New typedef. (__stack_trace): Make i386 and ppc formats the same. (sigfunc): Use sig_func_ptr. (call_handler): Likewise. All callers updated. (__cygwin_exception_handler): Handle exceptions before dll has fully initialized. Only call dump_status once, like __stack_trace. (really_exit): Call _exit, not exit. * hinfo.cc: Add copyright. * uinfo.cc: Likewise. * passwd.c: Whitespace cleanup. (search_for): Make static. * pinfo.cc (pinfo_list::init): Delete call to clearout vec[0]. (pinfo::clearout): Reset more fields. (pinfo_list::get_empty_pinfo): Delete printing of error messages if table is full. * shared.cc (open_shared_file_map): Mark shared map as not inherited. * signal.cc (signal): Delete (void *) coersion of result. (usleep): Convert microseconds to milliseconds. Delete second copy. (_raise): Use _sig_func_ptr. * syscalls.h: Delete #include mntent.h, sys/types.h, string.h, stdio.h, setjmp.h, stdlib.h, signal.h, sys/strace.h, unistd.h, ctype.h, fcntl.h. * winsup.h: #include sys/types.h, sys/strace.h, setjmp.h, signal.h, string.h, windows.h. * All necessary files updated. * winsup.h (class pinfo): Delete member localtime_buf. * times.cc (corelocaltime): Use static local for localtime_buf. * winsup.h (class pinfo): Rename the_pid to pid. All uses updated. Delete handle_valid_p, unused. Rename __sig_mask to sig_mask.Thu Jul 4 14:36:01 1996 Doug Evans <dje@canuck.cygnus.com> * shared.h: Deleted. All files updated. * winsup.h: shared.h contents moved here. * Makefile.in (WINSUP_H): Update. * heap.cc: Renamed from pproc.cc. (heap_init): Renamed from per_process::init. In forkee initialization, ensure memory being reserved is at same address as parent's. Commit forkee memory in one chunk. (_sbrk): Moved here, * syscalls.cc (_sbrk): From here. * Makefile.in (DLL_OFILES): Update. * dcrt0.cc (dll_crt0_1): Call heap_init instead of u->init. * winsup.h (class per_process): Delete member `init'. * dcrt0.cc (recur): Delete. (dos_argv_to_unix_argv): Delete. * delqueue.cc: Delete #include of delqueue.h, winerror.h * winsup.h: #include delqueue.h. * exceptions.cc (ctrl_c_handler): Only require 13 ^c's to quit task. * fork.cc (fork_mutex,forkee_stopped,forker_stopped): New static globals, were in class_shared info. (fork_init,fork_terminate): New functions. (prepare_child,cygwin_fork_helper1): Update. (cygwin_fork_helper1): If fork disabled, return EAGAIN. Delete unnecessary resetting of forkee_stopped event. * winsup.h (fork_init,fork_terminate): Declare them. * dcrt0.cc (dll_crt0_1): Call fork_init. (_exit): Call fork_terminate. * shared.c (shared_info::initialize): Delete init of fork stuff. * shared.c (h): New static global, was in class shared_info. (shared_info::terminate): Delete, move contents into shared_terminate. * strace.cc (flush_p): New static global. (strace_init): Don't clobber u->strace_mask if _STRACE_INHERIT set. (__sys_printf): Only flush buffers if _STRACE_FLUSH. * include/sys/strace.h (_STRACE_FLUSH,_STRACE_INHERIT): Define. Reorganize bitmasks. * utils/ps.cc (main): Make output prettier.Wed Jul 3 12:30:24 1996 Doug Evans <dje@canuck.cygnus.com> * utils/Makefile.in (mount,umount,ps,kill): Rewrite rules. (PROGS): Add cygwin. (cygwin): New target. (install): Install all of $(PROGS). * utils/cygwin.cc: New file. * pinfo.cc (pinfo_init_per_process): PID environment variable handling moved here. Delete setting of u->parent. Set strace_mask_ptr. Set invoked_by_cygwin_p appropriately. (vfork_init): Delete, unused. (pinfo::init_self): Delete setting of root_p. (pinfo::terminate): root_p renamed to invoked_by_cygwin_p. * winsup.h (class per_process): Delete initial_pid, no longer used. (class pinfo): Add strace_mask_ptr. * fork.cc (cygwin_fork_helper1): Update. * winsup.h (class per_process): Delete trace_file, trace_mutex. Rename estrace to strace_mask. (system_printf): Declare. * strace.cc (strace_init): Renamed from per_process::strace_init. Don't open trace file unless strace environment variable set. Open trace file with FILE_SHARE_READ so others can read trace file while tracing in progress. Print error if $strace too big. (strace_file, strace_mutex): New static globals. (__sys_printf): Don't do anything if strace file not opened. (system_printf): New function. * pproc.cc (per_process::init): Delete call to strace_init. * dcrt0 (dll_crt0_1): Call strace_init as soon as possible. * dcrt0 (dll_crt0_1): Delete local can_glob, use u->self->invoked_by_cygwin_p instead. Move PID environment variable handling into pinfo_init_per_process. Delete setting of u->self->in_bash. Delete watching for bash. * winsup.h (class pinfo): Delete in_bash. * exceptions.cc (*): Call system_printf, not __sys_printf. * shared.h (class shared_info): Delete pp, unused. * syscalls.cc (isatty): Replace ttyname with is_tty. * winsup.h (registry_init_once_only): Delete, unused. (stdout_handle,file_handle_from_fd): Likewise. (CHILD_P,child_p,ALL_FS,loadup_dll,cygwin_s): Likewise. (unmixedcaseify): Prototype moved to path.h. * path.h (unmixedcaseify): Declare. * fork.cc (FORK_WAIT_TIMEOUT, WAIT_ERROR_RC): Define. (find_exec_1): Don't search PATH if directory present (not only if absolute path). Search "." before searching PATH. (copy): Return boolean indicating success. All callers updated. (prepare_child): Simplify. Check return code of WaitForSingleObject. Don't wait an infinite amount of time. (cygwin_fork_helper1): Simplify. Check return code of WaitForSingleObject. Don't wait an infinite amount of time. Check return code of copy. Disable code to Suspend/Resume child thread a second time. * winsup.h (class per_process): Make initial_sp a char *. * libccrt0.cc (cygwin_crt0): Update. * path.cc (path_conv): If name too long, set path to bogus value. * include/winkernel.h (WriteProcessMemory): Fix prototype. * include/sys/strace.h: Add extern "C" ifdef __cplusplus. (_STRACE): Delete. * dirsearch.cc (rewinddir): Use syscall_printf.Tue Jul 2 14:44:18 1996 Doug Evans <dje@canuck.cygnus.com> * wait.cc (WAIT_ERROR_RC): Use it instead of ALL_FS. (wait_found): New argument `options'. If GetExitCodeProcess fails, ensure `result' contains something reasonable. (wait_for_single): Check whether `c' is NULL before dereferencing it. (wait_for_any): Add some comments. Delete unnecessary gotos. (waitpid): Print message if called with intpid == 0.Sat Jun 29 10:49:28 1996 Doug Evans <dje@canuck.cygnus.com> * dirsearch.cc (readdir): Clean up syscall tracing. Mixed case handling temporarily disabled.Wed Jun 26 11:54:27 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) * Makefile.in (bindir, libdir, datadir, infodir, includedir): Use autoconf-set values. (docdir): Removed. (install-info): Add. * configure.in (AC_PREREQ): autoconf 2.5 or higher. * configure: Rebuilt. * glob/configure.in (AC_PREREQ): autoconf 2.5 or higher. * glob/configure: Rebuilt. * utils/Makefile.in (bindir, exec_prefix): Use autoconf-set values. * utils/configure.in (AC_PREREQ): autoconf 2.5 or higher. * utils/configure: Rebuilt.Tue Jun 25 17:48:56 1996 Doug Evans <dje@canuck.cygnus.com> * include/sys/param.h (PATH_MAX,MAXPATHLEN): Change from 1024 to 259. (BIG_ENDIAN,LITTLE_ENDIAN,BYTE_ORDER): Define.Mon Jun 24 16:35:48 1996 Mark Eichin <eichin@cygnus.com> * fhandler.cc (read): Replace the old broken igncr code (which has been disabled for a while anyway) with code that checks for ENABLE_LINE_INPUT and replace only \r\n with \n.Mon Jun 24 00:12:22 1996 Doug Evans <dje@canuck.cygnus.com> * dcrt0.cc (dll_crt0_1): Convert argv[0] to posix style if necessary.Sun Jun 23 17:21:41 1996 Doug Evans <dje@canuck.cygnus.com> * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 2. * fork.cc (perhaps_suffix): Simplify. (find_exec_1): Likewise. Always try appending .exe first. (cygwin_fork_helper1): Clean up (lots more needed still). Test for split heap before calling CreateProcess. No longer call find_exec, now done at start up. * dcrt0.cc (dll_crt0_1): Call find_exec to expand argv[0]. * path.cc (conv_path_list_buf_size): New function. (cygwin32_{win32,posix}_to_{posix,win32}_path_list_buf_size): Ditto. (conv_path_list): Ditto. (cygwin32_{win32,posix}_to_{posix,win32}_path_list): Ditto. * cygwin.din: Export them. * misc.c (small_printf): Delete. (vhangup): Set errno. * syscalls.cc (isatty): Print syscall trace message even if error. * console.cc (*): Check return codes of win32 api calls. * syscalls.cc (chmod): Set errno of SetFileAttributes fails. Fix call to syscall_printf.Thu Jun 20 00:43:52 1996 Doug Evans <dje@canuck.cygnus.com> * dcrt0.cc (dll_crt0_1): Save full program name. * fork.cc (cygwin_fork_helper1): Always call find_exec. * path.cc (normalize_{posix,win32}_path): Fix edge case handling. (path_conv::path_conv): Ensure path is \-ified if win32 path rules. * spawn.cc (spawn_guts): Set errno if CreateProcess fails.Wed Jun 19 00:18:03 1996 Doug Evans <dje@canuck.cygnus.com> * path.h (PATH_RULES macros): Delete. Use ones in unistd.h. (enum path_rules_enum): Deleted. All uses updated. (path_conv): Rename member get_native to get_win32. All uses updated. (*win32_path*): Renamed from *native_path*. * path.cc (*win32_path*): Renamed from *native_path*. (mount_info::posix_path_p): Prepend '_' to PATH_RULES. Fix returning of cached value. (slash_drive_prefix_p, build_slash_drive_prefix): New functions. (mount_info::posix_path_to_win32_path): /.<letter>. is a drive spec. (path_conv::path_conv): Likewise. (mount_info::win32_path_to_posix_path): Convert unknown drives to /.<letter>. Normalize win32_path. (normalize_win32_path): New functions. (getcwd_inner): New arg `posix_p'. All callers updated. * shared.cc (shared_info::initialize): Prepend '_' to PATH_RULES. _PATH_RULES_NATIVE -> _PATH_RULES_WIN32. * spawn.cc (*win32_path*): Renamed from *native_path*. * dcrt0.cc: Likewise. * cygwin.din: Likewise. * Makefile.in (WINSUP_H): Add shared.h * smallprint.c (rn): Make static. * sysconf.cc: Renamed from sysconf.c. (sysconf): Support _SC_PATH_RULES. * screen.c: Deleted. * Makefile.in (DLL_OFILES): Delete screen.o. * fork.cc (cygwin_fork_helper): Don't pass 0 from longjmp to setjmp. * path.h (class mount_info): Update posix_path_to_native_path member. * path.cc (path_prefix_p): Rewrite. New arg `len'. All callers updated. (mount_info::binary_native_path_p): Call path_prefix_p. (path_conv::path_conv): Pass full_path to binary_native_path_p. (mount_info::posix_path_to_native_path): Delete arg keep_rel_p. New arg full_native_path. All callers updated. Don't call getcwd_inner if unnecessary. Rewrite relative path handling. (mount_info::native_path_to_posix_path): Call path_prefix_p. Call slashify on `pathbuf', not original argument. * syscalls.cc (chdir): Fix lifetime of converted path.Tue Jun 18 11:48:51 1996 Doug Evans <dje@canuck.cygnus.com> * configure.in (EXE_LDFLAGS): Explicitly link with newlib if necessary. * configure: Regenerated. * Makefile.in (EXE_LDFLAGS): Define. (FLAGS_TO_PASS): Add EXE_LDFLAGS. (config.status): New target. (utils-all): Depend on $(LIBNAME). * utils/Makefile.in (EXE_LDFLAGS): Define. (mount,umount,ps,kill): Link with $(EXE_LDFLAGS). * version.h (CYGWIN_DLL_VERSION_MINOR): Bump up to 1.Mon Jun 17 18:29:54 1996 Doug Evans <dje@canuck.cygnus.com> Improve pathname handling, first pass. * path.h (symlink): Renamed from link_cookie. (class path_conv): New member error. (path_conv::get_native): Renamed from get_dos, all uses updated. (path_conv::get_binary): Delete. (mount_info::{mangle,reverse_mangle}): Delete. (mount_item::posix_path_to_native_path): Renamed from mangle. (mount_info::native_path_to_posix_path): Renamed from reverse_mangle. (path_rules_enum): Define. * path.cc: Temporarily disable mixed-case and symlink handling. (mount_info::posix_path_p): New function. (mount_info::binary_native_path_p): Renamed from binary_dos_path_p. (path_conv::path_conv): Handle native path rules. (mount_item::{mangle,reverse_mangle}): Delete. (mount_info::posix_path_to_native_path): Renamed from mangle. (mount_info::native_path_to_posix_path): Renamed from reverse_mangle. (mount_info::from_registry): Set nmounts. Use MAX_PATH. (mount_info::{add,del}_item): Rewrite. (slashify): Renamed from flip_slash. (getcwd_inner): Make static. Don't convert to posix path if using native path rules. (file_exists): Delete. (addmntent,hasmntopt): Delete. (mount): Only update registry if mount succeeded. (umount): Only update registry if umount succeeded. (normalize_posix_path): Renamed from normalize_path. Pass in cwd. (cygwin32_{posix,native}_path_to_{native,posix}_path_keep_rel): Renamed from ...{unix/dos}.... * dcrt0.cc (dos_argv_to_unix_argv): #ifdef out. (dll_crt0_1): Don't call it. * fhandler.cc (fhandler_base::open): Temporarily disable symlinks. * shared.cc (open_shared_file_map): New function. (shared_init): Call it. (shared_info::initialize): Fetch `path_rules' from registry. * shared.h (inited): Make private. (path_rules): New member.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -