?? changelog-2001
字號:
* fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file): Define new method which passes devtype through. (fhandler_disk_file::open): Tweak debug output. (fhandler_disk_file::opendir): Nuke first argument. Use info from path_conv and class rather than calling fstat. (fhandler_cygdrive::set_drives): New method. (fhandler_cygdrive::iscygdrive_root): New method. (fhandler_cygdrive::opendir): New method. (fhandler_cygdrive::readdir): New method. (fhandler_cygdrive::telldir): New method. (fhandler_cygdrive::seekdir): New method. (fhandler_cygdrive::rewinddir): New method. (fhandler_cygdrive::closedir): New method. (fhandler_cygdrive::fstat): New method. * path.cc (iscygdrive_device): Assume cygdriveness is already verified. (path_conv::check): Treat FH_CYGDRIVE "method" as a special case, setting file attributes as needed. (mount_info::conv_to_win32_path): Allow stand-alone /cygdrive, meaning "the directory which contains all of the drives on the system". (fillout_mntent): Use cyg_tolower for conversions. (mount_info::cygdrive_win32_path): Replace unused argument with unit number. * shared_info.h (mount_info::cygdrive_win32_path): Reflect argument change.2001-11-21 Christopher Faylor <cgf@redhat.com> * Makefile.in (DLL_OFILES): Add fhandler_disk_file.o. * cygheap.h (cygheap_fdnew::operator =): New operator. * dir.cc: Add invalid struct checking throughout. Use methods for all directory manipulation throughout. * fhandler.cc: Move fhandler_disk_file stuff to own file. (fhandler_base::opendir): New method. (fhandler_base::readdir): New method. (fhandler_base::telldir): New method. (fhandler_base::seekdir): New method. (fhandler_base::rewinddir): New method. (fhandler_base::closedir): New method. * fhandler_disk_file.cc: New file. * fhandler.h (fhandler_base): Declare new virtual methods. (fhandler_disk_file): Ditto. (fhandler_cygdrive): New class. * path.cc (conv_path_list): Use strccpy to break apart path.2001-11-17 Nick Duffek <nick@duffek.com> * path.cc (conv_path_list): Copy source paths before modifying them.2001-11-17 Corinna Vinschen <corinna@vinschen.de> * fhandler_raw.cc (fhandler_dev_raw::clear): Don't reset unit. * fhandler_tape.cc (fhandler_dev_tape::fhandler_dev_tape): Add debug output.2001-11-15 Egor Duda <deo@logos-m.ru> * include/pthread.h (PTHREAD_COND_INITIALIZER): Define. * thread.cc (__pthread_cond_destroy): Add support for PTHREAD_COND_INITIALIZER. (__pthread_cond_init): Ditto. (__pthread_cond_broadcast): Ditto. (__pthread_cond_signal): Ditto. (__pthread_cond_dowait): Ditto. (__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly, don't return error when it's passed as parameter. * winsup.h (check_null_invalid_struct): Call correct function.2001-11-14 Christopher Faylor <cgf@redhat.com> * exceptions.cc: Add stdlib.h include for alloca declaration. * poll.cc: Ditto. * termios.cc: Ditto.2001-11-14 Christopher Faylor <cgf@redhat.com> * syscalls.cc (_write): Only allow zero length when fd is valid.2001-11-14 Corinna Vinschen <corinna@vinschen.de> * fhandler.cc (fhandler_disk_file::fstat): Add setting access time and creation time to last modification time for files on filesystems not supporting multiple timestamps. (fhandler_disk_file::fstat_helper): Set access time and creation time in incoming Windows structure instead of in stat buf to avoid incorrectly overwriting Epoch timestamp.2001-11-14 Corinna Vinschen <corinna@vinschen.de> * winsup.h: Remove alloca definition since it's now defined through inclusion of stdlib.h. * lib/cygwin_crt0.c: Ditto.2001-11-13 Christopher Faylor <cgf@redhat.com> * syscalls.cc (_write): Allow zero length as per SUSv2.2001-11-13 Corinna Vinschen <corinna@vinschen.de> * dir.cc (mkdir): Add HIDDEN file attribute if file has leading dot and HIDDEN_DOT_FILES is defined. * fhandler.cc (fhandler_base::open): Ditto. * path.cc (symlink): Ditto. * syscalls.cc (_rename): Ditto and remove HIDDEN file attribute if new filename does not begin with a dot.2001-11-12 Christopher Faylor <cgf@redhat.com> * fhandler_console.cc (fhandler_console::read): Revert 2001-10-23 change to only honor keydown events.2001-11-11 Christopher Faylor <cgf@redhat.com> * include/cygwin/version.h: Bump version to 1.3.6.2001-11-10 Christopher Faylor <cgf@redhat.com> * dtable.cc (dtable::build_fhandler): Don't increment console fd count if new operation fails. Increment fork_fixup field here. (dtable::dup2): Don't increment fork_fixup field here. * net.cc (fdsock): Ditto.2001-11-08 Corinna Vinschen <corinna@vinschen.de> * select.cc: Set errno using set_sig_errno() throughout. * signal.cc (signal): Always set SA_RESTART flag. * syscalls.cc (_read): Revert previous patch.2001-11-08 Corinna Vinschen <corinna@vinschen.de> * select.cc (fhandler_tty_slave::ready_for_read): Return 0 on EBADF. * syscalls.cc (_read): If ready_for_read() failed, save errno from being overwritten by signal handler call.2001-11-07 Corinna Vinschen <corinna@vinschen.de> * lib/getopt.c (getopt_internal): Reset optind to 1 only if optreset is not set.2001-11-06 Christopher Faylor <cgf@redhat.com> * select.cc (fhandler_tty_slave::ready_for_read): Correct inverted not_open test.2001-11-05 Christopher Faylor <cgf@redhat.com> * include/cygwin/version.h: Bump version to 1.3.5.2001-11-05 Corinna Vinschen <corinna@vinschen.de> * mmap.cc (mmap_record::find_empty): Add input parameter check.2001-11-04 Christopher Faylor <cgf@redhat.com> * dtable.cc (dtable::build_fhandler): Fix debug_printf to avoid SEGV due to incorrect parameter placement.2001-11-04 Christopher Faylor <cgf@redhat.com> * fhandler.h (fhandler_pipe::broken_pipe): Renamed from saweof. (fhandler_pipe::set_eof): Reflect above change. * pipe.cc (fhandler_pipe::fhandler_pipe): Ditto. (fhandler_pipe::read): Ditto. (fhandler_pipe::hiteof): Ditto.2001-11-04 Christopher Faylor <cgf@redhat.com> * pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe" test.2001-11-04 Christopher Faylor <cgf@redhat.com> * select.cc: Add more comments throughout. Use bool 'true' where appropriate throughout. (fhandler_socket::select_read): Remove duplicate setting for *_ready which inadvertently overrode previous, correct setting. (fhandler_socket::select_write): Ditto.2001-11-03 Christopher Faylor <cgf@redhat.com> * select.cc (verify_console): New function. (verify_windows): Ditto. (fhandler_console::select_read): Really do need to verify that there is something to read. (fhandler_console::select_windows): Ditto.2001-11-03 Christopher Faylor <cgf@redhat.com> * fhandler.h (fhandler_base::ready_for_read): Remove unused argument. (fhandler_tty_slave::ready_for_read): Ditto. (select_record): Remove poll, initialize peek. * select.cc: Remove all poll functions, throughout. Change second argument of peek_* functions to 'bool' throughout. Specifically initialize *_ready variables throughout. (select_stuff::poll): Subsume previous poll functionality. (peek_pipe): Don't grab guard mutex when in select loop. select()/read() is racy by design so there is no need to worry about a race in select(). (fhandler_base::ready_for_read): Remove unused argument. (fhandler_tty_slave::ready_for_read): Ditto. * syscalls.cc (_read): Eliminate third argument in ready_for_read call.2001-11-03 Corinna Vinschen <corinna@vinschen.de> * security.cc (get_supplementary_group_sidlist): New function. (get_group_sidlist): Call get_supplementary_group_sidlist() to retrieve list of supplementary groups SIDs from /etc/group and add them to the user's group list.2001-11-03 Christopher Faylor <cgf@redhat.com> * fhandler.cc (fhandler_base::read): Return just read ahead characters if slow device. * fhandler.h (fhandler_base::set_eof): New virtual method. (fhandler_pipe::set_eof): New method. * pipe.cc (fhandler_pipe::fhandler_pipe): Clear saweof flag. (fhandler_pipe::read): Return immediately if hit eof. (fhandler_pipe::hit_eof): Return true if saweof flag is set. * select.cc (peek_pipe): Don't call PeekNamedPipe if we couldn't grab the guard mutex.2001-11-02 Egor Duda <deo@logos-m.ru> * dll_init.h (class dll_list): Reorder functions to avoid compiler "can't inline" warnings. * security.h (class cygsid): Ditto. * sigproc.cc (get_proc_lock): Ditto. * sigproc.h (class sigframe): Ditto. * sync.h (class muto): Ditto.2001-11-02 Christopher Faylor <cgf@redhat.com> * fhandler.h (fhandler_base::get_guard): Actually MAKE virtual as previously indicated. * pipe.cc (make_pipe): Remove extraneous set_errno. * syscalls.cc (_open): Ditto. * select.cc (peek_pipe): Need to check that there is still something to read from the pipe after acquiring the mutex since another process/thread could have eaten the input before we got to acquiring the lock. (Thanks to Nick Duffek for this inspiration.)2001-11-01 Christopher Faylor <cgf@redhat.com> * fhandler.h: Change Windows 'BOOL's to c++ 'bool's for all variables. * select.cc (fhandler_base::ready_for_read): Set read_ready to zero prior to testing it or it will be uninitialized. * Makefile.in (CFLAGS): Move setting to Makefile.common.2001-11-01 Christopher Faylor <cgf@redhat.com> * cygheap.h (cygheap_fdmanip::isopen): Set appropriate errno if fd not open. * select.cc (fhandler_base::ready_for_read): Release an open guard mutex when exiting with an error condition. * syscalls.cc (_read): Check frequently for closed fd as a kludge until something better is invented.2001-11-01 Christopher Faylor <cgf@redhat.com> * dtable.cc (dtable::build_fhandler): Issue internal error on unknown device. * fhandler.cc (fhandler_base::close): Show both name and handle in debugging output. * fhandler.h (fhandler_base::get_guard): New virtual method. (fhandler_pipe::get_guard): New method. (fhandler_socket::ready_for_read): Delete declaration. (fhandler_pipe::ready_for_read): Ditto. (fhandler_serial::ready_for_read): Ditto. (fhandler_console::ready_for_read): Ditto. (fhandler_tty_common::ready_for_read): Ditto. (fhandler_windows::ready_for_read): Ditto. (struct select_record::peek): Declare new method. * select.cc (MAKEready): Delete. (peek_pipe): Use get_guard method to retrieve potential guard mutex handle. (fhandler_base::ready_for_read): Rewrite as generic ready-for-read handler. Should only be called for "slow" devices. (fhandler_socket::ready_for_read): Delete definition. (fhandler_pipe::ready_for_read): Ditto. (fhandler_serial::ready_for_read): Ditto. (fhandler_console::ready_for_read): Ditto. (fhandler_tty_common::ready_for_read): Ditto. (fhandler_windows::ready_for_read): Ditto. (fhandler_pipe::select_read): Fill in new peek record in select_record structure. (fhandler_console::select_read): Ditto. (fhandler_tty_common::select_read): Ditto. (fhandler_serial::select_read): Ditto. (fhandler_socket::select_read): Ditto. (fhandler_socket::select_read): Ditto. (fhandler_tty_slave::ready_for_read): Check for tty not open. Set errnos appropriately. * syscalls.cc (_read): Allow ready_for_read to set errno. * pinfo.cc (pinfo::init): Return spawn/NO_WAIT process as valid if it is initializing. * sigproc.cc (getsem): Adjust wait for process to initialize downward to avoid huge waits.2001-10-31 Christopher Faylor <cgf@redhat.com> * environ.cc: Set reset_com to false to mimic linux behavior more closely.2001-10-31 Corinna Vinschen <corinna@vinschen.de> * dtable.cc (dtable::vfork_child_dup): Revert impersonation before duplicating fhandler.2001-10-30 Christopher Faylor <cgf@redhat.com> * exceptions.cc (signal_exit): Weight the odds against the main thread running when signal thread is exiting.2001-10-30 Christopher Faylor <cgf@redhat.com> * sigproc.cc (sigproc_terminate): Don't signal main thread when exiting. * sigproc.h (sigframe): Decorate some methods with `inline'. (new_muto): Coerce pointer to new to void *.2001-10-30 Christopher Faylor <cgf@redhat.com> * fhandler.cc (fhandler_base::fork_fixup): Pass old handle to setclexec_pid.2001-10-30 Christopher Faylor <cgf@redhat.com> * cygheap.h (cygheap_fdmanip::cygheap_fdmanip): Clear fh. (cygheap_fdmanip::isopen): New method. * syscalls.cc (_read): Avoid accessing closed fd. * path.h (fe_types): New enum. (path_conv::set_path): New method. (find_exec): Change null_if_not_found argument to something more generic. * spawn.cc (find_exec): Default to returning the POSIX path rather than the windows path, unless instructed otherwise. (spawn_guts): Force call to find_exec to use native paths. * dlfcn.cc (check_path_access): Accommodate new find_exec arguments. * environ.h (win_env::get_posix): New method.2001-10-30 Corinna Vinschen <corinna@vinschen.de> * fhandler_socket.cc (fhandler_socket::close): Add error handling.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -