📄 changelog
字号:
* cygwin.din: Export fseeko() and ftello(). * include/cygwin/version.h: Bump API minor version.2002-11-06 Christopher Faylor <cgf@redhat.com> * fhandler_console.cc (keytable[]): Revert previous change. It would break too many things.2002-11-06 Christopher Faylor <cgf@redhat.com> * fhandler_console.cc (keytable[]): Redefine F1 - F5 to something a little more sensical.2002-11-06 Sergey Okhapkin <sos@prospect.com.ru> * syscalls.cc (getutid): Use UT_IDLEN where appropriate.2002-11-06 Christopher Faylor <cgf@redhat.com> * include/cygwin/version.h: Bump API minor number for below export.2002-11-06 Sergey Okhapkin <sos@prospect.com.ru> * cygwin.din (pututline): New exported function. * syscalls.cc (login): Use pututiline(). (setutent): Open utmp as read/write. (endutent): Check if utmp file is open. (utmpname): call endutent() to close current utmp file. (getutid): Enable all cases, use strncmp() to compare ut_id fields. (pututline): New. * tty.cc (create_tty_master): Set ut_pid to current pid.2002-11-05 Christopher Faylor <cgf@redhat.com> * fhandler_serial.cc (fhandler_serial::ioctl): Don't try to figure out if OS has the capability to retrieve RTS/CTS. Just set default values if DeviceIoControl fails. (suggested by Sergey Okhapkin)2002-11-05 Sergey Okhapkin <sos@prospect.com.ru> * fhandler_serial.cc (fhandler_serial::raw_read): Use correct type for minchars. (fhandler_serial::ioctl): Set errno if the ClearCommError fails. (fhandler_serial::tcsetattr): Use correct value for vmin_. (fhandler_serial::tcgetattr): Ditto.2002-11-05 Thomas Pfaff <tpfaff@gmx.net> * fhandler_socket.cc (fhandler_socket::recvmsg): Call if from == NULL WSARecvFrom with fromlen = NULL.2002-11-04 Christopher Faylor <cgf@redhat.com> * pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.2002-11-04 Christopher Faylor <cgf@redhat.com> * pinfo.cc (_pinfo::commune_send): Set priority low when sleeping, waiting for commune completion so that we don't spin waiting for lower priority processes.2002-11-04 Christopher Faylor <cgf@redhat.com> * sigproc.cc (WAIT_SIG_PRIORITY): Bump to THREAD_PRIORITY_TIME_CRITICAL.2002-11-04 Christopher Faylor <cgf@redhat.com> * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.2002-11-04 Christopher Faylor <cgf@redhat.com> * fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error condition from cmdline retrieval.2002-11-04 Christopher Faylor <cgf@redhat.com> * sigproc.cc (WAIT_SIG_PRIORITY): Bump to highest priority.2002-11-04 Christopher Faylor <cgf@redhat.com> * include/cygwin/version.h: Bump DLL minor number.2002-11-03 Christopher Faylor <cgf@redhat.com> * fhandler_serial.cc (fhandler_serial::ioctl): Reformat. Set errno appropriately. Exit from the bottom. Correctly deal with third argument for TCFLSH. (Suggested by Sergey Okhapkin)2003-11-03 Sergey Okhapkin <sos@prospect.com.ru> * fhandler_tty.cc (fhandler_tty_slave::ioctl): Do nothing if the new window size is equal to the old one. Send SIGWINCH if slave connected to a pseudo tty. (fhandler_pty_master::ioctl): Do nothing if the new window size is equal to the old one.2002-10-31 Pierre Humblet <pierre.humblet@ieee.org> * fhandler.cc (fhandler_base::open): Verify pc isn't NULL.2002-10-30 Christopher Faylor <cgf@redhat.com> * include/cygwin/version.h: Bump DLL minor number.2002-10-30 Christopher Faylor <cgf@redhat.com> * external.cc (cygwin_internal): Implement CW_CMDLINE. * pinfo.h (SIGCOMMUNE): New signal type. (commune_result): New structure for commune functions. (picom): New enum for commune functions. (_pinfo::hello_pid): New. Pid who's communicating with me. (_pinfo::tothem): New. Handle of communicating pipe. (_pinfo::fromthem): Ditto. (_pinfo::commune_recv): Declare. (_pinfo::commune_send): Declare. (_pinfo::alive): Declare. (_pinfo::cmdline): Declare. (_pinfo::lock): Declare. * pinfo.cc (set_myself): Initialize new _pinfo lock. (_pinfo::alive): Define. Determines if process still exists. (_pinfo::commune_recv): Define. Receive info from another cooperating process. (_pinfo::commune_send): Define. Send info to another cooperating process. (_pinfo::cmdline): Define. Determine command line of a given process. * include/sys/cygwin.h (CW_CMDLINE): Define. *sigproc.cc (talktome): Communicate with any processes who want to talk to me. (wait_sig): Honor __SIGCOMMUNE. * fhandler.cc (fhandler_virtual::fixup_after_exec): Declare. * fhandler_proc.cc: Use malloc/free/realloc throughout rather than cmalloc since buffers don't need to be propagated to subprocesses. * fhandler_registry.cc: Ditto. * fhandler_virtual.cc: Ditto. (fhandler_virtual::fixup_after_exec): Define. * fhandler_process.cc: Ditto for malloc/free/realloc. (process_listin): Add "cmdline". (fhandler_process::fill_filebuf): Implement PROCESS_CMDLINE. * miscfuncs.cc (isalpha_array): New array populated with xor values for alpha characters to switch from one case to another. * string.h (cygwin_strcasematch): New asm implementation of case match. * string.h (cygwin_nstrcasematch): New asm implementation of counted case match.2002-10-24 Pierre Humblet <pierre.humblet@ieee.org> * pwdgrp.h (pwdgrp_read::open): Compare fh to INVALID_HANDLE_VALUE.2002-10-22 Christopher Faylor <cgf@redhat.com> * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Nevermind. Revert everything to previous state wrt ntsec and exec bits.2002-10-22 Christopher Faylor <cgf@redhat.com> * shared.cc (shared_info::initialize): Use correct value for version comparison. * include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD for magic calculation.2002-10-22 Christopher Faylor <cgf@redhat.com> * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Oops. Only do the executable thing for #! scripts since .exe files wouldn't be executable in ntsec case regardless.2002-10-22 Christopher Faylor <cgf@redhat.com> * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always consider .exe files and '#!' shell scripts to be executable.2002-10-22 Christopher Faylor <cgf@redhat.com> * cygthread.cc (cygthread::exiting): New variable. (cygthread::initialized): Delete. (cygthread::stub): Use exiting variable to determine when to exit. (cygthread::runner): Delete. (cygthread_protect): New variable. (cygthread::init): Don't start runner thread. Initialize muto for list protection. (cygthread::freerange): Return pointer to cygthread. (cygthread::operator new): Change logic to start threads on an as-needed basis. (cygthread::detach): Don't zero id. (cygthread::terminate): Don't kill any executing threads. Just set exiting flag. * cygthread.h (cygthread): Reflect above changes. * dcrt0.cc (dll_crt0_1): Move cygthread initialization later. * fork.cc (fork_child): Do fdtab fixup after dll fixup or (apparently) winsock may allocate memory in dll load address.2002-10-22 Pierre Humblet <pierre.humblet@ieee.org> * sec_helper.cc (cygsid::get_id): If the sid matches a sid stored in cygheap->user, return the uid or gid from myself. * security.cc (alloc_sd): If gid == myself->gid, return the group sid from cygheap->user. Remove the test for uid == original_uid, which is counter-productive.2002-10-22 Christopher Faylor <cgf@redhat.com> * cygheap.cc (cygheap_fixup_in_child): Use user_heap element in cygheap. (init_cheap): Ditto for declaration. * fork.cc (fork_parent): Use user_heap element in cygheap. * heap.h (inheap): Ditto. * heap.cc (sbrk): Ditto. (heap_init): Ditto. Reorganize to shrink heap chunk as required and record new value in cygheap. * dcrt0.cc (dll_crt0_1): More "move the cygthread init" games. * shared.cc (open_shared): Rework memory protection to properly deal with relocated shared segment. (shared_info::heap_chunk_size): Rename element to 'heap_chunk'. * shared_info.h (shared_info): Ditto for declaration. * strace.cc (strace::hello): Report on heap chunk size from cygheap since it may shrink.2002-10-20 Christopher Faylor <cgf@redhat.com> Change _function() to function() throughout. * cygwin.din: Remove last vestiges (?) of newlib wrappers.2002-10-20 Christopher Faylor <cgf@redhat.com> * cygthread.cc (cygthread::detach): Always wait for event or suffer an apparently inavoidable race. * dcrt0.cc (dll_crt0_1): Allocate threads after stack has been relocated. * debub.cc (lock_debug): Don't acquire lock on exit. * fork.cc (fork_child): Recreate mmaps before doing anything else since Windows has a habit of using blocks of memory in the child that could previously have been occupied by shared memory in the parent. * mmap.cc (fhandler_disk_file::fixup_mmap_after_fork): Issue error here and provide some details about what went wrong. (fixup_mmaps_after_fork): Remove error message. * shared.cc (open_shared): Move warning message so that more detail is possible. * sigproc.cc (sigproc_init): Initialize sync_proc_subproc to avoid a race. (sigproc_terminate): Specifically wait for process thread to terminate.2002-10-20 Christopher Faylor <cgf@redhat.com> * cygthread.cc (cygthread::stub): Fix typo. (cygthread::terminate): Don't zero thread handle prior to using it.2002-10-20 Christopher Faylor <cgf@redhat.com> * sigproc.cc (wait_sig): Remove obsolete sigchld logic.2002-10-20 Christopher Faylor <cgf@redhat.com> Rename _kill() to kill() throughout. Rename _raise() to raise() throughout. Rename _pid() to pid() throughout. * Makefile.in: Compile some objects with -fomit-frame-pointer. * cygwin.din: Reverse aliasing for _kill. * syscalls.cc (_getpid_r): New function, implemented for newlib compatibility. * shared.cc (open_shared): Remove reserving of memory since previous change eliminate the need for this hack.2002-10-19 Christopher Faylor <cgf@redhat.com> * fork.cc (fork_child): Move pinfo fixup later to attempt some minor gains from concurrency with cythread::init.2002-10-18 Christopher Faylor <cgf@redhat.com> * dcrt0.cc (dll_crt0_1): Initialize cygwin threads here only when not forking. * fork.cc (fork_child): Initialize cygwin thread later in process to avoid allocating memory for thread stacks. * shared.cc (open_shared): Issue warning if NT and shared segment is relocated.2002-10-18 Christopher Faylor <cgf@redhat.com> * cygthread.cc: Bump number of cygthreads up to accommodate applications which use ttys.2002-10-18 Christopher Faylor <cgf@redhat.com> * fork.cc (fork_child): Move mmap initialization. * shared.cc (shared_info::heap_chunk_size): Store info as megabytes. Search HKEY_LOCAL_MACHINE as well as HKEY_CURRENT_USER. * shared_info.h (shared_info::initial_heap_size): Change element name to reflect new functionality. * strace.cc (strace::hello): Report on initial heap size.2002-10-18 Thomas Pfaff <tpfaff@gmx.net> * thread.cc (verifyable_object_isvalid): Test for a valid object pointer before testing for static ptr.2002-10-17 Christopher Faylor <cgf@redhat.com> * dtable.cc (dtable::init_std_file_from_handle): Force "devices" to always be in binary mode. Temporary fix until ssh is rebuilt?2002-10-17 Christopher Faylor <cgf@redhat.com> * dtable.cc (dtable::set_file_pointers_for_exec): New function. * dtable.h (dtable::set_file_pointers_for_exec): Declare new function. * spawn.cc (spawn_guts): Call dtable::set_file_pointers_for_exec to set pointers to EOF when execing non-cygwin applications.2002-10-17 Robert Collins <rbtcollins@hotmail.com> * thread.h (pthread_mutex::isGoodInitializerOrBadObject): Declare. * thread.cc (pthread_mutex::isGoodInitializerOrBadObject): Implement. (pthread_mutex::init): Use isGoodInitializerOrBadObject to avoid unneeded SEGV's during debugging.2002-10-17 Thomas Pfaff <tpfaff@gmx.net> * thread.cc (verifyable_object_isvalid): Test for static object first.2002-10-16 Christopher Faylor <cgf@redhat.com> * fhandler_tty.cc (fhandler_tty_slave::read): Attempt #527 to properly implement VMIN/VTIME.2002-10-15 Christopher Faylor <cgf@redhat.com> * shared.cc (open_shared): Revert to "old" method for shared memory
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -