Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2010-04-26 * mount.h (fs_info::inited): New inline method.Corinna Vinschen
* path.cc (path_conv::check): Clear filesystem info if following a symlink. Use new fs_info::inited method to check if FS info is already available. (symlink_info::check): Drop fs_update_called. Use fs_info::inited method instead. Streamline test for leading space and trailing dot or space. Add comments.
2010-04-23 * path.h (get_nt_native_path): Add third parameter to declaration andCorinna Vinschen
declare with regparms. * path.cc (get_nt_native_path): Add third parameter to allow conversion of leading and trailing dots and spaces on filesystems only supporting filenames following DOS rules. (path_conv::get_nt_native_path): Call get_nt_native_path according to fs.has_dos_filenames_only flag. (getfileattr): Accommodate new parameter to get_nt_native_path. (symlink_info::check): Revamp fs_update_called handling to call fs.update only once per call. Call get_nt_native_path according to fs.has_dos_filenames_only flag. Streamline filesystem dependent code not to be called more than once unnecessarily. Drop code tweaking incoming path for broken filesystems only allowing DOS pathnames. Rely on changed get_nt_native_path instead. * mount.cc (fillout_mntent): Accommodate new parameter to get_nt_native_path. * strfuncs.cc (tfx_rev_chars): New conversion table with comment. (sys_cp_wcstombs): Use tfx_rev_chars rather than tfx_chars.
2010-04-22 * path.cc (symlink_info::check): Make sure to restart only once.Corinna Vinschen
2010-04-22 * mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCECorinna Vinschen
from mask. Expand the comment a bit. (WIN_FAT_FLAGS): New define. (FS_IS_WINDOWS_FAT): New macro. (fs_info::update): Handle remote FS faking to be FAT. Subsume under CIFS. Check for NWFS and has_buggy_basic_info only for remote filesystems. Add check for has_dos_filenames_only. * mount.h (class fs_info): Add has_dos_filenames_only status flag. Implement accessors. * path.cc (symlink_info::check): Rearrange variable definitions to clear them up. Add a restart label to allow a clean restart within the method. Add a check for broken filesystems only allowing DOS pathnames in case we encounter a STATUS_OBJECT_NAME_NOT_FOUND status. If all checks point to one of that, restart method with tweaked incoming path. Add lengthy comments to explain what we do.
2010-04-22 * path.cc (symlink_info::check): Fix a comment.Corinna Vinschen
2010-04-22 * cygserver.sgml: Note the fact that slave tty/pty handle dispersal isCorinna Vinschen
unsed as of Cygwin 1.7.6. * new-features.sgml (ov-new1.7.6): New section. Add tty/pty and setrlimit changes.
2010-04-21 * fhandler_termios.cc (tcinit): Remove previously applied change.Corinna Vinschen
Replace with... * fhandler_tty.cc (fhandler_tty_slave::init): Become process group leader if called from dtable::init_std_file_from_handle. Add comment to explain.
2010-04-21 * dtable.cc (dtable::init_std_file_from_handle): Set access mask forCorinna Vinschen
the slave side of ttys explicitely. Explain why.
2010-04-20* path.cc (cygwin_create_path): Free memory on error.Christopher Faylor
2010-04-20 * cygheap.h (struct init_cygheap): Add rlim_core member.Corinna Vinschen
* cygheap.cc (cygheap_init): Initialize rlim_core to RLIM_INFINITY. * exceptions.cc (stackdump): Drop extern declaration of rlim_core. Refer to cygheap->rlim_core instead. (exception::handle): Disable stackdumping if cygheap->rlim_core is 0. Don't set WCOREDUMP flag in exit code, if cygheap->rlim_core is 0. (sigpacket::process): Ditto. * resource.cc (rlim_core): Remove. (getrlimit): Fetch RLIMIT_CORE value from cygheap->rlim_core. (setrlimit): Store RLIMIT_CORE value in cygheap->rlim_core.
2010-04-20* cygerrno.h: Nevermind.Christopher Faylor
2010-04-20* transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.Christopher Faylor
2010-04-20* cygerrno.h: Protect use of NTSTATUS for only when we need it.Christopher Faylor
* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.
2010-04-20* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.Christopher Faylor
2010-04-20 * fhandler_tty.cc (fhandler_tty_slave::fch_set_sd): Remove commented outCorinna Vinschen
code.
2010-04-19 * autoload.cc (GetNamedPipeClientProcessId): Define.Corinna Vinschen
* fhandler.h (fhandler_tty_slave::fch_open_handles): Declare private. (fhandler_tty_slave::fch_close_handles): Ditto. (fhandler_tty_slave::cygserver_attach_tty): Drop declaration. (fhandler_tty_slave::fstat): Declare public. (fhandler_tty_slave::fchmod): Declare public. (fhandler_tty_slave::fchown): Declare public. (class fhandler_pty_master): Add master_ctl handle. (fhandler_pty_master::pty_master_thread): Declare public. * fhandler_termios.cc (fhandler_termios::tcinit): If the process is started from a non-Cygwin process, make it tty process group leader. * fhandler_tty.cc: Throughout accommodate additional security related arguments in calls to functions creating or opening objects. (close_maybe): Move to start of file to reuse it in other methods. (struct pipe_request): Define. (struct pipe_reply): Define. (fhandler_tty_slave::open): Throughout, try to open synchronization objects with MAXIMUM_ALLOWED permissions. Drop call to cygserver. Try to duplicate pipe handles via master_ctl pipe if duplicating directly doesn't work. (fhandler_tty_slave::cygserver_attach_tty): Remove. (fhandler_tty_slave::init): Close unused incoming pipe handle. (fhandler_pty_master::close): Send exit message to master control thread and close master_ctl handle. (fhandler_pty_master::pty_master_thread): New method, implementing the master control thread. (pty_master_thread): Static helper to start master control thread. (fhandler_pty_master::setup): Simplify creating pipe inheritance. Make sure we're the one creating the input_available_event. Add comment to explain why. Create master_ctl pipe and start master control thread. Close master_ctl handle in case of error. * security.cc (alloc_sd): Add code to handle tty objects. Add comments to explain what exactly is required. (get_object_sd): New function. (get_object_attribute): New function. (create_object_sd_from_attribute): New function. (set_object_sd): New function. (set_object_attribute): New function. (set_file_attribute): Change attribute type to mode_t. * security.h (set_file_attribute): Change attribute type to mode_t. (get_object_sd): Declare. (get_object_attribute): Declare. (create_object_sd_from_attribute): Declare. (set_object_sd): Declare. (set_object_attribute): Declare. * tty.cc (tty::slave_alive): Implement directly instead of via alive. (tty::exists): Open mutex handle with READ_CONTROL access. (tty::alive): Remove. (tty::open_output_mutex): Convert to inline method. (tty::open_input_mutex): Ditto. (tty::open_mutex): Take additional ACCESS_MASK parameter for the mutex open access mask. (tty::open_inuse): New method. (tty::create_inuse): Take PSECURITY_ATTRIBUTES parameter. Drop fmt name parameter. Always create TTY_SLAVE_ALIVE event. (tty::get_event): Take additional PSECURITY_ATTRIBUTES parameter for CreateEvent. * tty.h (class tty): Change declarations according to aforementioned changes. (tty::open_output_mutex): Implement as inline method. (tty::open_input_mutex): Ditto.
2010-04-19 * dtable.cc (dtable::init_std_file_from_handle): Set dev toCorinna Vinschen
valid content for ptys. Remove setting FILE_CREATE_PIPE_INSTANCE in access flags since it's not needed. Set the access mask for kernel objects according to what's returned by NtQueryInformationFile, info class FileAccessInformation.
2010-04-19 * syscalls.cc (rename): On STATUS_ACCESS_VIOLATION, retry to openCorinna Vinschen
for DELETE until the STATUS_ACCESS_VIOLATION goes away. Add comment to explain why.
2010-04-17 * sec_helper.cc (get_null_sd): Make static. Use PSECURITY_DESCRIPTORCorinna Vinschen
instead of SECURITY_DESCRIPTOR *. (sec_acl): Fix fomratting. * security.h (get_null_sd): Drop declaration.
2010-04-16 * cygerrno.h (seterrno_from_nt_status): Declare.Corinna Vinschen
(__seterrno_from_nt_status): Call seterrno_from_nt_status. * errno.cc (seterrno_from_win_error): Set errno without calling set_errno to avoid packing strace output with errno messages. (seterrno_from_nt_status): New function to print NT status as well as resulting Windows error.
2010-04-15 * kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESSCorinna Vinschen
access mask. (CreateMutexW): Create mutex object with MUTEX_ALL_ACCESS access mask. (CreateSemaphoreW): Create semaphore object with SEMAPHORE_ALL_ACCESS access mask.
2010-04-15 * sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, ifCorinna Vinschen
available. Add comments.
2010-04-13 * fhandler_socket.cc (get_inet_addr): Only test the file for being aCorinna Vinschen
socket after opening it. Retry if opening failed with sharing violation. Explain why we do this. (fhandler_socket::bind): Create file with no sharing allowed.
2010-04-13 * cygheap.cc (cwcsdup): Fix allocation size to accommodate sizeof WCHAR.Corinna Vinschen
(cwcsdup1): Ditto.
2010-04-12 * include/cygwin/version.h: Bump DLL minor version number to 5.Corinna Vinschen
2010-04-12 * posix.sgml (std-notes): Improve lseek description.Corinna Vinschen
2010-04-12 * fhandler_tty.cc (fhandler_tty_slave::open): Add code to duplicateCorinna Vinschen
handles within a single process to simplify openpty case. (fhandler_tty_slave::cygserver_attach_tty): Correctly send Windows PID to cygserver, rather than the Cygwin PID.
2010-04-12* cygwin.dsl: Remove comments.Christopher Faylor
2010-04-11 * new-features.sgml (ov-new1.7.5): New section.Corinna Vinschen
2010-04-11 * fhandler.h (class dev_console): Add backspace_keycode member.Corinna Vinschen
* fhandler_console.cc (fhandler_console::get_tty_stuff): Initialize backspace_keycode with CERASE. (fhandler_console::read): Return dev_state->backspace_keycode if the backspace key is pressed. (fhandler_console::char_command): Implement DECBKM escape sequence.
2010-04-11* cygwin-api.in.sgml: Update to DocBook SGML 4.5 DTD.Christopher Faylor
* cygwin-ug-net.in.sgml: Ditto. * cygwin-ug.in.sgml: Ditto. * faq-sections.xml: Ditto. * faq.xml: Ditto.
2010-04-10* fhandler_console.cc (fhandler_console::read): Default to sending CERASEChristopher Faylor
character if termios VERASE field is zero. (fhandler_console::fixup_after_fork_exec): Avoid a spurious debug message.
2010-04-10update copyrightChristopher Faylor
2010-04-10* mkvers.sh: Use modern date formats to construct the date.Christopher Faylor
2010-04-10 * nlsfuncs.cc (__set_lc_time_from_win): Actually setCorinna Vinschen
_time_locale->md_order to the D_MD_ORDER value written to the buffer.
2010-04-09* path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid aChristopher Faylor
memory leak. * path.h (path_conv::operator =): Just use cstrdup to allocate normalized_path, avoiding attempt to free a pointer which is allocated in another pc.
2010-04-07 * include/cygwin/version.h: Bump DLL minor version number to 4.Corinna Vinschen
2010-04-06 * thread.cc (valid_sched_parameters): Declare extern here.Corinna Vinschen
(sched_set_thread_priority): Ditto.
2010-04-06 * include/sched.h: Remove, overruled by newlib file.Corinna Vinschen
* include/sys/sched.h: Ditto.
2010-04-06* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return valueChristopher Faylor
change to setup_overlapped.
2010-04-03* fhandler.h (fhandler_base::has_ongoing_io): Declare virtual method.Christopher Faylor
* select.cc (peek_pipe): Reorganize slightly. Don't attempt to check a handle if it has ongoing I/O. (select_pipe_info::select_pipe_info): Delete definition. (select_pipe_info::~select_pipe_info): Delete definition. (thread_pipe): Get rid of WFMO call. Reorganize loop. (pipe_cleanup): Remove dependence on destructor. (thread_serial): Reorganize loop. * select.h (select_pipe_info): Empty this class since it no longer has any special requirements (for now). * syscalls.cc (readv): Remove an unneeded debug printf.
2010-04-02* fhandler.h (fhandler_base::setup_overlapped): Delete virtual declaration.Christopher Faylor
(fhandler_base::destroy_overlapped): Ditto. (fhandler_base_overlapped): Remove now-unneeded friend. (fhandler_base_overlapped::setup_overlapped): Return int, remove parameter. (fhandler_base_overlapped::get_overlapped): Return reference. (fhandler_base_overlapped::fhandler_base_overlapped): Be more assertive about zeroing everything. (fhandler_base_overlapped::fixup_after_fork): Declare new function. (fhandler_base_overlapped::fixup_after_exec): Ditto. (fhandler_base_overlapped::dup): Ditto. (fhandler_base_overlapped::close): Ditto. * fhandler_fifo.cc (fhandler_fifo::dup): Call fhandler_base_overlapped::dup rather than fhandler_base::dup. * pipe.cc (fhandler_pipe::dup): Ditto. (fhandler_pipe::init): Accommodate change in setup_overlapped arguments for "opened_properly" case.
2010-04-02* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Properly initializeChristopher Faylor
overlapped part of this class.
2010-04-02 * fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.Corinna Vinschen
2010-04-02fix typoChristopher Faylor
2010-04-02* select.h (select_pipe_info::add_watch_handle): Delete declaration.Christopher Faylor
* select.cc (select_pipe_info::add_watch_handle): Delete deinition. (fhandler_pipe::select_read): Delete call to add_watch_handle. (fhandler_pipe::select_write): Ditto. (fhandler_pipe::select_except): Ditto.
2010-04-02* dtable.cc (dtable::init_std_file_from_handle): Avoid adding fh to fdtab untilChristopher Faylor
we know that it is good. * fhandler_tty.cc (fhandler_tty_slave::fhandler_tty_slave): Handle error conditions more consistently. Avoid handle leakage on error.
2010-04-02 * fhandler_tty.cc (fhandler_tty_slave::close): Avoid potential crashCorinna Vinschen
if former open call has been unsuccessful.
2010-04-02 * nlsfuncs.cc: Fix indentation.Corinna Vinschen
2010-04-02 * nlsfuncs.cc (rebase_locale_buf): New helper function to rebaseCorinna Vinschen
function pointers in locale structures. Explain why this is necessary. (__set_lc_time_from_win): Use rebase_locale_buf after realloc. (__set_lc_numeric_from_win): Ditto. (__set_lc_monetary_from_win): Ditto.