ef3df0bb7d* new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount options. * pathnames.sgml (mount-table): Ditto. (pathnames-specialchars): Change description order. Add paragraph to explain new behaviour in terms of leading spaces and trailing dots and spaces in pathnames.
Corinna Vinschen
2010-04-29 10:58:17 +0000
3db442e639* utils.sgml (mount): Add description for "dos" and "ihash" mount options.
Corinna Vinschen
2010-04-29 10:53:31 +0000
a361b4715f* path.cc: Include sys/cygwin.h if built for mount(1). (struct opt): Add "dos" and "ihash" options. (from_fstab_line): Call cygwin_internal rather than read_flags if built for mount(1).
Corinna Vinschen
2010-04-29 10:39:35 +0000
5b4c992bf6* mount.cc (struct opt): Add "dos" and "ihash" options. (fillout_mntent): Ditto. * path.cc (path_conv::get_nt_native_path): Use path_conv's has_dos_filenames_only method. (path_conv::check): Add PATH_IHASH flag if FS has unreliable inode numbers. (symlink_info::check_shortcut): Or symlink flags to pflags. (symlink_info::check_sysfile): Ditto. Change test accordingly. (symlink_info::check_reparse_point): Ditto. (symlink_info::check_nfs_symlink): Ditto. (symlink_info::check): Check PATH_DOS flag in call to get_nt_native_path to utilize mount flag. Ditto in test for potential restarting. Set PATH_DOS if FS only allows DOS filename rules. * path.h (enum path_types): Add PATH_DOS and PATH_IHASH. (path_conv::hasgood_inode): Check PATH_IHASH instead of fs.hasgood_inode. (path_conv::has_dos_filenames_only): New method. * include/sys/mount.h (MOUNT_DOS): New mount flag. (MOUNT_IHASH): Ditto.
Corinna Vinschen
2010-04-29 10:38:05 +0000
a82a8dcb4e* mount.cc (oopts): Remove entirely. (usage): Call cygwin_internal (CW_LST_MNT_OPTS) to create list of mount options. (print_version): Fix copyright date. (main): Replace option processing loop with single call to cygwin_internal (CW_CVT_MNT_OPTS).
Corinna Vinschen
2010-04-29 08:50:23 +0000
a11a07231b* external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount flag parsing. Add CW_LST_MNT_OPTS case to allow mount flag listing. * mount.cc (fstab_read_flags): Rename from read_flags. Make externally available. Change input string to char ** to allow returning faulty option. Add flag for avoiding debug output. (fstab_list_flags): New function to create list of options. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CVT_MNT_OPTS and CW_LST_MNT_OPTS.
Corinna Vinschen
2010-04-29 08:47:44 +0000
f00bc469e2* mount.cc (compare_flags): New function. (read_flags): Replace loop with bsearch. Simplify error check.
Corinna Vinschen
2010-04-28 15:35:52 +0000
8f47a15cef* include/cygwin/version.h: Bump API minor version.
Corinna Vinschen
2010-04-28 10:20:34 +0000
22b6e8101e* locale.cc (print_lc_xxx_charset): Remove. (enum type_t): Change according to the fact that nl_langinfo now returns all locale category values. (lc_ctype_names): Add new category members. Redefine for exclusive nl_langinfo usage. (lc_numeric_names): Ditto. (lc_time_names): Ditto. (lc_collate_names): Ditto. (lc_monetary_names): Ditto. (lc_messages_names): Ditto. (print_lc): Change switch according to new type_t values.
Corinna Vinschen
2010-04-28 10:00:40 +0000
be764ea806* cygwin.din (__locale_mb_cur_max): Export. * nlsfuncs.cc (__getlocaleinfo): Drop conversion to multibyte. (__charfromwchar): New function to convert to multibyte. (__eval_datetimefmt): Convert to return wchar_t pointer. Work on wide char string. (__set_lc_time_from_win): Take additional pointer to "C" category info to accommodate C.foo locales. Rework to fill wide char members in category info. (__set_lc_ctype_from_win): New function. (__set_lc_numeric_from_win): Take additional pointer to "C" category info to accommodate C.foo locales. Rework to fill wide char members in category info. (__set_lc_monetary_from_win): Ditto. (__set_lc_messages_from_win): Ditto. (__get_current_collate_codeset): New function, called from nl_langinfo. * include/cygwin/config.h (__HAVE_LOCALE_INFO_EXTENDED__): Define.
Corinna Vinschen
2010-04-28 10:00:24 +0000
d47d5b850bExtend locale support to maintain wide char values of native strings if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/include/langinfo.h (enum __nl_item): New type. Define all native values accessible through nl_langinfo. Define previously existing POSIX-compatible values as macros as well. * libc/include/stdlib.h (__mb_cur_max): Drop declaration. (__locale_mb_cur_max): Declare. (MB_CUR_MAX): Re-define calling __locale_mb_cur_max. * libc/locale/Makefile.am (ELIX_SOURCES): Add lctype.c. * libc/locale/Makefile.in: Regenerate. * libc/locale/lctype.c: New file to define and load LC_CTYPE category. * libc/locale/lctype.h: New file, matching header. * libc/locale/lmessages.c (_C_messages_locale): Add default values for wide char members. (__messages_load_locale): Add _C_messages_locale in call to __set_lc_messages_from_win. * libc/locale/lmessages.h (struct lc_messages_T): Add wide char members. * libc/locale/lmonetary.c (_C_monetary_locale): Add default values for wide char members. (__monetary_load_locale): Add _C_monetary_locale in call to __set_lc_monetary_from_win. * libc/locale/lmonetary.h (struct lc_monetary_T): Add wide char members. Add numerical values for international currency formatting per POSIX-1.2008, if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/locale/lnumeric.c (_C_numeric_locale): Add default values for wide char members. (__numeric_load_locale): Add _C_numeric_locale in call to __set_lc_numeric_from_win. * libc/locale/lnumeric.h (struct lc_numeric_T): Add wide char members. * libc/locale/locale.c (loadlocale): Return doing nothing if category locale didn't change. Convert category if chain to switch statement. Call __ctype_load_locale in LC_CTYPE case. (__locale_charset): Add (but disable for now) returning codeset from __get_current_ctype_locale. (__locale_mb_cur_max): Add (but disable for now) returning mb_cur_max from __get_current_ctype_locale. (__locale_msgcharset): Add returning codeset from __get_current_messages_locale. (_localeconv_r): Accommodate int_XXX values. * libc/locale/nl_langinfo.c (nl_ext): New array to define what is to be returned for non-POSIX values. (nl_Langinfo): Return correct codeset for each locale category. Return extended values if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/locale/timelocal.c (_C_time_locale): Add default values for wide char members. (__time_load_locale): Add _C_time_locale in call to __set_lc_time_from_win. * libc/locale/timelocal.h (struct lc_time_T): Add wide char members. * libc/stdio/vfwprintf.c (_VFWPRINTF_R): Use wide char decimal point and thousands_sep if __HAVE_LOCALE_INFO_EXTENDED__ is defined. * libc/time/strftime.c: Rework to accommodate availability of wide char strings in LC_TIME category if __HAVE_LOCALE_INFO_EXTENDED__ is defined.
Corinna Vinschen
2010-04-28 09:59:37 +0000
9b53b52a80* spawn.cc (find_exec): Use the first detected errno when lookup fails.
Christopher Faylor
2010-04-27 23:06:48 +0000
0f6697b373* include/regex.h: Include _ansi.h to avoid missing out on preprocessor macros in sys/_types.h.
Corinna Vinschen
2010-04-27 15:18:14 +0000
32c2e09bba* configure.ac (--enable-gold): Support both, both/gold and both/bfd to add gold to configdirs without removing ld. * configure: Regenerated.
Nick Clifton
2010-04-27 14:24:37 +0000
67435a05admerge from gcc
DJ Delorie
2010-04-26 18:04:23 +0000
002a34fa14* mount.h (fs_info::inited): New inline method. * 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.
Corinna Vinschen
2010-04-26 13:48:04 +0000
3134b8ad36include/elf/ * internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses. Invert logic to clarify test for .tbss. (ELF_IS_SECTION_IN_SEGMENT): Rename to.. (ELF_SECTION_IN_SEGMENT_1): ..this. Add check_vma param. Protect macro args with parentheses. (ELF_SECTION_IN_SEGMENT): Define. (ELF_IS_SECTION_IN_SEGMENT_FILE): Delete. (ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete. bfd/ * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT throughout file. (assign_file_positions_for_load_sections): Modify section in segment warning to ignore overlay vmas. * elf32-spu.c (spu_elf_object_p): Replace use of ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT. binutils/ * readelf.c (process_program_headers): Replace use of ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
Alan Modra
2010-04-24 01:05:22 +0000
a39be4e22dmerge from gcc
DJ Delorie
2010-04-24 01:03:15 +0000
8802178fdd* path.h (get_nt_native_path): Add third parameter to declaration and 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.
Corinna Vinschen
2010-04-23 11:07:35 +0000
b12d6d10ad* path.cc (symlink_info::check): Make sure to restart only once.
Corinna Vinschen
2010-04-22 17:42:18 +0000
6ff06a0726* mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE 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.
Corinna Vinschen
2010-04-22 17:33:28 +0000
ebff53b339* cygserver.sgml: Note the fact that slave tty/pty handle dispersal is unsed as of Cygwin 1.7.6. * new-features.sgml (ov-new1.7.6): New section. Add tty/pty and setrlimit changes.
Corinna Vinschen
2010-04-22 09:05:37 +0000
05c98e076e* fhandler_termios.cc (tcinit): Remove previously applied change. 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.
Corinna Vinschen
2010-04-21 19:36:40 +0000
3ee7760b3egas/testsuite: * gas/tic6x/insns-c674x.s, gas/tic6x/insns-c674x.d: Also test "b .S2 b3".
Joseph Myers
2010-04-21 18:56:45 +0000
179bee57db* dtable.cc (dtable::init_std_file_from_handle): Set access mask for the slave side of ttys explicitely. Explain why.
Corinna Vinschen
2010-04-21 18:44:39 +0000
27f1db48c7* path.cc (cygwin_create_path): Free memory on error.
Christopher Faylor
2010-04-20 14:32:29 +0000
9e40fe8112* cygheap.h (struct init_cygheap): Add rlim_core member. * 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.
Corinna Vinschen
2010-04-20 10:44:52 +0000
2ac91a1483* cygerrno.h: Nevermind.
Christopher Faylor
2010-04-20 03:45:27 +0000
c0f1ded4c4* transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
Christopher Faylor
2010-04-20 03:44:38 +0000
e1b57fc2b9* cygerrno.h: Protect use of NTSTATUS for only when we need it. * lib/_cygwin_crt0_common.cc: Remove unneeded declarations.
Christopher Faylor
2010-04-20 03:32:37 +0000
53755c55a7* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.
Christopher Faylor
2010-04-20 03:30:32 +0000
cc01c77f7e* autoload.cc (GetNamedPipeClientProcessId): Define. * 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.
Corinna Vinschen
2010-04-19 19:52:43 +0000
02a33ea774* dtable.cc (dtable::init_std_file_from_handle): Set dev to 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.
Corinna Vinschen
2010-04-19 16:25:11 +0000
bc8a5a9f66* syscalls.cc (rename): On STATUS_ACCESS_VIOLATION, retry to open for DELETE until the STATUS_ACCESS_VIOLATION goes away. Add comment to explain why.
Corinna Vinschen
2010-04-19 08:09:51 +0000
b5efa8990f* sec_helper.cc (get_null_sd): Make static. Use PSECURITY_DESCRIPTOR instead of SECURITY_DESCRIPTOR *. (sec_acl): Fix fomratting. * security.h (get_null_sd): Drop declaration.
Corinna Vinschen
2010-04-17 15:51:09 +0000
7cdcd90ca1* cygerrno.h (seterrno_from_nt_status): Declare. (__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.
Corinna Vinschen
2010-04-16 15:42:29 +0000
8c613014ffsim: drop PARAMS
Michael Frysinger
2010-04-13 20:39:44 +0000
110429f3f1sim: constify sim_write source buffer
Michael Frysinger
2010-04-13 20:28:19 +0000
0ef4bb7c50* fhandler_socket.cc (get_inet_addr): Only test the file for being a 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.
Corinna Vinschen
2010-04-13 19:56:30 +0000
42e9cefd71* fhandler_tty.cc (fhandler_tty_slave::open): Add code to duplicate 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.
Corinna Vinschen
2010-04-12 13:28:06 +0000
7092cadf76* cygwin.dsl: Remove comments.
Christopher Faylor
2010-04-11 22:15:59 +0000
5e64c96949* new-features.sgml (ov-new1.7.5): New section.
Corinna Vinschen
2010-04-11 19:38:35 +0000
0250709234* fhandler.h (class dev_console): Add backspace_keycode member. * 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.
Corinna Vinschen
2010-04-11 19:11:17 +0000
1d6adee8ed* fhandler_console.cc (fhandler_console::read): Default to sending CERASE character if termios VERASE field is zero. (fhandler_console::fixup_after_fork_exec): Avoid a spurious debug message.
Christopher Faylor
2010-04-10 18:05:52 +0000
3481527cc6update copyright
Christopher Faylor
2010-04-10 05:47:54 +0000
89a903b879* mkvers.sh: Use modern date formats to construct the date.
Christopher Faylor
2010-04-10 05:46:45 +0000
1691abe75e* nlsfuncs.cc (__set_lc_time_from_win): Actually set _time_locale->md_order to the D_MD_ORDER value written to the buffer.
Corinna Vinschen
2010-04-09 21:20:21 +0000
412f3e61d4* path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid a 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.
Christopher Faylor
2010-04-09 16:51:08 +0000
5d239c6195/: Merge from gcc: PR bootstrap/43615 PR bootstrap/43328 Revert: 2010-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * configure.ac: Do not pass --enable-multilib nor --disable-multilib in baseargs. Accept explicitly passed --enable_multilib. * configure: Regenerate.
Ralf Wildenhues
2010-04-08 19:44:08 +0000
d96fead7bb* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers cannot contain any sections.
Alan Modra
2010-04-08 02:09:59 +0000
f8fbd1ea58* include/cygwin/version.h: Bump DLL minor version number to 4.
Corinna Vinschen
2010-04-07 08:55:38 +0000
5f46e4094f2010-04-06 Dave Korn <dave.korn.cygwin@googlemail.com>
Jeff Johnston
2010-04-06 20:20:36 +0000
35297ebe0b* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return value change to setup_overlapped.
Christopher Faylor
2010-04-06 15:09:44 +0000
65ee447a02* libc/stdlib/btowc.c (btowc): Reorganize EOF check. Fix incorrect return value if input byte is ASCII NUL.
Corinna Vinschen
2010-04-06 14:46:31 +0000
44ac55bcb6merge from gcc
Jakub Jelinek
2010-04-06 07:39:30 +0000
26f5e38ec0merge from gcc
DJ Delorie
2010-04-05 20:13:18 +0000
89632f0136include/ * dwarf2.h (DWARF2_Internal_LineInfo): Add li_max_ops_per_insn field. bfd/ * dwarf2.c (struct line_head): Add maximum_ops_per_insn field. (struct line_info): Add op_index field, change end_sequence type to unsigned char. (new_line_sorts_after): For the same address compare op_index. (add_line_info): Add op_index argument, store it into the structure. (decode_line_info): Complain about unknown versions of .debug_line. Initialize maximum_ops_per_insn. Add op_index state register and track it. binutils/ * dwarf.c (struct State_Machine_Registers): Add op_index field, change end_sequence type to unsigned char. (reset_state_machine): Clear op_index. (process_extended_line_op): For DW_LNE_set_address clear op_index. (display_debug_lines_raw): Initialize li_max_ops_per_insn. Track op_index state machine register and print it if li_max_ops_per_insn is != 1. (display_debug_lines_decoded): Likewise.
Jakub Jelinek
2010-04-05 19:30:00 +0000
1908518227* fhandler.h (fhandler_base::has_ongoing_io): Declare virtual method. * 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.
Christopher Faylor
2010-04-02 22:36:44 +0000
5151c80c8a* fhandler.h (fhandler_base::setup_overlapped): Delete virtual declaration. (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.
Christopher Faylor
2010-04-02 18:55:02 +0000
60efdd0c4c* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Properly initialize overlapped part of this class.
Christopher Faylor
2010-04-02 16:43:27 +0000
1ae0a7c5a6* dtable.cc (dtable::init_std_file_from_handle): Avoid adding fh to fdtab until 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.
Christopher Faylor
2010-04-02 15:41:27 +0000
ed32dd8946* fhandler_tty.cc (fhandler_tty_slave::close): Avoid potential crash if former open call has been unsuccessful.
Corinna Vinschen
2010-04-02 14:11:45 +0000
57f7ebe1f2* nlsfuncs.cc (rebase_locale_buf): New helper function to rebase 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.
Corinna Vinschen
2010-04-01 20:13:22 +0000
c1bfa897da2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston
2010-04-01 18:33:37 +0000
7e53fcbc29* setup-net.sgml: Remove more mentions of rxvt.
Charles Wilson
2010-04-01 05:23:07 +0000
3d8a6b6236* cygwinenv.sgml: Remove/deprecate mention of rxvt. * effectively.sgml: Ditto. * faq-using.xml: Ditto. * setup-net.sgml: Ditto.
Christopher Faylor
2010-03-31 21:06:43 +0000
bc3f0d64c9* sigproc.cc (wait_sig): Make sure that strace is activated on __SIGSTRACE by calling new strace::activate function. * strace.cc (strace::activate): Rename from strace::strace. * strace.h (strace::activate): Define new function. (strace::strace): Call activate.
Christopher Faylor
2010-03-31 18:06:02 +0000
e446d6d0f4* fhandler.h (fhandler_base_overlapped): Temporarily (?) make select_pipe_info a friend until the fhandler_tty intertangling can be worked out. * select.cc (select_pipe_info::add_watch_handle): Don't inspect the overlapped event if we're not waiting for I/O. (fhandler_tty_common::select_*): Change to standard function. Don't do kludgy fhandler_pipe coercion.
Christopher Faylor
2010-03-31 15:00:48 +0000
aed3b6cda2Fix toplevel configure --enable-multilib handling.
Ralf Wildenhues
2010-03-31 05:44:01 +0000
b791ec4a2cAdd missing fhandler.h patch and ChangeLog comment.
Christopher Faylor
2010-03-31 04:39:13 +0000
2aeef06579* fhandler.cc (fhandler_base::dup): Call setup_overlapped unconditionally. (fhandler_base::fork_fixup): Ditto. (fhandler_base::fixup_after_fork): Ditto. (fhandler_base::fixup_after_exec): Ditto. (fhandler_base_overlapped::setup_overlapped): Move to this class from fhandler_base. (handler_base_overlapped::destroy_overlapped): Ditto. (fhandler_base_overlapped::wait_overlapped): Ditto. Track when we expect pending I/O. (fhandler_base_overlapped::read_overlapped): Move to this class from fhandler_base. Return error if ongoing I/O. (fhandler_base_overlapped::write_overlapped): Ditto. (fhandler_base_overlapped::has_ongoing_io): Semi-reinstate previous function. * fhandler.h (fhandler_base::wait_overlapped): Move to fhandler_base_overlapped class. (fhandler_base::write_overlapped): Ditto. (fhandler_base::get_overlapped): Ditto. (fhandler_base::get_overlapped_buffer): Ditto. (fhandler_base_overlapped): New class. (fhandler_pipe): Inherit from fhandler_base_overlapped. Remove overlapped stuff as a result. (fhandler_fifo): Ditto. * pipe.cc (fhandler_pipe::fhandler_pipe): Initialize fhandler_base_overlapped. (pipe): Put a descriptive name in the fhandler.
Christopher Faylor
2010-03-31 04:26:11 +0000