]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
14 years agobfd/
Tristan Gingold [Fri, 30 Apr 2010 09:40:42 +0000 (09:40 +0000)]
bfd/
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
and syms removed.
(struct carsym_mem): New structure.
(vms_add_index): New function.
(vms_add_indexes_from_list): New function.
(vms_traverse_index): Parameter carsym changed to carsym_mem.
Code adjusted to handle elfidx.
(vms_lib_read_index): Adjusted for vms_traverse_index changes.
Parameter NBREL is now a pointer.
(_bfd_vms_lib_archive_p): Adjust for above change.  Handle ia64
archives.
(_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
(_bfd_vms_lib_find_symbol): Ditto.
(vms_lib_bopen): Fix two typos: return FALSE in case of error,
check MHD id.
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
changes of _bfd_vms_lib_find_symbol.

include/vms
2010-04-30  Tristan Gingold  <gingold@adacore.com>

* lbr.h (LBR__C_TYP_ISHSTB): Added.
(LHD_SANEID4): Renamed to ...
(LHD_SANEID6): ...  this.
(LBR_MAJORID, LBR_ELFMAJORID): New macros.
(struct vms_rfa): New structure.
(struct vms_idxdef): Renamed to ...
(struct vms_idx): ... this.
(struct vms_idxdef2): Renamed to ...
(struct vms_elfidx): ... this.
(ELFIDX__WEAK, ELFIDX__GROUP, ELFIDX__LISTRFA, ELFIDX__SYMESC): New
macros.
(struct vms_lhs, struct vms_lns): New structures.
(struct vms_mhd): Add missing fields.
(MHD__C_MHDLEN): New macro.

14 years ago * dlfcn.cc (get_full_path_of_dll): Handle non-existent file.
Corinna Vinschen [Thu, 29 Apr 2010 13:03:30 +0000 (13:03 +0000)]
* dlfcn.cc (get_full_path_of_dll): Handle non-existent file.

14 years ago * new-features.sgml (ov-new1.7.6): Add new "dos" and "inode" mount
Corinna Vinschen [Thu, 29 Apr 2010 10:58:17 +0000 (10:58 +0000)]
* 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.

14 years ago * utils.sgml (mount): Add description for "dos" and "ihash" mount
Corinna Vinschen [Thu, 29 Apr 2010 10:53:31 +0000 (10:53 +0000)]
* utils.sgml (mount): Add description for "dos" and "ihash" mount
options.

14 years ago * path.cc: Include sys/cygwin.h if built for mount(1).
Corinna Vinschen [Thu, 29 Apr 2010 10:39:35 +0000 (10:39 +0000)]
* 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).

14 years ago * mount.cc (struct opt): Add "dos" and "ihash" options.
Corinna Vinschen [Thu, 29 Apr 2010 10:38:05 +0000 (10:38 +0000)]
* 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.

14 years ago * mount.cc (oopts): Remove entirely.
Corinna Vinschen [Thu, 29 Apr 2010 08:50:23 +0000 (08:50 +0000)]
* 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).

14 years ago * external.cc (cygwin_internal): Add CW_CVT_MNT_OPTS to allow mount
Corinna Vinschen [Thu, 29 Apr 2010 08:47:44 +0000 (08:47 +0000)]
* 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.

14 years ago * mount.cc (compare_flags): New function.
Corinna Vinschen [Wed, 28 Apr 2010 15:35:52 +0000 (15:35 +0000)]
* mount.cc (compare_flags): New function.
(read_flags): Replace loop with bsearch.  Simplify error check.

14 years ago * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen [Wed, 28 Apr 2010 10:20:34 +0000 (10:20 +0000)]
* include/cygwin/version.h: Bump API minor version.

14 years ago * new-features.sgml (ov-new1.7.6): Add locale wide-char changes.
Corinna Vinschen [Wed, 28 Apr 2010 10:19:25 +0000 (10:19 +0000)]
* new-features.sgml (ov-new1.7.6): Add locale wide-char changes.

14 years ago * locale.cc (print_lc_xxx_charset): Remove.
Corinna Vinschen [Wed, 28 Apr 2010 10:00:40 +0000 (10:00 +0000)]
* 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.

14 years ago * cygwin.din (__locale_mb_cur_max): Export.
Corinna Vinschen [Wed, 28 Apr 2010 10:00:24 +0000 (10:00 +0000)]
* 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.

14 years ago Extend locale support to maintain wide char values of native strings
Corinna Vinschen [Wed, 28 Apr 2010 09:59:37 +0000 (09:59 +0000)]
Extend 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.

14 years ago* spawn.cc (find_exec): Use the first detected errno when lookup fails.
Christopher Faylor [Tue, 27 Apr 2010 23:06:48 +0000 (23:06 +0000)]
* spawn.cc (find_exec): Use the first detected errno when lookup fails.

14 years ago * include/regex.h: Include _ansi.h to avoid missing out on preprocessor
Corinna Vinschen [Tue, 27 Apr 2010 15:18:14 +0000 (15:18 +0000)]
* include/regex.h: Include _ansi.h to avoid missing out on preprocessor
macros in sys/_types.h.

14 years ago * configure.ac (--enable-gold): Support both, both/gold and
Nick Clifton [Tue, 27 Apr 2010 14:24:37 +0000 (14:24 +0000)]
    * configure.ac (--enable-gold): Support both, both/gold and
        both/bfd to add gold to configdirs without removing ld.
        * configure: Regenerated.

        * Makefile.def: Add install-gold dependency to install-ld.
        * Makefile.in: Regenerated.

14 years agomerge from gcc
DJ Delorie [Mon, 26 Apr 2010 18:04:23 +0000 (18:04 +0000)]
merge from gcc

14 years ago * mount.h (fs_info::inited): New inline method.
Corinna Vinschen [Mon, 26 Apr 2010 13:48:04 +0000 (13:48 +0000)]
* 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.

14 years agoinclude/elf/
Alan Modra [Sat, 24 Apr 2010 01:05:22 +0000 (01:05 +0000)]
include/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.

14 years agomerge from gcc
DJ Delorie [Sat, 24 Apr 2010 01:03:15 +0000 (01:03 +0000)]
merge from gcc

14 years ago * path.h (get_nt_native_path): Add third parameter to declaration and
Corinna Vinschen [Fri, 23 Apr 2010 11:07:35 +0000 (11:07 +0000)]
* 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.

14 years ago* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
DJ Delorie [Thu, 22 Apr 2010 23:32:42 +0000 (23:32 +0000)]
* libc/Makefile.am (SUBDEFS): Add LIBC_POSIX_DEF.
(libc.info): Add posix.texi.
(libc.dvi): Likewise.
(stmp-posix): New.
(posix.texi): New.
(libc_TEXINFOS): Add posix.texi.
* libc/configure.in (LIBC_POSIX_LIB, LIBC_POSIX_DEF): Add
tests.
* libc/libc.texinfo: Include posix.texi
* libc/locale/locale.c: Fix texinfo typo.
* libc/time/strftime.c: Fix texinfo typo.

* libc/configure: Regenerate.
* libc/Makefile.in: Regenerate.
* libc/argz/Makefile.in: Regenerate.
* libc/ctype/Makefile.in: Regenerate.
* libc/errno/Makefile.in: Regenerate.
* libc/iconv/Makefile.in: Regenerate.
* libc/iconv/ccs/Makefile.in: Regenerate.
* libc/iconv/ccs/binary/Makefile.in: Regenerate.
* libc/iconv/ces/Makefile.in: Regenerate.
* libc/iconv/lib/Makefile.in: Regenerate.
* libc/locale/Makefile.in: Regenerate.
* libc/misc/Makefile.in: Regenerate.
* libc/posix/Makefile.in: Regenerate.
* libc/reent/Makefile.in: Regenerate.
* libc/search/Makefile.in: Regenerate.
* libc/signal/Makefile.in: Regenerate.
* libc/stdio/Makefile.in: Regenerate.
* libc/stdio64/Makefile.in: Regenerate.
* libc/stdlib/Makefile.in: Regenerate.
* libc/string/Makefile.in: Regenerate.
* libc/syscalls/Makefile.in: Regenerate.
* libc/time/Makefile.in: Regenerate.
* libc/unix/Makefile.in: Regenerate.
* libc/xdr/Makefile.in: Regenerate.

14 years ago * path.cc (symlink_info::check): Make sure to restart only once.
Corinna Vinschen [Thu, 22 Apr 2010 17:42:18 +0000 (17:42 +0000)]
* path.cc (symlink_info::check): Make sure to restart only once.

14 years ago * mount.cc (GETVOLINFO_VALID_MASK): Drop FILE_SEQUENTIAL_WRITE_ONCE
Corinna Vinschen [Thu, 22 Apr 2010 17:33:28 +0000 (17:33 +0000)]
* 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.

14 years ago * path.cc (symlink_info::check): Fix a comment.
Corinna Vinschen [Thu, 22 Apr 2010 09:43:29 +0000 (09:43 +0000)]
* path.cc (symlink_info::check): Fix a comment.

14 years ago * cygserver.sgml: Note the fact that slave tty/pty handle dispersal is
Corinna Vinschen [Thu, 22 Apr 2010 09:05:37 +0000 (09:05 +0000)]
* 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.

14 years ago * fhandler_termios.cc (tcinit): Remove previously applied change.
Corinna Vinschen [Wed, 21 Apr 2010 19:36:40 +0000 (19:36 +0000)]
* 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.

14 years agogas/testsuite:
Joseph Myers [Wed, 21 Apr 2010 18:56:45 +0000 (18:56 +0000)]
gas/testsuite:
* gas/tic6x/insns-c674x.s, gas/tic6x/insns-c674x.d: Also test
"b .S2 b3".

include/opcode:
* tic6x-insn-formats.h (s_branch): Correct typo in bitmask.

14 years ago * dtable.cc (dtable::init_std_file_from_handle): Set access mask for
Corinna Vinschen [Wed, 21 Apr 2010 18:44:39 +0000 (18:44 +0000)]
* dtable.cc (dtable::init_std_file_from_handle): Set access mask for
the slave side of ttys explicitely.  Explain why.

14 years ago* path.cc (cygwin_create_path): Free memory on error.
Christopher Faylor [Tue, 20 Apr 2010 14:32:29 +0000 (14:32 +0000)]
* path.cc (cygwin_create_path): Free memory on error.

14 years ago * cygheap.h (struct init_cygheap): Add rlim_core member.
Corinna Vinschen [Tue, 20 Apr 2010 10:44:52 +0000 (10:44 +0000)]
* 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.

14 years ago* cygerrno.h: Nevermind.
Christopher Faylor [Tue, 20 Apr 2010 03:45:27 +0000 (03:45 +0000)]
* cygerrno.h: Nevermind.

14 years ago* transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.
Christopher Faylor [Tue, 20 Apr 2010 03:44:38 +0000 (03:44 +0000)]
* transport_pipes.cc: Include ntdef.h to accommodate cygerrno.h.

14 years ago* cygerrno.h: Protect use of NTSTATUS for only when we need it.
Christopher Faylor [Tue, 20 Apr 2010 03:32:37 +0000 (03:32 +0000)]
* cygerrno.h: Protect use of NTSTATUS for only when we need it.
* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.

14 years ago* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.
Christopher Faylor [Tue, 20 Apr 2010 03:30:32 +0000 (03:30 +0000)]
* lib/_cygwin_crt0_common.cc: Remove unneeded declarations.

14 years ago * fhandler_tty.cc (fhandler_tty_slave::fch_set_sd): Remove commented out
Corinna Vinschen [Mon, 19 Apr 2010 20:00:18 +0000 (20:00 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::fch_set_sd): Remove commented out
code.

14 years ago * autoload.cc (GetNamedPipeClientProcessId): Define.
Corinna Vinschen [Mon, 19 Apr 2010 19:52:43 +0000 (19:52 +0000)]
* 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.

14 years ago * dtable.cc (dtable::init_std_file_from_handle): Set dev to
Corinna Vinschen [Mon, 19 Apr 2010 16:25:11 +0000 (16:25 +0000)]
* 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.

14 years ago * syscalls.cc (rename): On STATUS_ACCESS_VIOLATION, retry to open
Corinna Vinschen [Mon, 19 Apr 2010 08:09:51 +0000 (08:09 +0000)]
* syscalls.cc (rename): On STATUS_ACCESS_VIOLATION, retry to open
for DELETE until the STATUS_ACCESS_VIOLATION goes away.  Add comment
to explain why.

14 years ago * sec_helper.cc (get_null_sd): Make static. Use PSECURITY_DESCRIPTOR
Corinna Vinschen [Sat, 17 Apr 2010 15:51:09 +0000 (15:51 +0000)]
* 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.

14 years ago * cygerrno.h (seterrno_from_nt_status): Declare.
Corinna Vinschen [Fri, 16 Apr 2010 15:42:29 +0000 (15:42 +0000)]
* 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.

14 years ago * kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESS
Corinna Vinschen [Thu, 15 Apr 2010 17:20:59 +0000 (17:20 +0000)]
* kernel32.cc (CreateEventW): Create event object with EVENT_ALL_ACCESS
access mask.
(CreateMutexW): Create mutex object with MUTEX_ALL_ACCESS access mask.
(CreateSemaphoreW): Create semaphore object with SEMAPHORE_ALL_ACCESS
access mask.

14 years ago * sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, if
Corinna Vinschen [Thu, 15 Apr 2010 17:17:59 +0000 (17:17 +0000)]
* sec_helper.cc (set_cygwin_privileges): Enable SE_DEBUG_PRIVILEGE, if
available.  Add comments.

14 years ago * ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
Matthew Gretton-Dann [Thu, 15 Apr 2010 10:56:36 +0000 (10:56 +0000)]
* ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output.
* ld/testsuite/ld-arm/attr-merge-3.attr: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-4.d: Likeiwse.
* ld/testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-00.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-02.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-04.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-20.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-22.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-40.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise.
* ld/testsuite/ld-arm/attr-merge-wchar-44.d: Likewise.
* ld/testsuite/ld-arm/attr-merge.attr: Likewise.
* binutils/readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch.
(arm_attr_tag_ABI_align8_needed): Remove.
(arm_attr_tag_ABI_align8_preserved): Remove.
(arm_attr_tag_ABI_HardFP_use): Update text strings.
(arm_attr_public_tags): Add strings for ABI v2.08 attribute tags.
(display_arm_attribute): Add decoding of ABI v2.08 attributes.
* include/elf/arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved,
Tag_FP_HP_extension): Add new ABI attribute tags.
* gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add support for
new tag names in v2.08 of ARM ABI.
* gas/doc/c-arm.texi: Document new tag names in ABI.
* gas/testsuite/gas/arm/attr-mcpu.d: Update for new attribute tag names.
* gas/testsuite/gas/arm/attr-mfpu-arm1020e.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1020t.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-neon.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp10.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfp9.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv2.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv3.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4-d16.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpv4.d: Likewise.
* gas/testsuite/gas/arm/attr-mfpu-vfpxd.d: Likewise.
* gas/testsuite/gas/arm/attr-names.d: Add test to make sure all attribute names
are recognised.
* gas/testsuite/gas/arm/attr-names.s: Likewise.

14 years agoUpgrade header files to use GPLv3
Nick Clifton [Thu, 15 Apr 2010 10:26:09 +0000 (10:26 +0000)]
Upgrade header files to use GPLv3

14 years ago * filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.
Doug Evans [Wed, 14 Apr 2010 21:18:27 +0000 (21:18 +0000)]
* filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros.

14 years ago2010-04-14 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 14 Apr 2010 09:28:48 +0000 (09:28 +0000)]
2010-04-14  Tristan Gingold  <gingold@adacore.com>

* configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs.
* configure: Regenerate.

14 years agosim: drop PARAMS
Michael Frysinger [Tue, 13 Apr 2010 20:39:44 +0000 (20:39 +0000)]
sim: drop PARAMS

The PARAMS macro is no longer useful, so drop it from the sim includes.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agosim: constify sim_write source buffer
Michael Frysinger [Tue, 13 Apr 2010 20:28:19 +0000 (20:28 +0000)]
sim: constify sim_write source buffer

Most the sim write functions declare their source buffer const because
they only ever read from it.  The global sim_write() function does not
follow this convention though which causes some warnings when trying to
pass it const strings or buffers.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years ago * fhandler_socket.cc (get_inet_addr): Only test the file for being a
Corinna Vinschen [Tue, 13 Apr 2010 19:56:30 +0000 (19:56 +0000)]
* 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.

14 years ago * cygheap.cc (cwcsdup): Fix allocation size to accommodate sizeof WCHAR.
Corinna Vinschen [Tue, 13 Apr 2010 10:01:34 +0000 (10:01 +0000)]
* cygheap.cc (cwcsdup): Fix allocation size to accommodate sizeof WCHAR.
(cwcsdup1): Ditto.

14 years ago * include/cygwin/version.h: Bump DLL minor version number to 5.
Corinna Vinschen [Mon, 12 Apr 2010 17:01:01 +0000 (17:01 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 5.

14 years ago * posix.sgml (std-notes): Improve lseek description.
Corinna Vinschen [Mon, 12 Apr 2010 15:36:48 +0000 (15:36 +0000)]
* posix.sgml (std-notes): Improve lseek description.

14 years ago * fhandler_tty.cc (fhandler_tty_slave::open): Add code to duplicate
Corinna Vinschen [Mon, 12 Apr 2010 13:28:06 +0000 (13:28 +0000)]
* 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.

14 years ago* cygwin.dsl: Remove comments.
Christopher Faylor [Sun, 11 Apr 2010 22:15:59 +0000 (22:15 +0000)]
* cygwin.dsl: Remove comments.

14 years ago * new-features.sgml (ov-new1.7.5): New section.
Corinna Vinschen [Sun, 11 Apr 2010 19:38:35 +0000 (19:38 +0000)]
* new-features.sgml (ov-new1.7.5): New section.

14 years ago * fhandler.h (class dev_console): Add backspace_keycode member.
Corinna Vinschen [Sun, 11 Apr 2010 19:11:17 +0000 (19:11 +0000)]
* 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.

14 years ago* cygwin-api.in.sgml: Update to DocBook SGML 4.5 DTD.
Christopher Faylor [Sun, 11 Apr 2010 17:43:28 +0000 (17:43 +0000)]
* cygwin-api.in.sgml: Update to DocBook SGML 4.5 DTD.
* cygwin-ug-net.in.sgml: Ditto.
* cygwin-ug.in.sgml: Ditto.
* faq-sections.xml: Ditto.
* faq.xml: Ditto.

14 years ago* fhandler_console.cc (fhandler_console::read): Default to sending CERASE
Christopher Faylor [Sat, 10 Apr 2010 18:05:52 +0000 (18:05 +0000)]
* 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.

14 years agoupdate copyright
Christopher Faylor [Sat, 10 Apr 2010 05:47:54 +0000 (05:47 +0000)]
update copyright

14 years ago* mkvers.sh: Use modern date formats to construct the date.
Christopher Faylor [Sat, 10 Apr 2010 05:46:45 +0000 (05:46 +0000)]
* mkvers.sh: Use modern date formats to construct the date.

14 years ago * nlsfuncs.cc (__set_lc_time_from_win): Actually set
Corinna Vinschen [Fri, 9 Apr 2010 21:20:21 +0000 (21:20 +0000)]
* nlsfuncs.cc (__set_lc_time_from_win): Actually set
_time_locale->md_order to the D_MD_ORDER value written to the buffer.

14 years ago* path.cc (path_conv::set_normalized_path): Use crealloc_abort to avoid a
Christopher Faylor [Fri, 9 Apr 2010 16:51:08 +0000 (16:51 +0000)]
* 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.

14 years ago/:
Ralf Wildenhues [Thu, 8 Apr 2010 19:44:08 +0000 (19:44 +0000)]
/:
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.

14 years ago * internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers
Alan Modra [Thu, 8 Apr 2010 02:09:59 +0000 (02:09 +0000)]
* internal.h (ELF_IS_SECTION_IN_SEGMENT): PT_PHDR program headers
cannot contain any sections.

14 years ago * include/cygwin/version.h: Bump DLL minor version number to 4.
Corinna Vinschen [Wed, 7 Apr 2010 08:55:38 +0000 (08:55 +0000)]
* include/cygwin/version.h: Bump DLL minor version number to 4.

14 years ago2010-04-06 Dave Korn <dave.korn.cygwin@googlemail.com>
Jeff Johnston [Tue, 6 Apr 2010 20:20:36 +0000 (20:20 +0000)]
2010-04-06  Dave Korn  <dave.korn.cygwin@googlemail.com>

        * libc/stdlib/__atexit.c (__atexit_lock): Initialise as recursive
        rather than non-recursive lock type.
        (__register_exitproc): Use recursive locking APIs on it.
        * libc/stdlib/__call_atexit.c (__call_exitprocs): Likewise.

14 years ago * thread.cc (valid_sched_parameters): Declare extern here.
Corinna Vinschen [Tue, 6 Apr 2010 15:27:34 +0000 (15:27 +0000)]
* thread.cc (valid_sched_parameters): Declare extern here.
(sched_set_thread_priority): Ditto.

14 years ago * include/sched.h: Remove, overruled by newlib file.
Corinna Vinschen [Tue, 6 Apr 2010 15:16:24 +0000 (15:16 +0000)]
* include/sched.h: Remove, overruled by newlib file.
* include/sys/sched.h: Ditto.

14 years ago* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return value
Christopher Faylor [Tue, 6 Apr 2010 15:09:44 +0000 (15:09 +0000)]
* fhandler_fifo.cc (fhandler_fifo::open): Accommodate previous return value
change to setup_overlapped.

14 years ago * libc/stdlib/btowc.c (btowc): Reorganize EOF check. Fix incorrect
Corinna Vinschen [Tue, 6 Apr 2010 14:46:31 +0000 (14:46 +0000)]
* libc/stdlib/btowc.c (btowc): Reorganize EOF check.  Fix incorrect
return value if input byte is ASCII NUL.

14 years agomerge from gcc
Jakub Jelinek [Tue, 6 Apr 2010 07:39:30 +0000 (07:39 +0000)]
merge from gcc

14 years agomerge from gcc
DJ Delorie [Mon, 5 Apr 2010 20:13:18 +0000 (20:13 +0000)]
merge from gcc

14 years agoinclude/
Jakub Jelinek [Mon, 5 Apr 2010 19:30:00 +0000 (19:30 +0000)]
include/
* 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.

14 years ago* fhandler.h (fhandler_base::has_ongoing_io): Declare virtual method.
Christopher Faylor [Fri, 2 Apr 2010 22:36:44 +0000 (22:36 +0000)]
* 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.

14 years ago* fhandler.h (fhandler_base::setup_overlapped): Delete virtual declaration.
Christopher Faylor [Fri, 2 Apr 2010 18:55:02 +0000 (18:55 +0000)]
* 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.

14 years ago* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Properly initialize
Christopher Faylor [Fri, 2 Apr 2010 16:43:27 +0000 (16:43 +0000)]
* fhandler_fifo.cc (fhandler_fifo::fhandler_fifo): Properly initialize
overlapped part of this class.

14 years ago * fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.
Corinna Vinschen [Fri, 2 Apr 2010 16:16:53 +0000 (16:16 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.

14 years agofix typo
Christopher Faylor [Fri, 2 Apr 2010 16:01:58 +0000 (16:01 +0000)]
fix typo

14 years ago* select.h (select_pipe_info::add_watch_handle): Delete declaration.
Christopher Faylor [Fri, 2 Apr 2010 15:50:54 +0000 (15:50 +0000)]
* select.h (select_pipe_info::add_watch_handle): Delete declaration.
* 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.

14 years ago* dtable.cc (dtable::init_std_file_from_handle): Avoid adding fh to fdtab until
Christopher Faylor [Fri, 2 Apr 2010 15:41:27 +0000 (15:41 +0000)]
* 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.

14 years ago * fhandler_tty.cc (fhandler_tty_slave::close): Avoid potential crash
Corinna Vinschen [Fri, 2 Apr 2010 14:11:45 +0000 (14:11 +0000)]
* fhandler_tty.cc (fhandler_tty_slave::close): Avoid potential crash
if former open call has been unsuccessful.

14 years ago * nlsfuncs.cc: Fix indentation.
Corinna Vinschen [Thu, 1 Apr 2010 20:30:07 +0000 (20:30 +0000)]
* nlsfuncs.cc: Fix indentation.

14 years ago * nlsfuncs.cc (rebase_locale_buf): New helper function to rebase
Corinna Vinschen [Thu, 1 Apr 2010 20:13:22 +0000 (20:13 +0000)]
* 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.

14 years ago2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
Jeff Johnston [Thu, 1 Apr 2010 18:33:37 +0000 (18:33 +0000)]
2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>

        * libc/include/sched.h: Include prototypes for
        sched_* methods.
        * libc/include/sys/sched.h: Update to POSIX
        1003.1b-2008.  Rework constants to allow sharing
        between RTEMS and Cygwin.

14 years ago* setup-net.sgml: Remove more mentions of rxvt.
Charles Wilson [Thu, 1 Apr 2010 05:23:07 +0000 (05:23 +0000)]
* setup-net.sgml: Remove more mentions of rxvt.

14 years ago* cygwinenv.sgml: Remove/deprecate mention of rxvt.
Christopher Faylor [Wed, 31 Mar 2010 21:06:43 +0000 (21:06 +0000)]
* cygwinenv.sgml: Remove/deprecate mention of rxvt.
* effectively.sgml: Ditto.
* faq-using.xml: Ditto.
* setup-net.sgml: Ditto.

14 years ago* sigproc.cc (wait_sig): Make sure that strace is activated on __SIGSTRACE by
Christopher Faylor [Wed, 31 Mar 2010 18:06:02 +0000 (18:06 +0000)]
* 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.

14 years ago* fhandler.h (fhandler_base_overlapped): Temporarily (?) make select_pipe_info
Christopher Faylor [Wed, 31 Mar 2010 15:00:48 +0000 (15:00 +0000)]
* 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.

14 years ago2010-03-31 Tristan Gingold <gingold@adacore.com>
Tristan Gingold [Wed, 31 Mar 2010 07:35:54 +0000 (07:35 +0000)]
2010-03-31  Tristan Gingold  <gingold@adacore.com>

* dcx.h: New file.
* dsc.h: New file.
* esdfm.h: New file.
* esdfv.h: New file.
* internal.h: New file.
* lbr.h: New file.
* prt.h: New file.
* shl.h (struct vms_shl): Add comments.
* esrf.h (ESRF__B_NAMLNG): New macro.
* esdf.h (ESDF__B_NAMLNG): New macro.
* emh.h: Add macros for fields maximum value.
* eisd.h (EISD__M_PROTECT): Fix typo in comment.
Add macros for offsets, version, section type and match control.
Merge vms_eisd_ext into vms_eisd.
* eihvn.h (EIHVN__MULTI_PROCESSING_BIT, EIHVN__GALAXY_BIT): Added.
* eihs.h: Remove blank line.
* eihd.h (struct vms_eihd): Add comments, add image subtype names.
* eiha.h (struct vms_eiha): Add inishr and inishr_h fields.
* eiaf.h (struct vms_eiaf): Fix base_va size.
* egsy.h: Add comments.
* egsd.h: Remove blank line.
* egps.h: Add flag names.
* eeom.h (EEOM__M_WKTFR): Added.
* dst.h (DST__K_CXX): Added, and reident languages.
(DST__K_SRC_INCRLNUM_B): Added.
Indent and order pcline commands.
Add record begin/end, enumerations, type specification, value
specification, label, discontinue range definitions.

14 years agoFix toplevel configure --enable-multilib handling.
Ralf Wildenhues [Wed, 31 Mar 2010 05:44:01 +0000 (05:44 +0000)]
Fix toplevel configure --enable-multilib handling.

/:
PR bootstrap/43328
* configure.ac: Do not pass --enable-multilib nor
--disable-multilib in baseargs.  Accept explicitly passed
--enable_multilib.
* configure: Regenerate.

14 years agoAdd missing fhandler.h patch and ChangeLog comment.
Christopher Faylor [Wed, 31 Mar 2010 04:39:13 +0000 (04:39 +0000)]
Add missing fhandler.h patch and ChangeLog comment.

14 years ago* fhandler.cc (fhandler_base::dup): Call setup_overlapped unconditionally.
Christopher Faylor [Wed, 31 Mar 2010 04:26:11 +0000 (04:26 +0000)]
* 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.

14 years ago * fhandler_socket.cc (fhandler_socket::wait_for_events): Remove call to
Corinna Vinschen [Tue, 30 Mar 2010 16:20:15 +0000 (16:20 +0000)]
* fhandler_socket.cc (fhandler_socket::wait_for_events): Remove call to
sig_dispatch_pending.

14 years ago2010-03-30 Thomas Wolff <towo@towo.net>
Corinna Vinschen [Tue, 30 Mar 2010 16:17:34 +0000 (16:17 +0000)]
2010-03-30  Thomas Wolff  <towo@towo.net>

* fhandler.h (class dev_console): Drop vt100_graphics_mode_active.
Add flags vt100_graphics_mode_G0, vt100_graphics_mode_G1 and
iso_2022_G1.
* fhandler_console.cc: Throughout, tune VT100 graphics mode switching
to follow ISO 2022 strictly.

14 years ago * syscalls.cc (open): Remove call to sig_dispatch_pending.
Corinna Vinschen [Tue, 30 Mar 2010 14:36:42 +0000 (14:36 +0000)]
* syscalls.cc (open): Remove call to sig_dispatch_pending.

14 years ago * net.cc: Remove calls to sig_dispatch_pending throughout.
Corinna Vinschen [Tue, 30 Mar 2010 09:25:46 +0000 (09:25 +0000)]
* net.cc: Remove calls to sig_dispatch_pending throughout.
* libc/rexec.cc: Ditto.

14 years ago * mount.cc (fs_info::update): Allow variable FILE_SUPPORTS_SPARSE_FILES
Corinna Vinschen [Tue, 30 Mar 2010 08:55:23 +0000 (08:55 +0000)]
* mount.cc (fs_info::update): Allow variable FILE_SUPPORTS_SPARSE_FILES
flag in netapp flag test.  Add comment.

14 years ago * spawn.cc (find_exec): Enable finding paths in backslash notation,
Corinna Vinschen [Mon, 29 Mar 2010 17:15:51 +0000 (17:15 +0000)]
* spawn.cc (find_exec): Enable finding paths in backslash notation,
especially for the exec[vl]p functions.

* path.cc (symlink_info::check): Disable returning directories with
suffix appended here.

This page took 0.073992 seconds and 5 git commands to generate.